[web2py] How do I define a table that references itself

2013-02-18 Thread Paul Whipp
Here is an example of what I need to do: db.define_table('Docket', Field('Docket_No', 'integer', required = True), Field('Reference_Docket_ID', 'reference Docket', required = False), Field('Reference_Docket_No', 'integer', required =

Re: [web2py] Re: How do I define a table that references itself

2013-02-18 Thread Paul Whipp
be optional? On Monday, February 18, 2013 12:19:04 AM UTC-8, Paul Whipp wrote: Here is an example of what I need to do: db.define_table('Docket', Field('Docket_No', 'integer', required = True), Field('Reference_Docket_ID', 'reference Docket', required

Re: [web2py] Re: How do I define a table that references itself

2013-02-18 Thread Paul Whipp
February 2013 02:19:04 UTC-6, Paul Whipp wrote: Here is an example of what I need to do: db.define_table('Docket', Field('Docket_No', 'integer', required = True), Field('Reference_Docket_ID', 'reference Docket', required = False), Field

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-30 Thread Paul Whipp
January 2013 16:25, Anthony abasta...@gmail.com wrote: And how do you define magic in this case? On Wednesday, January 30, 2013 12:38:25 AM UTC-5, Paul Whipp wrote: A very fair question. I'd like to define a class that inherits from the controller class set up in the magic stuff

[web2py] What is the right way to specialize an application?

2013-01-29 Thread Paul Whipp
I'm new to web2py but not to Python or web application frameworks. I love the dry pythonic nature of web2py. I'm less enamoured by its use of magic but the convenient REP makes this mostly forgivable. I'm giving web2py a go on a couple of real projects. As I use emacs, it looks like it would

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-29 Thread Paul Whipp
January 2013 13:42, Anthony abasta...@gmail.com wrote: Maybe look into plugins: http://web2py.com/books/default/chapter/29/12#Plugins On Tuesday, January 29, 2013 6:39:44 PM UTC-5, Paul Whipp wrote: I'm new to web2py but not to Python or web application frameworks. I love the dry pythonic nature

[web2py] Is auth.requires_signature() worth using?

2013-01-29 Thread Paul Whipp
I'm trying to get a quick crud interface up for a large number of tables. The default controller data method is decorated with auth.requires_signature() which I don't understand. I could not get past 'not authorized' with it. I changed it to auth.requires_login() and added a 'create', 'read',

Re: [web2py] Re: What is the right way to specialize an application?

2013-01-29 Thread Paul Whipp
and indicating that my controller class is to be used in place of the usual magic controller. On 30 January 2013 15:30, Anthony abasta...@gmail.com wrote: What sort of solution do you envision? On Tuesday, January 29, 2013 11:02:36 PM UTC-5, Paul Whipp wrote: Thanks for that. If I use a plug