[web2py] Re: Migrating only a single auth table ?

2014-11-23 Thread Chris Baron
Ah, I think I understand. Thank you. On Wednesday, November 19, 2014 10:29:17 AM UTC-6, Leonel Câmara wrote: No it won't fail, it won't try to recreate auth_user unless you deleted your .table files, in which case you need to do a fake migration first. -- Resources: - http://web2py.com -

[web2py] Re: Migrating only a single auth table ?

2014-11-19 Thread Chris Baron
Then you can define your auth.settings.extra_fields['auth_group'], put your extra columns there, and do a regular migration. -- This is the first thing I tried to do. Won't that fail because auth_user already exists? I only want to migrate a single table -- auth_group. On Wednesday, November

[web2py] Migrating only a single auth table ?

2014-11-18 Thread Chris Baron
I am trying to add columns to auth_group, but the migration breaks here : auth.define_tables(username=False, signature=False, migrate=True) It tries to migrate auth_user first, and fails because it already exists. How do I migrate only the auth_group table ? -- Resources: - http://web2py.com

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
18, 2011 at 12:57 PM, Chris Baron topher.ba...@gmail.com wrote: How do you do it ? Here is my controller : ownDataSource = db( db.gtree.contributor == ' '.join( [ auth.user.first_name, auth.user.last_name ] ) ).select()    class ownVirtualFields(object

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
, 9:40 am, Chris Baron topher.ba...@gmail.com wrote: Thank you for the prompt responses. On Jul 19, 4:12 pm, Roberto Perdomo roberto...@gmail.com wrote: Hello, it's me again. Well, I discovered that the problem of loading the table with load is in the event live plugin_powertable.py

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
on the dict. 2011/7/20 Chris Baron topher.ba...@gmail.com I'm still having a problem getting two powertables on one page.  If I comment out the code for the second powertable, everything is fine, but it seems the first powertable can't find its data.  Please refer to code posted above.  I

[web2py] powertable ( multiple tables on the same page )

2011-07-18 Thread Chris Baron
How do you do it ? Here is my controller : ownDataSource = db( db.gtree.contributor == ' '.join( [ auth.user.first_name, auth.user.last_name ] ) ).select() class ownVirtualFields(object): @virtualsettings(label='Tree') def tree_url(self): gtree = self.gtree.id

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-18 Thread Chris Baron
. On Mon, Jul 18, 2011 at 12:57 PM, Chris Baron topher.ba...@gmail.comwrote: How do you do it ? Here is my controller : ownDataSource = db( db.gtree.contributor == ' '.join( [ auth.user.first_name, auth.user.last_name ] ) ).select()    class ownVirtualFields(object

[web2py] Janrain login_next

2011-06-24 Thread Chris Baron
Hi web2py users, I'm using Janrain for login. What's the best way to have a proper redirect after login? I would like to redirect to be the location visited before the login page. When a non logged in user attempts to access a page that requires login, they are redirected to the login page,

[web2py] Unable to access admin, one other application

2011-02-22 Thread Chris Baron
._create_references()\n File /Users/cbaron/Desktop/web2py/gluon/ dal.py, line 3795, in _create_references\nraise SyntaxError, Table: table \'%s\'does not exist % rtablename\nSyntaxError: Table: table \'graftedTree\'does not exist\n' p261 s. Thanks in advance, Chris Baron

[web2py] Re: Multi Tabbed Menu - Any Suggestions.

2011-01-06 Thread Chris Baron
http://jqueryui.com/demos/tabs/ You could also try writing your own if you're not happy with the way it works. Use the jquery code as a reference. On Jan 5, 11:58 pm, David J. da...@styleflare.com wrote: I was wondering if anyone on the list has seen an good multi-level horizontal tab menu.

[web2py] python list serialization to json

2010-12-30 Thread Chris Baron
In my controller: def default(): f=open('/tmp/debug','w') f.write( str( request.vars.tabs ) )f.write( '\n' ) f.write( response.json(request.vars.tabs) ) return dict( tabs = response.json(request.vars.tabs) ) In /tmp/debug [{'text': 'Tree List', 'args': {'trees': 'db.tree.id

[web2py] Re: python list serialization to json

2010-12-30 Thread Chris Baron
Its not my day for posting. request.vars.tabs is a list of strings in python when it gets to the controller. The response.json does exactly what its supposed to do. Sorry for the spam. On Dec 30, 12:59 pm, Chris Baron topher.ba...@gmail.com wrote: In my controller: def default():     f

[web2py] another component question

2010-11-10 Thread Chris Baron
Hello web2py users, I've been playing around with components recently and they are helping me modularize my application. I was hoping someone could explain to me why they do what they do. I've noticed that when a controller function that is referenced by a component returns a dict(), it

[web2py] Render svg using web2py without js library

2010-10-27 Thread Chris Baron
in advance, Chris Baron