[web2py] add_membership, del_membership, add_membership = IntegrityError (is_active)

2015-10-19 Thread sunny
Hi, I ran into a problem with memberships: When I add a membership to a user and delete it afterwards the record is not actually removed from the table but is_active is set to 'F '. I can check with has_membership and it is False. But now I'm unable to add the same membership again, because it

[web2py] show_if belongs condition.second is set()

2014-06-03 Thread sunny
The following show_if condition gives me an "Not Implemented Error": auth_table_user.position.show_if = auth_table_user.employee_type.belongs(('employee', 'external')) I fixed it for me, with the following change in sqlhtml.py if cond.op.__name__ == 'BELONGS' and isinstance(cond.second,(lis

[web2py] archive tables do not migrate

2014-04-04 Thread sunny
is there a known problem with migration of archive tables? after i added a field to a table with record versioning enabled, i got an error that the field was missing in the archive table. my web2py version is 2.9.5-stable. -- Resources: - http://web2py.com - http://web2py.com/book (Documentatio

[web2py] add private folder to files_menu again

2014-04-03 Thread sunny
hi, could you please add the "private" folder to the files_menu in the admin app again? web2py/applications/admin/controller/default.py: def files_menu(): app = request.vars.app or 'welcome' dirs=[{'name':'models', 'reg':'.*\.py$'}, {'name':'controllers', 'reg':'.*\

[web2py] bug in dal.py _select > geoexpand: convert geography as well

2014-03-19 Thread sunny
geoexpand should expand geography as well. otherwise geography fields will not be converted to text. the fix for me was to change the if part in geoexpand (dal.py:1713) -if isinstance(field.type,str) and field.type.startswith('geometry') and isinstance(field, Field): +if

[web2py] Re: Virtual Field and sqlform.grid

2014-01-06 Thread sunny
Field.Virtual has a name attribute which has to be set: db.Post.category_list = Field.Virtual( 'category_list', lambda row: get_category_list(row.Post) ) Am Mittwoch, 20. November 2013 19:26:23 UTC+1 schrieb Eduardo Cruz: > > Whe I use a table that has some a virtual field sqlform.grid does not

[web2py] Re: Virtual Field and sqlform.grid

2014-01-06 Thread sunny
I think, you need to delete the old session files of your application. I had the same problem. Am Mittwoch, 20. November 2013 19:26:23 UTC+1 schrieb Eduardo Cruz: > > Whe I use a table that has some a virtual field sqlform.grid does not works > > 'Row' object has no attribute 'unknown' > > and th

[web2py] de language file of app admin broken

2013-06-12 Thread sunny
the german language file of the app admin is broken. umlauts are question marks. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googleg

[web2py] scgihandler with LOGGING broken?

2013-01-02 Thread sunny
Hi, I get the following error when I try to run scgihandler with LOGGING enabled. Is this a known problem? Ciao, Sven neo:/var/www/web2py# python scgihandler.py Traceback (most recent call last): File "/var/www/web2py/scgihandler.py", line 75, in SCGIServer(application, port=4000).enable

[web2py] bug in dbnew part of ticket-system fixed

2012-08-21 Thread sunny
hi, i came across a bug in the ticket system while trying to switch from filesystem to db. the db_ready variable needs to be returned in admin/controllers/default.py also in the dbnew part. line 1196: return dict(errors = [x[1] for x in decorated], app=app, method=method, db_ready=db_ready) i

[web2py] 3-table many-to-many with IS_IN_DB

2012-01-16 Thread sunny
Hi, for days I try to find a solution for my problem which I'm sure exists. I want to create/update the many2many relationship "auth_user -> auth_membership -> auth_group" in an auth_user form with an "IS_IN_DB multiple=true"-widget. How can I do that? Thanks in advance, Sven

[web2py] how to install wizard in this ...

2010-10-27 Thread sunny
Hi , i had recently seen this video of using the wizard. Its really cool. I want to use that. Person in the video the link saying "create application using wizard" but i don't see any thing like that in my screen and my web2py software is up to date . Please help me with this . If there is anythin