[web2py] Multiples requieres in SQLFORM

2018-10-22 Thread Chris V.
Hello list, I need to have 2 requires in the same field, one requires must be a select multiple, but also it can be a different value of initial select multiple, this because in the view the select multiple values are changed with javascript . It is possible to make something like the

[web2py] Re: web2py 2.10.3 si OUT

2015-04-03 Thread Sadham V
I tried the new version. There is one problem. Sqlform.grid does not display the values of referenced fields. Only ID. How can I fix this? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: Modifying A helper callback behavior

2015-02-28 Thread Gao V
朋友是中国人吗?交个朋友,有些问题想向你请教。 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups

[web2py] web2py best practices/patterns

2013-01-16 Thread H.C. v. Stockhausen
Hi, working with web2py is fun and I've learned a lot about web development and Python. So 'yes', web2py is a great teaching tool and the docs are very good too. Small projects are a breeze to realize and MVC separates the concerns nicely. In larger projects however, I still manage to end up

[web2py] Re: plugins

2012-03-21 Thread A K S V Vijay
Hi Massimo, I'm new to web2py framework. I have started learning the framework recently. We are doing a cloud based project that has to be deployed on Google App Engine. Could you suggest some important things that I need to take care when developing in web2py aiming to

Re: [web2py] Re: plugins

2012-03-21 Thread A K S V Vijay
Thank you Anthony for your reply On Wed, Mar 21, 2012 at 6:10 PM, Anthony abasta...@gmail.com wrote: There's a Deploying on Google App Engine section at the end of this chapter in the book: http://web2py.com/books/default/chapter/29/13 On Wednesday, March 21, 2012 5:51:57 AM UTC-4, A K S V

[web2py] Re: CouchDB NoSQLAdapter.represent for datetime

2011-10-25 Thread H.C. v. Stockhausen
the developer what view needs to be added...). Best regards, HC On Oct 25, 3:51 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I made some changes in trunk that should have fixed the date/datetime issue but I am not sure. Can you try it? On Oct 24, 7:25 pm, H.C. v. Stockhausen h...@vst.io

[web2py] Re: CouchDB NoSQLAdapter.represent for datetime

2011-10-24 Thread H.C. v. Stockhausen
Di Pierro massimo.dipie...@gmail.com wrote: This is very helpful. I was expecting this problem. How are datetimes supposed to be stores in CouchDB? On Oct 22, 3:13 am, H.C. v. Stockhausen h...@vst.io wrote: Hi I am just testing the CouchDB Adapter and it fails when registering

[web2py] CouchDB NoSQLAdapter.represent for datetime

2011-10-22 Thread H.C. v. Stockhausen
no attribute 'read' DAL CODE (dal.py at line 3510) = def insert(self,table,fields): id = uuid2int(web2py_uuid()) ctable = self.connection[table._tablename] values = dict((k.name,NoSQLAdapter.represent(self,v,k.type)) for k,v in fields) values['_id'] = str(id

[web2py] Change base directory

2011-07-04 Thread Junaid P V
Hi, I think I have made web2py working on my hosting account, see: http://junaidpv.in/w2p/welcome But web2py is assuming it is working on document root, actually I installed it on /w2p sub directory. web2py presents every anchors and files (.js, images, etc) in page based to document root

[web2py] limitby not working

2011-06-10 Thread Junaid P V
Hi, I have a database of lamps, I was trying to show paginated records from lamps table. I could not find limitby working. My code is: lamps = db().select(db.lamps.ALL, limitby=(offset, limit)) But, I get records only in the rage 0 to limit starting from offset To clarify, if I have 7

[web2py] Re: limitby not working

2011-06-10 Thread Junaid P V
Thank you Massimo :) I was thinking in SQL

[web2py] compute field with list:reference

2011-03-23 Thread goutham v
Please look at the attachment. for DB screenshot in db.py contents of define_table Field('tags','list:reference tags'), Field('refval','string', compute=lambda r:r['tags']), Field('min_tag_id','integer', compute=lambda r:min(r['tags'])), Field('max_tag_id','integer',

[web2py] Re: compute field with list:reference

2011-03-23 Thread goutham v
the fix worked thanks massimo. and I am using Version 1.93.2 (2011-03-04 23:48:59)

[web2py] Re: Problem with list:reference

2011-03-17 Thread goutham v
thanks for the solution it worked. but in doc herehttp://web2py.com/book/default/chapter/06#Many-to-Many,-list:type,-and-contains it asks to use the queried object directly? doesn't that way work?

[web2py] Re: new features and new book sections/chapters

2011-03-17 Thread goutham v
I think we should have a section displaying which all features of DAL are currently not supported on GAE and what are the alternative ways of achieving them.

[web2py] AttributeError: 'module' object has no attribute 'mkdir'

2010-01-08 Thread v
'mkdir' regards, -V -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group

[web2py:37680] UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread v
', 'upload', uploadfield='file_storage'), SQLField('file_storage', 'blob')) Thanks in advance. Best Regards, - V -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com

[web2py:37684] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread v
: unexpected code byte Hope I'm not doing something silly. Perhaps if you get a chance to quickly test your mywiki example yourself on GAE, you should be able to reproduce it. Thanks once again. Best Regards, V On Dec 23, 1:09 am, mdipierro mdipie...@cs.depaul.edu wrote: Thank you v

[web2py:37731] Re: UnicodeDecodeError: 'utf8' codec can't decode byte 0xff in position 0: unexpected code byte

2009-12-22 Thread v
Great! both solutions work fine now. Have tested with a few binary file uploads. Using your changes in the trunk to sql.py. Thanks, V On Dec 23, 1:44 am, mdipierro mdipie...@cs.depaul.edu wrote: I may have fixed it in trunk. Could you please try it? On Dec 22, 2:26 pm, v vishal

[web2py:31417] how to use mysql polygon / geometry fields??

2009-09-21 Thread V. K
Is there way to use the DAL and interact with the mysql polygon / multipolygon fields? Or the best way is to resort to: db.executesql('')? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users

[web2py:31449] Re: how to use mysql polygon / geometry fields??

2009-09-21 Thread V. K
Sure, I will get in touch if I decide to add something to the DAL. On Sep 21, 3:59 pm, Fran francisb...@googlemail.com wrote: On Sep 21, 7:47 pm, V. K veerb...@gmail.com wrote: Is there way to use the DAL and interact with the mysql polygon / multipolygon fields? Or the best way

[web2py:31063] Re: Help with calling the web-service from the web2py shell

2009-09-15 Thread V. K
...@gmail.com wrote: On Mon, Sep 14, 2009 at 1:54 PM, mdipierro mdipie...@cs.depaul.edu wrote: import urllib html=urllib.urlopen(URL(.)).read() On Sep 14, 2:47 pm, V. K veerb...@gmail.com wrote: Hi, I want to call a web2py web service from the shell and obtain the HTML response

[web2py:31093] web2py server freezes w/ shell appliance

2009-09-15 Thread V. K
I have installed the web2py appliance (http://www.web2py.com/ appliances/default/show/23). web2py server freezes if I try the following command: import urllib urllib.urlopen('http://127.0.0.1:8000/').read() This is probably happening because the Shell appliance is not thread safe as

[web2py:31011] Help with calling the web-service from the web2py shell

2009-09-14 Thread V. K
Hi, I want to call a web2py web service from the shell and obtain the HTML response (not using a web browser). From example: For the service: http://www../a/c/f/x/y?z=t Construct the URL object: URL('a','c','f',args=['x','y'],vars = dict(z='t')) and then how do I call the controller

[web2py:/] Explicit use of web2py html generation engine

2009-09-11 Thread V. K
I was looking to use the python shell to generate the final HTML that is rendered in a browser: Let me explain: Normally in web2py: the URL http://www.misite.com/app/default/index; maps to a python function and uses an appropriate view file to return HTML/XML/JSON... data. I wanted to use the

[web2py:30765] Re: Explicit use of web2py html generation engine

2009-09-11 Thread V. K
I looked in the web2py source code. The closest function to what I am looking for is: serve_controller (in main.py). On Sep 11, 10:57 am, V. K veerb...@gmail.com wrote: I was looking to use the python shell to generate the final HTML that is rendered in a browser: Let me explain: Normally

[web2py:30768] Re: Explicit use of web2py html generation engine

2009-09-11 Thread V. K
Lundell jlund...@pobox.com wrote: On Sep 11, 2009, at 10:57 AM, V. K wrote: I was looking to use the python shell to generate the final HTML that is rendered in a browser: Let me explain: Normally in web2py: the URL http://www.misite.com/app/default/index; maps to a python function