thank you for this, but I have one more question: is this guarantied to
execute only once (upon installation).
In my auth_group data I have defined a 'manager' role. The problem is that
when I try to deploy my app, the db does not get transferred, so my code
breaks because the 'manager' group cannot be found.
Is there a way to have it initialized when the app installs in a new
location?
Thank you
thanks, works like a charm
In my table a have a field like this: Field('manager', 'reference
auth_user')
Is there a way to enforce in my db for this 'manager' to be part of
the "managers" group?
I have tried db.myTable.manager.requires_membership('managers'), but
of course this blew up.
Any ideas would be highly appreciated
this was it.
Thank you much
None of the above work guys.
If I tar the folder and go through the install on the admin interface, it
works with no problem.
But if I drop the folder in, web2py will not see it. I've tried restarting.
I have chown-ed it and chmod-it.
Nothing seems to work.
The application is under source contro
No special characters. web2py doesn't see it. It does not appear in the
application list, and it does not find the application when i try to call
it in the browser.
I am trying to implement a unari relationship in one of my tables.(Course
for example)
I am declaring a field has_prerequisites and have it reference it's own
table.
Is this the best way to do this, or is there a better way to solve the
problem
I have dropped my application folder in web2py's application folder,
but when i go to the administrative interface, the framework can not
find it.
Is there a way to make web2py aware of this new application, so I can
see it in the admin interface and be able to run it?
Thank you
The strftime() function didn't work for me, but the I solved the
problem using the sample function. Thank you for your replies.
I am trying to retrieve a datetime.date type out of the request.vars,
but it comes out as str
Is this normal, or is there a way to parse from str back to datetime?
This did the trick. Thanks a lot
Thank you gentleman for your answers. I have followed your instructions,
but somehow it's not working
So in my controller, I have the following:
form=FORM('Date and time: ', INPUT(_name='date',
_class='datetime'), INPUT(_type='submit'))
return dict(form=form)
And my view looks like th
Going further, the datetime is formated differently in the database
(2011-10-31 23:10:00) and the form (2011-11-01T04:26Z), so it makes it
difficult to perform a query using the data gathered from the form.
>From what I read, if the _class and _time attributes of a FORM both
reference "datetime", then this should render a datetime picker in the
view. Is this correct?
My code:
form=FORM('Date and time: ', INPUT(_name='date', _class='datetime',
_type='datetime'), INPUT(_type='submit'))
and upon execut
This is great. Thank you.
Is it possible to set custom levels of access for view, edit and
delete functions of the smartgrid?
For example, can I allow all users to access "View", but only
authenticated user to access "Edit"?
Thank you
I am currently working on a project meant to improve the current
Web2Py Issue Tracking System.
Are there any features that could use touch-ups or new features that
should be implemented?
Looking forward to your suggestions.
18 matches
Mail list logo