emmett-framework / emmett Goto Github PK
View Code? Open in Web Editor NEWThe web framework for inventors
License: Other
The web framework for inventors
License: Other
Actually is meaningless to use separate classes.
Something like:
class Author(Model):
name = Field()
region = Field()
has_many('books')
class Book(Model):
name = Field()
year = Field('int')
belongs_to('author')
authors_with_books = db(Author.region == "Italy").join('books').select()
books_with_authors = db(Book.year >= 2015).join('author').select()
Inspect web2py/web2py@d6c565f
With new SessionFSManager
Please add a link to github in weppy.org
Hello, your sample code in docs do not work out of the box.
Its not clear that the full code should be written.
For example i´m trying to understand how to create a form
your docs says
form weppy import Field, Form
from weppy.validators import inSet
@app.expose('/form')
def a():
simple_form = Form({
'name': Field(),
'number': Field('int'),
'type': Field(
validation={'in': ['type1', 'type2']}
)
})
if simple_form.accepted:
#do something
return dict(form=simple_form)
but this is not enough to create a valid form code
i´m not sure but i thing i need to add
from weppy import App
app = App(name)
and
if name == "main":
app.run()
Please be more patient with dummies like me and most of the people that follows you.
Regards
When I reloaded Python, I got this message on my screen:
uWSGI Error
Python application not found
And now I cannot access the Rascal anymore.
Can someone help please?
Due to this: web2py/pydal@59bbde1
Will require newer version of pyDAL.
This would allow subclassing Models.
Add a method to stream file directly from a folder.
The current stream_file()
should be converted to stream_fromDB()
or something like that.
As seen on: web2py/web2py#817
Add new on_end
method documentation in:
pydal\base.py line 477. for k, v in self.serializers.items():
There has been some discussion (web2py-users) about an issue in April, but its been throwing this error on the latest version.
Waiting for the release.
Something like:
Event.where(lambda e: (e.start_at >= datetime(2015, 5, 20)) & (e.ends_at < datetime(2015, 6, 20)))
instead of
db((Event.start_at >= datetime(2015, 5, 20)) & (Event.ends_at < datetime(2015, 6, 20)))
Due to this: web2py/web2py#797
Due to #7
We really need tests.
When loaded with builtin server
Just an idea. Something like:
class Event(Model):
name = Field()
start_at = Field('datetime')
ends_at = Field('datetime')
speaker = Field()
@scope('active')
def get_active(cls):
return (cls.start_at <= request.now) & (cls.ends_at > request.now)
so we can query:
Event.active().where(Event.name.startswith('foo'))
# and/or
db(Event.speaker == "john").active()
How far away is this project from being able to be run in the wild?
Add the ability to store sessions on disk.
Reference: web2py/web2py#810
With bloggy from official tutorial
DAL now uses a separated logger: this cause duplicated entries in log on app's messages.
form weppy import Field, Form
Actually templating system parse and exec templates code per request.
I would like to cache the source of the template and use python compile() in combination with exec.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.