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
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
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
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
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
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
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
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
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
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
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/
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
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)
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
14 matches
Mail list logo