[web2py] Re: transfer auth_group data with the app

2011-11-22 Thread petrasadi
thank you for this, but I have one more question: is this guarantied to execute only once (upon installation).

[web2py] transfer auth_group data with the app

2011-11-22 Thread petrasadi
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

Re: [web2py] Enforce roles in db

2011-11-20 Thread petrasadi
thanks, works like a charm

[web2py] Enforce roles in db

2011-11-20 Thread petrasadi
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

[web2py] Re: application installation problem

2011-11-14 Thread petrasadi
this was it. Thank you much

Re: [web2py] application installation problem

2011-11-13 Thread petrasadi
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

[web2py] Re: application installation problem

2011-11-12 Thread petrasadi
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.

[web2py] Implementing unari relationships in web2py

2011-11-11 Thread petrasadi
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

[web2py] application installation problem

2011-11-11 Thread petrasadi
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

[web2py] Re: data from request.vars

2011-11-06 Thread petrasadi
The strftime() function didn't work for me, but the I solved the problem using the sample function. Thank you for your replies.

[web2py] data from request.vars

2011-11-04 Thread petrasadi
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?

[web2py] Re: Datetime picker problem

2011-11-01 Thread petrasadi
This did the trick. Thanks a lot

[web2py] Re: Datetime picker problem

2011-11-01 Thread petrasadi
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

[web2py] Re: Datetime picker problem

2011-10-31 Thread petrasadi
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.

[web2py] Datetime picker problem

2011-10-31 Thread petrasadi
>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

[web2py] Re: smartgrid setup

2011-10-20 Thread petrasadi
This is great. Thank you.

[web2py] smartgrid setup

2011-10-19 Thread petrasadi
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

[web2py] Issue Tracking System Survey

2011-10-04 Thread petrasadi
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.