[web2py] index called twice

2011-01-20 Thread Art Zemon
Hello, I have a simple function in a controller and it seems to be getting called twice. Any ideas why, and what to do about it? def index(): try: rows = db( (db.gtsign.auth_user_id==request.vars['c']) \ & (db.gtsign.id==request.vars['s']) \ & (db.gtsign.auth_user

[web2py] Cannot Get Trivial routes.py Working

2011-01-23 Thread Art Zemon
Help! I feel like a dolt. I have a trivial routes.py installed in DOCROOT/web2py/routes.py: #!/usr/bin/python default_application = 'gotosigns' default_controller = 'default' default_function = 'invalid' If I visit https://web2py.hens-teeth.net/ , I end up at https://web2py.hens-te

Re: [web2py] Cannot Get Trivial routes.py Working

2011-01-23 Thread Art Zemon
On 01/23/2011 11:38 AM, Jonathan Lundell wrote: Did you restart web2py? Jonathan, That was it, THANK YOU! A quick Apache restart cured my ills. I didn't realize that, when running web2py behind WSGI, the routes.py file was only read once. -- Art Z. -- Art Zemon, President

[web2py] Field custom_store and custom_delete

2011-01-30 Thread Art Zemon
t and contribute the code back to web2py. Would you like to see this as patches to the existing codebase or what? It looks like I just need to add the new attribute to Field and add a couple of lines to Set.delete_uploaded_files. -- Art Z. -- Art Zemon, President Hen's Teeth Network <ht

[web2py] crud.create next= syntax

2011-01-30 Thread Art Zemon
back to using a SQLFORM? Thanks, -- Art Z. -- Art Zemon, President Hen's Teeth Network <http://www.hens-teeth.net/> The source of reliable, secure e-commerce web hosting <http://www.hens-teeth.net/html/hosting/ecommerce_hosting.php> Phone: (866)HENS-NET or (636)447-3030 ext. 200

Re: [web2py] Re: crud.create next= syntax

2011-01-30 Thread Art Zemon
which gave me access to form.vars.id -- Art Z. -- Art Zemon, President Hen's Teeth Network <http://www.hens-teeth.net/> The source of reliable, secure e-commerce web hosting <http://www.hens-teeth.net/html/hosting/ecommerce_hosting.php> Phone: (866)HENS-NET or (636)447-3030 ext. 200

[web2py] JSON output errors *hard* to debug

2011-01-30 Thread Art Zemon
ption. The real error is that location is not serializable but OY VEY that was tough to figure out. (All I had to do was convert location to a string and all was well.) Is there some debugging fu that I am missing? -- Art Z. -- Art Zemon, President Hen's Teeth Network <http://www.he

Re: [web2py] JSON output errors *hard* to debug

2011-01-30 Thread Art Zemon
On 01/30/2011 06:50 PM, Jonathan Lundell wrote: Did you see the "no json" message as well (just curious)? Oh yes... and that was what was so distracting. I spent ages trying to figure out how a simple dict with two elements could be failing to create valid JSON. -- Art Z

Re: [web2py] SQLCustomType

2011-02-01 Thread Art Zemon
Files. I had initially thought that I could do it with custom_store and custom_delete but realized that I would need custom_retrieve, too. So it is probably best to subclass Field or use SQLCustomType or something. -- Art Z -- Art Zemon, President Hen's Teeth Network <http://www.h

[web2py] Differing Form Presentation with SQLFORM readonly=True

2011-02-03 Thread Art Zemon
Hello, I have a field defined like this: Field('state', 'string', requires=IS_IN_DB(db, 'state.id', 'state.abbreviation', zero=T('Choose one'))) If I create a SQLFORM like this, form = SQLFORM(db.address, address) I get what I expect: a drop-down menu displaying all of the state.abb

[web2py] Bug in def data(): return dict(form=crud())

2011-02-03 Thread Art Zemon
Found a bug. I wrote: def data(): return dict(form=crud()) The page .../default/data/select/orders creates a nice list of all records in the orders table. The links in the ID column are wrong, though. They are to URLs of this form: .../default/read/orders/3 instead of .../default/

[web2py] Re: Cloud hosting company

2011-02-07 Thread Art Zemon
Yes, we do (Hen's Teeth Network). Web2py is running great using mod_wsgi in our Cirrus plans. I have not tried to make it work in a Stratus plan, yet. See http://www.hens-teeth.net/html/hosting/ for details. For "proof," visit http://web2py.hens-teeth.net/ which is an internal R&D site. We have al

[web2py] Re: Kind of e-commerce but maybe not

2011-02-08 Thread Art Zemon
Kenneth, It's neither web2py nor written in python but take a look at PDG Commerce. The big win for you would be great QuickBooks POS integration. Details at www.pdgsoft.com Disclaimer: we do a lot of PDG Commerce customization and programming. -- Art Z. (www.hens-teeth.net)

[web2py] Deleting Fields of type "upload"

2011-03-02 Thread Art Zemon
think that I should move this to web2py-developers, just say the word. Thanks, -- Art Z. -- Art Zemon, President Hen's Teeth Network <http://www.hens-teeth.net/> The source of reliable, secure e-commerce web hosting <http://www.hens-teeth.net/html/hosting/ecommerce_hosting.php