[web2py] Re: "Enter date as 1963-08-28" error

2014-09-01 Thread Richard
I did this not on purpose, it was copy-past issue. The error I got was quite misleading. May this could be improved bij the validation. On Sunday, August 31, 2014 6:32:37 PM UTC+2, Niphlod wrote: > > hm. sorry, you got that already: you have two fields with the same name. > What are you trying t

[web2py] Re: Scheduler repeat time drift

2014-09-01 Thread Niphlod
prevent_drift is yet on core since 2.8.2 On Monday, September 1, 2014 8:11:18 AM UTC+2, Yi Liu wrote: > > Hi, any updates on Cron_style scheduler? > > Scheduler is definitely more powerful than cron? Unfortunately, it cannot > do what cron can do simply :( I am developing a web app that scrapes a

[web2py] Re: "Enter date as 1963-08-28" error

2014-09-01 Thread Richard
I did this not on purpose, it was copy-past issue. The error I got was quite misleading. May this could be improved bij the validation. On Saturday, August 30, 2014 9:13:09 PM UTC+2, Richard wrote: > > I have used an sql form for adding records with date fields. > I added 2 date fields on a tabl

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread dlypka
It looks like GAE has the 'Projection Query' feature to allow selecting a subset of columns / properties: https://developers.google.com/appengine/docs/python/datastore/projectionqueries On Friday, August 29, 2014 11:18:00 PM UTC-5, Massimo Di Pierro wrote: > > This should work, can you please ope

[web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread Quint
Ok, I did not test this but from what can see from here the line below needs to be changed. (This line does not yet consider NDB.) def BELONGS(self, first, second=None): if not isinstance(second, (list, tuple, set)): raise SyntaxError("Not supported") if not self.use_ndb: if isinstance(s

[web2py] Re: Moving a file (upload) from one table to another

2014-09-01 Thread Spokes
Thanks, Niphlod. I've gotten closer to a solution with your suggestion. However, there's still something of an issue. I start off by storing the path to the image field which I would like to copy, and creating a stream for the corresponding image image_filename_as_list = image_row.image

[web2py] Re: Scheduler repeat time drift

2014-09-01 Thread Yi Liu
Just read carefully and found that in the book. Thanks! On Monday, September 1, 2014 12:53:29 AM UTC-7, Niphlod wrote: > > prevent_drift is yet on core since 2.8.2 > > On Monday, September 1, 2014 8:11:18 AM UTC+2, Yi Liu wrote: >> >> Hi, any updates on Cron_style scheduler? >> >> Scheduler is def

[web2py] Re: Philosophical help with REST

2014-09-01 Thread Leonel Câmara
Seems like you need this: http://www.web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Rendering-rows-using-represent This way you can render the fields using their represents before returning them to the user. -- Resources: - http://web2py.com - http://web2py.com/book (Docu

[web2py] URL from menu with page name as the domain name

2014-09-01 Thread Gael Princivalle
Hello all. I've got a strange error with my menu. If I set an URL in my menu to a page name that's have the same name as my domain name, web2py add default to my URL. For example: response.menu = [ (T('Home'), False, URL('default', 'index'), []), (T('Contacts'), False, URL('default', 'c

[web2py] Re: IMAPDB, decode ISO-8859-1 in sender.from name

2014-09-01 Thread Leonel Câmara
Humm this might be a bug because the IMAP adapter does this: # decode quoted printable self.db[name].to.represent = self.db[name].cc.represent = \ self.db[name].bcc.represent = self.db[name].sender.represent = \ self.db[name].subject.represent = self

[web2py] Re: URL from menu with page name as the domain name

2014-09-01 Thread Niphlod
are you using some url rewrite facility ? On Monday, September 1, 2014 8:43:02 PM UTC+2, Gael Princivalle wrote: > > Hello all. > > I've got a strange error with my menu. > If I set an URL in my menu to a page name that's have the same name as my > domain name, web2py add default to my URL. > > F

[web2py] Re: URL from menu with page name as the domain name

2014-09-01 Thread Gael Princivalle
No. Il giorno lunedì 1 settembre 2014 21:13:27 UTC+2, Niphlod ha scritto: > > are you using some url rewrite facility ? > > On Monday, September 1, 2014 8:43:02 PM UTC+2, Gael Princivalle wrote: >> >> Hello all. >> >> I've got a strange error with my menu. >> If I set an URL in my menu to a page n

[web2py] Re: Philosophical help with REST

2014-09-01 Thread Joe Barnhart
That seemed like the solution. But render() returns a generator, and the json converter doesn't work with it directly. So, I could run it thru a for loop to materialize the rows, but that feels again like I'm beginning to swim upstream. Plus, I'd have to do this individually for each rest URL

[web2py] Re: URL from menu with page name as the domain name

2014-09-01 Thread Niphlod
sure ? URL('default', 'contacts') needs to generate mydomain.com/appname/default/contacts then... Every non-shortened/non-rewritten url has host.com/app/controller/function an URL('default', 'contacts') combines to controller='default', function='contacts', so host.com/appname/default/conta

[web2py] Re: URL from menu with page name as the domain name

2014-09-01 Thread Niphlod
BTW: for "url rewrite facility" I mean every possible incarnation of routes.py. -- 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

[web2py] Web2py & Geraldo Reports

2014-09-01 Thread 'FERNANDO VILLARROEL' via web2py-users
Dear All. I am try to use Geraldo Reports with web2py and i am following this howto: http://www.geraldoreports.org/docs/tutorial-web2py.html But i received a error with this import >>> from reports import ReportPurchase Traceback (most recent call last): File "", line 1, in ImportError: No

[web2py] Web2py & Geraldo Reports

2014-09-01 Thread Leonel Câmara
You are missing dependencies. Probably reportlab. -- 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

Re: [web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread Russ King
Many thanks for reply however this doesn't seem to be a complete fix - code is failing on the 'in' piece of this filter function and I am not clear how this relates to the belongs code up above. Regards Russ GAE_FILTER_OPTIONS = { '=': lambda q, t, p, v: q.filter(getattr(t,p) == v),

[web2py] Re: How to do references, and dropdowns?

2014-09-01 Thread Gary Cowell
On Friday, 29 August 2014 14:22:56 UTC+1, Gary Cowell wrote: > > Hello > > I have the following in models: > > db.define_table('senders', > Field('sender','string',length=80,label="Sender")) > > db.define_table('documents', > > Field('description','text',requires=IS_LENGTH(256,1),label="

[web2py] Re: ajax login, wrong password redirects to wrong page

2014-09-01 Thread Maciej S
I've created new issue: https://code.google.com/p/web2py/issues/detail?id=1975&start=100 W dniu sobota, 30 sierpnia 2014 01:32:45 UTC+2 użytkownik Massimo Di Pierro napisał: > > Please open a ticket. Which python version? > > On Thursday, 28 August 2014 08:19:42 UTC-5, Maciej S wrote: >> >> Some

[web2py] Using html tags inside checkbox labels

2014-09-01 Thread Tauno Metsalu
I am quite new in web2py and trying to show line breaks inside checkbox labels, but couldn't figure out how to prevent web2py from sanitizing the tags. My example code is as follows: in model: x = [1, 2, 3] y = ['Apple', 'Banana', 'Cherry'] for i in range(0, len(y)): y[i] = y[i] + "" + str(x[i])

[web2py] Re: ajax login, wrong password redirects to wrong page

2014-09-01 Thread Maciej S
I have Python 2.7.5 W dniu sobota, 30 sierpnia 2014 01:32:45 UTC+2 użytkownik Massimo Di Pierro napisał: > > Please open a ticket. Which python version? > > On Thursday, 28 August 2014 08:19:42 UTC-5, Maciej S wrote: >> >> Some time ago I posted question on stackoverflow, and I still don't have

[web2py] Re: How do I change or remove the tabkename above a SQLFORM.grid?

2014-09-01 Thread Tom Øyvind Hogstad
Thank you Massimo. But that did not work. I'm new to web2py so there could be something i don't understand. Some suggestions for improvement (I use the bootstrap 3 version) If Pluraltablename is part of the grid, then it should be within the grid div / grid classes so I can css it away easily. Pl

[web2py] apache2 + uploads = freeze

2014-09-01 Thread replayskevitch
Hello, Ok let's start with some info. -i use cross-domain request( my project is a local application but can interact with a database ) -https -apache2 -ubuntu server 14.04 -sqlLite and the controller is simple as f*** if request.env.http_origin: response.headers['Access-Control-Allow-Ori

[web2py] Re: new web2py videos

2014-09-01 Thread Ariya Owam-aram
Thanks เมื่อ วันอาทิตย์ที่ 31 สิงหาคม ค.ศ. 2014, 9 นาฬิกา 57 นาที 04 วินาที UTC+7, Massimo Di Pierro เขียนว่า: > > Nico has helped edit and re-organize some my class lectures about web2py. > They are now split into 30 small videos: > > https://vimeo.com/album/3016728 > > Please join me in

[web2py] web2py 2.9.6 is out!

2014-09-01 Thread Massimo Di Pierro
This is a much improved revision. Lots of the changes are internal rewrites to strengthen the security and enable porting to bootstrap 3 in the next version. The list below does not give justice to how much work went into this release. Much better GAE support too. I strongly encourage you to up

Re: [web2py] Re: GAE NDB is there a problem with using belongs on an id field?

2014-09-01 Thread Quint
Could you post the stacktrace? -- 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] Re: apache2 + uploads = freeze

2014-09-01 Thread Niphlod
sqlite locks the entire database for every read and write operation. On Monday, September 1, 2014 11:14:28 AM UTC+2, replays...@gmail.com wrote: > > Hello, > > Ok let's start with some info. > > -i use cross-domain request( my project is a local application but can > interact with a database ) >