[web2py] form=auth() does not honor setting.login_url incase no arg is passed
web2py version 1.98.2 If a custom url is set for login_url (via auth.settings.login_url) and no arg is passed, auth() does not honor login_url and redirects to url based on controller set while initializing Auth() e.g. auth=Auth(globals(),db) auth.settings.login_url = URL(request.application, c='c', f='user', args='login') Assuming application to be 'init' url /init/c/user is redirected to /init/default/user/login. Code from gluon/tools.py (lines 1101 on http://code.google.com/p/web2py/source/browse/gluon/tools.py#1101) def __call__(self): usage: def authentication(): return dict(form=auth()) request = current.request args = request.args if not args: redirect(self.url(args='login',vars=request.vars)) Should not there be a check on auth.setting.login_url before regenerating login url if no args are passed?
[web2py] Re: question about csv import of unmatched fields
Doesn't exactly answer my question. For example, say in web2py you define table with fields a, b, c. In old db you have fields a, b and d. Will you be able to load blank web2py table with old db data for a and b just by importing the old db csv file into the new db? Or will importer choke? On Sep 19, 7:15 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: They do not have to match exactly, it is sufficient all data present can be parsed by the existing fields types. For example a date can be loaded into a string or an int can be loaded into a string or a double. On Sep 19, 11:55 am, weheh richard_gor...@verizon.net wrote: I haven't had time to try this but, does anyone already know whether csv import will work if only some of the fields match the importing table and others do not? It would be useful to degrade gracefully like this if new tables don't exactly match old tables.
[web2py] Re: Are we ready to launch 1.99.1?
Many features have been added recently(last 3 months) but documentation is behind these. Can docs can be updated, without this many features will be lost somewhere in code. Also as Python is not staticly typed language and doesnt use variable type declaration its very often dificult to understand it without comments in code or docs. e.g. Here is an example of method signature for SQLFORM.grid. It toook me some time to find out the format for fields parameter. I tried ['id','name','age'], then ['db.person.id','db.person.name', 'db-person.age'], then (db.person.id, db.person.name ...) and the latest worked :-) but its just guesswork. And there are many other parameters in this method. def grid(query, fields=None, field_id=None, left=None, headers={}, columns=None, orderby=None, searchable=True, sortable=True, paginate=20, deletable=True, editable=True, details=True, selectable=None, create=True, csv=True, links=None, upload = 'default', args=[], user_signature = True, maxtextlengths={}, maxtextlength=20, onvalidation=None, oncreate=None, onupdate=None, ondelete=None, sorter_icons=('[^]','[v]'), ui = 'jquery-ui', _class=web2py_grid, formname='web2py_grid', ):
Re: [web2py] Are we ready to launch 1.99.1?
Massimo, While I download... Are the download files signed and/or hashed? just in case... mic 2011/9/20 Massimo Di Pierro massimo.dipie...@gmail.com: Please download the nightly built and try it with your apps. If they work, say go and I we will launch tomorrow. Massimo
[web2py] Re: Are we ready to launch 1.99.1?
Ran application I am working on no problems. The welcome application seems to pull in some adware. Firebug opens in Firefox with a problem loading sm6.html saying _gat is not defined. I believe this is coming from the Share item in the top menu. The jQuery team has released 1.6.4 to fix a bug introduced in 1.6.3 which I have not seen yet, I believe it manifests on IE. The version in trunk is 1.6.3 still. Ron
[web2py] what about web2py 2.0?
anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?
[web2py] Are there any Lotus Notes developers using web2py?
Are there any Lotus Notes developers using web2py? I'v been doing Lotus Notes development for more than 15 years and I also did two projects with web2py recently. I really like web2py it makes me very productive, comparing to Java Server Faces based xPages in Lotus Notes, which are really, really slow to develop (to be honest I like java more, but web2py is definitely more productive in many areas). In Lotus Notes we have many smaller or bigger applications installed at our customers solving general problems like CRM, document workflow, invoice approval process, projects, task management etc. I appreciate the web2py concept of one server running many applications, SSO using CAS, its very similar to Lotus Notes approach, which is great. And now the point ... I'm thinking about creating some code infrastracture similar to LN, some general workflow engine and so and I thought about to join forces with others maybe LN developers that have similar requirements as we have. Is there anyone interested in such thing? We discuss here or privately ...
Re: [web2py] what about web2py 2.0?
clean up is being done day by day without break of compatibility. http://zerp.ly/rochacbruno Em 20/09/2011 05:26, Mengu whalb...@gmail.com escreveu: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?
Re: [web2py] Re: Problem uploading files.
I only can reproduce it on the production server. The fail comes about 2 seconds aftehr when the upload begins (and with my connection is impossible to upload 1.2 mb in 2 seconds), but the uploading screen doesn't changes, is like the firefox is waiting for a response. 2011/9/20 Massimo Di Pierro massimo.dipie...@gmail.com Is this reproductible? How long does the upload take? On Sep 19, 10:45 am, demetrio dgzabal...@gmail.com wrote: Hi, i'm having the next traceback when I try to upload a file in the production server: Traceback (most recent call last): File /srv/web2py/gluon/main.py, line 442, in wsgibase parse_get_post_vars(request, environ) File /srv/web2py/gluon/main.py, line 276, in parse_get_post_vars request.body = copystream_progress(request) ### stores request body File /srv/web2py/gluon/main.py, line 144, in copystream_progress copystream(source, dest, size, chunk_size) File /srv/web2py/gluon/fileutils.py, line 366, in copystream data = src.read(chunk_size) File /usr/lib/python2.6/socket.py, line 377, in read data = self._sock.recv(left) timeout: timed out The problem comes when I try to upload a 1.2mb zip file. If I upload a text file with less mb, there is no problem. And there is no problem with the web2py own server. Only in the production machine. The machine is running web2py 1.98.1 under Debian GNU/Linux 6.0.2 (squeeze) with python 2.6 Does anybody knows whats happening? Thanks in advance
Re: [web2py] Re: Are we ready to launch 1.99.1?
I forgot: it's Version 1.99.0 (2011-09-20 03:52:08) 2011/9/20 Martin Weissenboeck mweis...@gmail.com I wanted to play with other login methods. Therefore I created a new application called alt_login - it started with no problems. Next step: I copied the definition of my own auth_table from the book into alt_login. Here are the lines of code: ... Traceback (most recent call last): File /etc/web2py/gluon/restricted.py, line 194, in restricted exec ccode in environment File /etc/web2py/applications/alt_login/models/db.py https://secure.infosms.org:8000/admin/default/edit/alt_login/models/db.py, line 56, in module IS_NOT_EMPTY(error_message=auth.messages.is_empty) NameError: name 'auth_table' is not defined I have tried it without the line auth.define_tables() - same result. Any ideas? Regards, Martin
Re: [web2py] what about web2py 2.0?
+1 for breaking compatibility (in a major version) a remove obsolete features,,, On Tue, Sep 20, 2011 at 9:26 AM, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up? -- Sebastian E. Ovide
Re: [web2py] what about web2py 2.0?
Yes 2.0 we have to make it big. 2011/9/20 Sebastian E. Ovide sebastian.ov...@gmail.com +1 for breaking compatibility (in a major version) a remove obsolete features,,, On Tue, Sep 20, 2011 at 9:26 AM, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up? -- Sebastian E. Ovide -- http://martin.tecnodoc.com.ar
Re: [web2py] what about web2py 2.0?
We should make some wishlist for 2.0 version somewhere. What about the user voice http://web2py.uservoice.com/forums/42577-general ?
Re: [web2py] I did not know one could do this with css
Massimo to add fonts support we have to think how to resolve the problem to add css to files that not have the .css extension. 2011/9/19 Massimo Di Pierro massimo.dipie...@gmail.com http://use.fontorie.com/ How about an app? -- http://martin.tecnodoc.com.ar
[web2py] Unicode encoding
Hi, I've been searching for older threads but I can't find the solution, so I decided to ask you. I have a problem with the encoding. For example, in the menu.py file, one of my fields is: ((Área Téncica),False,URL('default','vision_casos'),[]), But when I run the aplication, it is showed as: ?rea T?cnica I set # -*- coding: utf-8 -*- on the menu.py header, but still doesn't work. I have the same problem on the response.flash item. It's a little bit enoying... Thanks you
[web2py] login and logout functionality along with session management
Hi, I would like to have my own login and logout functionality also my own table for authentication i am a bit new to this framework, i m looking for code snippet for this implementation
Re: [web2py] what about web2py 2.0?
I was looking at something that would potentially be big, although it would be more of an addon rather than replacement. Integrating qooxdoo to make RIA applications rather than the traditional HTML + AJAX applications. I think we could do something like this, without breaking backwards compatibility (because it would be an option, just like using SQLFORM is optional). It would take a lot of work, but it would be big, and one of the few Python frameworks that could do RIA's out of the box.
Re: [web2py] Re: Are we ready to launch 1.99.1?
You should be using db.auth_table, not just auth_table
Re: [web2py] Re: Are we ready to launch 1.99.1?
Actually, sorry, it should be db.auth_user. Where did you get the auth_table variable from anyways?
[web2py] Re: components and sessions
On Sep 19, 10:57 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you help me with wireshark and see if the ajax requests send or not back he cookie? What browser did you use? With Firebug in Firefox: GET db1login.load web2py-component-location http://127.0.0.1:8000/timesap/test/index web2py-component-elementdb1login X-Requested-WithXMLHttpRequest Referer http://127.0.0.1:8000/timesap/test/index Cookie session_id_welcome=127.0.0.1-918759e7-bf23-49ff-883f- b0528486fefa; session_id_admin=127.0.0.1- f6f7a1a3-148a-42bd-95f0-167c20e547f3; session_id_timesap=127.0.0.1-06cb61c6-ce60-4ad4-8a07-3f88c9a7dc98 GET db2login.load web2py-component-location http://127.0.0.1:8000/timesap/test/index web2py-component-elementdb2login X-Requested-WithXMLHttpRequest Referer http://127.0.0.1:8000/timesap/test/index Cookie session_id_welcome=127.0.0.1-918759e7-bf23-49ff-883f- b0528486fefa; session_id_admin=127.0.0.1- f6f7a1a3-148a-42bd-95f0-167c20e547f3; session_id_timesap=127.0.0.1-06cb61c6-ce60-4ad4-8a07-3f88c9a7dc98 Can you reproduce with multiple browsers? Yes, same happens with IE8. My explanations must be wrong because the two sessions would not get the same id.
[web2py] does markin support centered images?
Hello! I've started to play with Instant Press 2.0 and noticed that image cannot be centered on the page using markmin markup. It works with 'left' 'right', but neither with 'center' nor 'centered'. Do I miss something? Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri Caitanya Mahaprabhu) http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 signature.asc Description: PGP signature
[web2py] Re: question about csv import of unmatched fields
It will choke. Edit the csv with excel and delete the c column. On Sep 20, 1:58 am, weheh richard_gor...@verizon.net wrote: Doesn't exactly answer my question. For example, say in web2py you define table with fields a, b, c. In old db you have fields a, b and d. Will you be able to load blank web2py table with old db data for a and b just by importing the old db csv file into the new db? Or will importer choke? On Sep 19, 7:15 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: They do not have to match exactly, it is sufficient all data present can be parsed by the existing fields types. For example a date can be loaded into a string or an int can be loaded into a string or a double. On Sep 19, 11:55 am, weheh richard_gor...@verizon.net wrote: I haven't had time to try this but, does anyone already know whether csv import will work if only some of the fields match the importing table and others do not? It would be useful to degrade gracefully like this if new tables don't exactly match old tables.
Re: [web2py] Re: Are we ready to launch 1.99.1?
copy and paste from the book. :-) Chapter Custimizing Auth 2011/9/20 Ross Peoples ross.peop...@gmail.com Actually, sorry, it should be db.auth_user. Where did you get the auth_table variable from anyways?
[web2py] Re: Administration interface for ruby on rails, maybe some inspiration for SQLFORM.grid in some areas ...
It took them 4 years to catch up with us. On Sep 20, 7:18 am, David Marko dma...@tiscali.cz wrote: http://activeadmin.info/ there is even the live demo ...
Re: [web2py] Unicode encoding
try string.encode('latin1') 2011/9/20 Samuel Mac mac.o...@gmail.com Hi, I've been searching for older threads but I can't find the solution, so I decided to ask you. I have a problem with the encoding. For example, in the menu.py file, one of my fields is: ((Área Téncica),False,URL('default','vision_casos'),[]), But when I run the aplication, it is showed as: ?rea T?cnica I set # -*- coding: utf-8 -*- on the menu.py header, but still doesn't work. I have the same problem on the response.flash item. It's a little bit enoying... Thanks you
[web2py] Re: Administration interface for ruby on rails, maybe some inspiration for SQLFORM.grid in some areas ...
Also, there's http://sramana.in/web2py-instant-admin/. On Tuesday, September 20, 2011 8:18:35 AM UTC-4, David Marko wrote: http://activeadmin.info/ there is even the live demo ...
Re: [web2py] Re: Are we ready to launch 1.99.1?
The actual code from the book: db.define_table( auth.settings.table_user_name, Field http://web2py.com/book/default/docstring/Field('first_name', length=128, default=''), Field http://web2py.com/book/default/docstring/Field('last_name', length=128, default=''), Field http://web2py.com/book/default/docstring/Field('email', length=128, default='', unique=True), Field http://web2py.com/book/default/docstring/Field('password', 'password', length=512, readable=False, label='Password'), Field http://web2py.com/book/default/docstring/Field('registration_key', length=512, writable=False, readable=False, default=''), Field http://web2py.com/book/default/docstring/Field('reset_password_key', length=512, writable=False, readable=False, default=''), Field http://web2py.com/book/default/docstring/Field('registration_id', length=512, writable=False, readable=False, default='')) custom_auth_table = db[auth.settings.table_user_name] # get the custom_auth_table custom_auth_table.first_name.requires = \ IS_NOT_EMPTY http://web2py.com/book/default/docstring/IS_NOT_EMPTY(error_message=auth.messages.is_empty) custom_auth_table.last_name.requires = \ IS_NOT_EMPTY http://web2py.com/book/default/docstring/IS_NOT_EMPTY(error_message=auth.messages.is_empty) custom_auth_table.password.requires = [IS_STRONG http://web2py.com/book/default/docstring/IS_STRONG(), CRYPT http://web2py.com/book/default/docstring/CRYPT()] custom_auth_table.email.requires = [ IS_EMAIL http://web2py.com/book/default/docstring/IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB http://web2py.com/book/default/docstring/IS_NOT_IN_DB(db, custom_auth_table.email)] auth.settings.table_user = custom_auth_table # tell auth to use custom_auth_table # before # auth.define_tables() You forgot this line which creates and assigns a reference to custom_auth_table: custom_auth_table = db[auth.settings.table_user_name] # get the custom_auth_table
Re: [web2py] what about web2py 2.0?
dal supporting graph databases and fulltext search
[web2py] Re: Question About Higher level protocols for inter-process socket communication
Thanks for all the feedback from everyone. For the json cpp libraries, I find that jsoncpp looks unpolished with outstanding bugs (it is still advertised as Beta) and it is a hassle to install (you have to install some Python modules just to read the documentation). Cajun looked more polished and minimalistic (a positive trait), but it also looks abandoned and doesn't seem to have an entry point as far as documentation goes. I'll look at them a bit longer, but at this point I'm inclined to take a look at the c libraries instead. On Sep 19, 3:19 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: so the power is all yours,. use JSON or AMF There are many C++ Json libs for sure. (http://jsoncpp.sourceforge.net/) For AMF (Binary Protocol , Lesser packet size , Higher Performance)http://code.google.com/p/libamfx/ On 9/20/11, Magnitus eric_vallee2...@yahoo.ca wrote: I wrote the engine myself so it's as flexible as I need it to be ;). Haven't gone on the XML wagon yet, was simply considering it. I did work with JSON for the AJAX component of my web server so that solution is looking pretty good atm. I thought it was mostly a Javascript-Server thing and wasn't aware there were some C/C++ libraries for it though :). On Sep 19, 1:36 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: yes, json/jsonp is much better portocol for gaming coz due to lesser size and its properties. But if he already have XML engine for his game he should go with it (coz all the game engine supports XML , not any with JSON support i know of yet.) On 9/20/11, Ross Peoples ross.peop...@gmail.com wrote: You can try JSON, Python 2.6+ has a C JSON parser in it already which web2py uses for JSON communications. I haven't done any testing with it versus XML, but JSON is such a simple protocol with minimal parsing requirements that I'd imagine it's much faster than parsing XML.
[web2py] Re: Administration interface for ruby on rails, maybe some inspiration for SQLFORM.grid in some areas ...
Its very nice. I just installed this into my project but I cant see any tables on dashboard. Is there a way to specifiy tables handled by this admin tool?
[web2py] Re: Are we ready to launch 1.99.1?
+1 for more comments in the code. Also, sometimes comments/docstrings need to be updated when changes are made. On Tuesday, September 20, 2011 3:55:24 AM UTC-4, David Marko wrote: Many features have been added recently(last 3 months) but documentation is behind these. Can docs can be updated, without this many features will be lost somewhere in code. Also as Python is not staticly typed language and doesnt use variable type declaration its very often dificult to understand it without comments in code or docs. e.g. Here is an example of method signature for SQLFORM.grid. It toook me some time to find out the format for fields parameter. I tried ['id','name','age'], then ['db.person.id','db.person.name', 'db-person.age'], then (db.person.id, db.person.name ...) and the latest worked :-) but its just guesswork. And there are many other parameters in this method. def grid(query, fields=None, field_id=None, left=None, headers={}, columns=None, orderby=None, searchable=True, sortable=True, paginate=20, deletable=True, editable=True, details=True, selectable=None, create=True, csv=True, links=None, upload = 'default', args=[], user_signature = True, maxtextlengths={}, maxtextlength=20, onvalidation=None, oncreate=None, onupdate=None, ondelete=None, sorter_icons=('[^]','[v]'), ui = 'jquery-ui', _class=web2py_grid, formname='web2py_grid', ):
[web2py] Re: Are there any Lotus Notes developers using web2py?
I use Domino web services within web2py. XML-RPC. Works ok.
Re: [web2py] Re: Are we ready to launch 1.99.1?
so is there anyone who is in charge of updating the book? Massimo is already doing too much? On Tue, Sep 20, 2011 at 8:23 AM, Anthony abasta...@gmail.com wrote: +1 for more comments in the code. Also, sometimes comments/docstrings need to be updated when changes are made. On Tuesday, September 20, 2011 3:55:24 AM UTC-4, David Marko wrote: Many features have been added recently(last 3 months) but documentation is behind these. Can docs can be updated, without this many features will be lost somewhere in code. Also as Python is not staticly typed language and doesnt use variable type declaration its very often dificult to understand it without comments in code or docs. e.g. Here is an example of method signature for SQLFORM.grid. It toook me some time to find out the format for fields parameter. I tried ['id','name','age'], then ['db.person.id','db.person.**namehttp://db.person.name', 'db-person.age'], then (db.person.id, db.person.name ...) and the latest worked :-) but its just guesswork. And there are many other parameters in this method. def grid(query, fields=None, field_id=None, left=None, headers={}, columns=None, orderby=None, searchable=True, sortable=True, paginate=20, deletable=True, editable=True, details=True, selectable=None, create=True, csv=True, links=None, upload = 'default', args=[], user_signature = True, maxtextlengths={}, maxtextlength=20, onvalidation=None, oncreate=None, onupdate=None, ondelete=None, sorter_icons=('[^]','[v]'), ui = 'jquery-ui', _class=web2py_grid, formname='web2py_grid', ): -- *-Furqan Rauf* *Do you love your creator? Love your fellow-beings first. -Prophet Muhammad * *http://www.amway.com/furqanrauf*
Re: [web2py] what about web2py 2.0?
+1 fulltext search *Some* graph databases have already some good pythonic API. Do you think that DAL can be adapted to graphs also? Isn't the DAL too relational oriented? mic 2011/9/20 Vasile Ermicioi elff...@gmail.com: dal supporting graph databases and fulltext search
Re: [web2py] Re: Are we ready to launch 1.99.1?
It seems like it's the most stable release that's coming ;-) Richard On Tue, Sep 20, 2011 at 9:23 AM, Anthony abasta...@gmail.com wrote: +1 for more comments in the code. Also, sometimes comments/docstrings need to be updated when changes are made. On Tuesday, September 20, 2011 3:55:24 AM UTC-4, David Marko wrote: Many features have been added recently(last 3 months) but documentation is behind these. Can docs can be updated, without this many features will be lost somewhere in code. Also as Python is not staticly typed language and doesnt use variable type declaration its very often dificult to understand it without comments in code or docs. e.g. Here is an example of method signature for SQLFORM.grid. It toook me some time to find out the format for fields parameter. I tried ['id','name','age'], then ['db.person.id','db.person.**namehttp://db.person.name', 'db-person.age'], then (db.person.id, db.person.name ...) and the latest worked :-) but its just guesswork. And there are many other parameters in this method. def grid(query, fields=None, field_id=None, left=None, headers={}, columns=None, orderby=None, searchable=True, sortable=True, paginate=20, deletable=True, editable=True, details=True, selectable=None, create=True, csv=True, links=None, upload = 'default', args=[], user_signature = True, maxtextlengths={}, maxtextlength=20, onvalidation=None, oncreate=None, onupdate=None, ondelete=None, sorter_icons=('[^]','[v]'), ui = 'jquery-ui', _class=web2py_grid, formname='web2py_grid', ):
[web2py] Re: login and logout functionality along with session management
Have you read http://web2py.com/book/default/chapter/08. What are you trying to do that cannot be accommodated by the existing access control functionality? On Tuesday, September 20, 2011 2:54:34 AM UTC-4, Viren Patel wrote: Hi, I would like to have my own login and logout functionality also my own table for authentication i am a bit new to this framework, i m looking for code snippet for this implementation
[web2py] sidebar : how to customize
I wish to reduce the widths of left right sidebars. In base.css, uncommented modified the following line left_sidebar { width: 10px; float:left; display: none; } Inline documentation in css file says--- - column widths (change this to use left_sidebar and right_sidebar) Secondly, I had put certain matter in div id=left_sidebar {{block left_sidebar}} my html stuff goes here.. {{end}} But it does not rendered. What I maybe doing wrong? ---Vineet
Re: [web2py] Re: Are we ready to launch 1.99.1?
Thank you - now it works. But: maybe there are two versions of THE BOOK? Five minutes ago I have found the following code in the online version (chapter Customizing Auth): # after # auth = Auth(globals(),db) db.define_table( auth.settings.table_user_name, Field('first_name', length=128, default=''), Field('last_name', length=128, default=''), Field('email', length=128, default='', unique=True), Field('password', 'password', length=512, readable=False, label='Password'), Field('registration_key', length=512, writable=False, readable=False, default=''), Field('reset_password_key', length=512, writable=False, readable=False, default=''), Field('registration_id', length=512, writable=False, readable=False, default='')) auth_table.first_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.last_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.password.requires = [IS_STRONG(), CRYPT()] auth_table.email.requires = [ IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB(db, auth_table.email)] auth.settings.table_user = auth_table # before # auth.define_tables() Where did you find your code? Martin
Re: [web2py] Re: Are we ready to launch 1.99.1?
The code I posted is from here: http://web2py.com/book/default/chapter/08#Customizing-Auth
Re: [web2py] Re: Are we ready to launch 1.99.1?
Weird, I see different code when visiting that link. Are you looking at the English version? On Tuesday, September 20, 2011 11:47:11 AM UTC-4, Ross Peoples wrote: The code I posted is from here: http://web2py.com/book/default/chapter/08#Customizing-Auth
Re: [web2py] what about web2py 2.0?
To me the 1.99.1 already improving a lot of things, no?! And I was thinking about the reason why it takes that amount of time to launch this version and my answer was maybe the core team wants to make a new features full major version... Richard On Tue, Sep 20, 2011 at 10:00 AM, Michele Comitini michele.comit...@gmail.com wrote: +1 fulltext search *Some* graph databases have already some good pythonic API. Do you think that DAL can be adapted to graphs also? Isn't the DAL too relational oriented? mic 2011/9/20 Vasile Ermicioi elff...@gmail.com: dal supporting graph databases and fulltext search
Re: [web2py] Re: Are we ready to launch 1.99.1?
My link is http://www.web2py.com/book/default/chapter/08#Customizing-Auth(it is the same!) I have tried twice with two different browsers. 2011/9/20 Anthony abasta...@gmail.com Here's what I see at http://web2py.com/book/default/chapter/08#Customizing-Auth (screenshot attached) -- not the same as what you have pasted below. What URL are you accessing? Anthony On Tuesday, September 20, 2011 11:27:36 AM UTC-4, mweissen wrote: Thank you - now it works. But: maybe there are two versions of THE BOOK? Five minutes ago I have found the following code in the online version (chapter Customizing Auth): # after # auth = Auth(globals(),db) db.define_table( auth.settings.table_user_name, Field('first_name', length=128, default=''), Field('last_name', length=128, default=''), Field('email', length=128, default='', unique=True), Field('password', 'password', length=512, readable=False, label='Password'), Field('registration_key', length=512, writable=False, readable=False, default=''), Field('reset_password_key', length=512, writable=False, readable=False, default=''), Field('registration_id', length=512, writable=False, readable=False, default='')) auth_table.first_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.last_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.password.requires = [IS_STRONG(), CRYPT()] auth_table.email.requires = [ IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB(db, auth_table.email)] auth.settings.table_user = auth_table # before # auth.define_tables() Where did you find your code? Martin
[web2py] Re: what about web2py 2.0?
This is not an option. web3py (TM) will break backward compatibility. Not web2py 2.0 On Sep 20, 5:17 am, Sebastian E. Ovide sebastian.ov...@gmail.com wrote: +1 for breaking compatibility (in a major version) a remove obsolete features,,, On Tue, Sep 20, 2011 at 9:26 AM, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up? -- Sebastian E. Ovide
[web2py] Re: what about web2py 2.0?
I promised somebody geospatial features. That will probably come before full text search but this is a good time to look into it. Should we take an approach sqlite/mysql/postgresql only or outsource it to Sphinx? On Sep 20, 9:00 am, Michele Comitini michele.comit...@gmail.com wrote: +1 fulltext search *Some* graph databases have already some good pythonic API. Do you think that DAL can be adapted to graphs also? Isn't the DAL too relational oriented? mic 2011/9/20 Vasile Ermicioi elff...@gmail.com: dal supporting graph databases and fulltext search
Re: [web2py] Do we have a calendar plugin?
Hello Ivica, Feel free to ask anything... I will be glad to help you to make something really cool and usefull... There is also António that were motivated... http://groups.google.com/group/web2py/browse_thread/thread/82966962ef82a22c?pli=1 Richard CC.: António On Mon, Sep 19, 2011 at 10:45 PM, Ivica Kralj ivicakr...@gmail.com wrote: Hi, Here is the link for web2py app (appointment manager) that is using jquery plugin fullcalendar mentioned by Bruno. http://code.google.com/p/web2py-appointment-manager/ It's quite simple, but I'm sure it's good starting point. Cheers I On 20 September 2011 01:31, Noel Villamor noe...@gmail.com wrote: It would be handy if I can get hold of a calendar whose individual dates/days I can decorate based on an event table. I won't use it as a pop-up or date selector. I just need to display it on a page and be able to pan the month and year. I see quite a few in .js, do we have any in .py or web2py?
[web2py] Re: Are we ready to launch 1.99.1?
Yes. There are different versions depending on the accept_language browser settings. Problem is that non-english one that have not been translated default to engllish. The title should tell you which one you are looking at. On Sep 20, 11:10 am, Martin Weissenboeck mweis...@gmail.com wrote: My link ishttp://www.web2py.com/book/default/chapter/08#Customizing-Auth(it is the same!) I have tried twice with two different browsers. 2011/9/20 Anthony abasta...@gmail.com Here's what I see at http://web2py.com/book/default/chapter/08#Customizing-Auth(screenshot attached) -- not the same as what you have pasted below. What URL are you accessing? Anthony On Tuesday, September 20, 2011 11:27:36 AM UTC-4, mweissen wrote: Thank you - now it works. But: maybe there are two versions of THE BOOK? Five minutes ago I have found the following code in the online version (chapter Customizing Auth): # after # auth = Auth(globals(),db) db.define_table( auth.settings.table_user_name, Field('first_name', length=128, default=''), Field('last_name', length=128, default=''), Field('email', length=128, default='', unique=True), Field('password', 'password', length=512, readable=False, label='Password'), Field('registration_key', length=512, writable=False, readable=False, default=''), Field('reset_password_key', length=512, writable=False, readable=False, default=''), Field('registration_id', length=512, writable=False, readable=False, default='')) auth_table.first_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.last_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.password.requires = [IS_STRONG(), CRYPT()] auth_table.email.requires = [ IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB(db, auth_table.email)] auth.settings.table_user = auth_table # before # auth.define_tables() Where did you find your code? Martin
Re: [web2py] Re: Are we ready to launch 1.99.1?
That is the headline of the first page: The Official (3rd Ed.) web2py Book(de) Does de mean German? But there is no German word inside this book. And I cann't find any way to change the language. 2011/9/20 Anthony abasta...@gmail.com Weird, I see different code when visiting that link. Are you looking at the English version? On Tuesday, September 20, 2011 11:47:11 AM UTC-4, Ross Peoples wrote: The code I posted is from here: http://web2py.com/book/default/chapter/08#Customizing-Auth
[web2py] Re: components and sessions
I do not understand what is causing this. Please open a ticket and link this thread so it does not get lost. I try process tickets before other issues. On Sep 20, 7:04 am, DenesL denes1...@yahoo.ca wrote: On Sep 19, 10:57 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Can you help me with wireshark and see if the ajax requests send or not back he cookie? What browser did you use? With Firebug in Firefox: GET db1login.load web2py-component-location http://127.0.0.1:8000/timesap/test/index web2py-component-element db1login X-Requested-With XMLHttpRequest Refererhttp://127.0.0.1:8000/timesap/test/index Cookie session_id_welcome=127.0.0.1-918759e7-bf23-49ff-883f- b0528486fefa; session_id_admin=127.0.0.1- f6f7a1a3-148a-42bd-95f0-167c20e547f3; session_id_timesap=127.0.0.1-06cb61c6-ce60-4ad4-8a07-3f88c9a7dc98 GET db2login.load web2py-component-location http://127.0.0.1:8000/timesap/test/index web2py-component-element db2login X-Requested-With XMLHttpRequest Refererhttp://127.0.0.1:8000/timesap/test/index Cookie session_id_welcome=127.0.0.1-918759e7-bf23-49ff-883f- b0528486fefa; session_id_admin=127.0.0.1- f6f7a1a3-148a-42bd-95f0-167c20e547f3; session_id_timesap=127.0.0.1-06cb61c6-ce60-4ad4-8a07-3f88c9a7dc98 Can you reproduce with multiple browsers? Yes, same happens with IE8. My explanations must be wrong because the two sessions would not get the same id.
[web2py] Re: I did not know one could do this with css
How about? reponse.files.append(('http://somefile','css')) # works with URL() or reponse.files.append('http://somefile[.css]') # does not work with URL() and then re-move css/[.css] automatically. On Sep 20, 5:43 am, Martín Mulone mulone.mar...@gmail.com wrote: Massimo to add fonts support we have to think how to resolve the problem to add css to files that not have the .css extension. 2011/9/19 Massimo Di Pierro massimo.dipie...@gmail.com http://use.fontorie.com/ How about an app? -- http://martin.tecnodoc.com.ar
[web2py] Re: Are there any Lotus Notes developers using web2py?
tell us more. On Sep 20, 8:43 am, HarryE harald.er...@gmail.com wrote: I use Domino web services within web2py. XML-RPC. Works ok.
Re: [web2py] Re: what about web2py 2.0?
About Sphinx I would propose to introduce fulltext search the way it's faster if it's with Sphinx go head and then use the DB oriented approach after just to offer a simpler fulltext search option maybe... My point is just use first the faster approach. ;-) Richard On Tue, Sep 20, 2011 at 12:27 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I promised somebody geospatial features. That will probably come before full text search but this is a good time to look into it. Should we take an approach sqlite/mysql/postgresql only or outsource it to Sphinx? On Sep 20, 9:00 am, Michele Comitini michele.comit...@gmail.com wrote: +1 fulltext search *Some* graph databases have already some good pythonic API. Do you think that DAL can be adapted to graphs also? Isn't the DAL too relational oriented? mic 2011/9/20 Vasile Ermicioi elff...@gmail.com: dal supporting graph databases and fulltext search
[web2py] Re: Problem uploading files.
What's the production web server? How does it talk to web2py? On Sep 20, 4:24 am, Daniel Gonzalez Zaballos dgzabal...@gmail.com wrote: I only can reproduce it on the production server. The fail comes about 2 seconds aftehr when the upload begins (and with my connection is impossible to upload 1.2 mb in 2 seconds), but the uploading screen doesn't changes, is like the firefox is waiting for a response. 2011/9/20 Massimo Di Pierro massimo.dipie...@gmail.com Is this reproductible? How long does the upload take? On Sep 19, 10:45 am, demetrio dgzabal...@gmail.com wrote: Hi, i'm having the next traceback when I try to upload a file in the production server: Traceback (most recent call last): File /srv/web2py/gluon/main.py, line 442, in wsgibase parse_get_post_vars(request, environ) File /srv/web2py/gluon/main.py, line 276, in parse_get_post_vars request.body = copystream_progress(request) ### stores request body File /srv/web2py/gluon/main.py, line 144, in copystream_progress copystream(source, dest, size, chunk_size) File /srv/web2py/gluon/fileutils.py, line 366, in copystream data = src.read(chunk_size) File /usr/lib/python2.6/socket.py, line 377, in read data = self._sock.recv(left) timeout: timed out The problem comes when I try to upload a 1.2mb zip file. If I upload a text file with less mb, there is no problem. And there is no problem with the web2py own server. Only in the production machine. The machine is running web2py 1.98.1 under Debian GNU/Linux 6.0.2 (squeeze) with python 2.6 Does anybody knows whats happening? Thanks in advance
Re: [web2py] Re: Question About Higher level protocols for inter-process socket communication
yeah may be due to nature of C/C++ is not used for programming web apps json support is quite weak. Python's Native json lib are a lot more mature than C++ versions. Did u also check AMF as alternative? On 9/20/11, Magnitus eric_vallee2...@yahoo.ca wrote: Thanks for all the feedback from everyone. For the json cpp libraries, I find that jsoncpp looks unpolished with outstanding bugs (it is still advertised as Beta) and it is a hassle to install (you have to install some Python modules just to read the documentation). Cajun looked more polished and minimalistic (a positive trait), but it also looks abandoned and doesn't seem to have an entry point as far as documentation goes. I'll look at them a bit longer, but at this point I'm inclined to take a look at the c libraries instead. On Sep 19, 3:19 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: so the power is all yours,. use JSON or AMF There are many C++ Json libs for sure. (http://jsoncpp.sourceforge.net/) For AMF (Binary Protocol , Lesser packet size , Higher Performance)http://code.google.com/p/libamfx/ On 9/20/11, Magnitus eric_vallee2...@yahoo.ca wrote: I wrote the engine myself so it's as flexible as I need it to be ;). Haven't gone on the XML wagon yet, was simply considering it. I did work with JSON for the AJAX component of my web server so that solution is looking pretty good atm. I thought it was mostly a Javascript-Server thing and wasn't aware there were some C/C++ libraries for it though :). On Sep 19, 1:36 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: yes, json/jsonp is much better portocol for gaming coz due to lesser size and its properties. But if he already have XML engine for his game he should go with it (coz all the game engine supports XML , not any with JSON support i know of yet.) On 9/20/11, Ross Peoples ross.peop...@gmail.com wrote: You can try JSON, Python 2.6+ has a C JSON parser in it already which web2py uses for JSON communications. I haven't done any testing with it versus XML, but JSON is such a simple protocol with minimal parsing requirements that I'd imagine it's much faster than parsing XML.
Re: [web2py] Re: Question About Higher level protocols for inter-process socket communication
heres what i found: from json.org C: JSON_checker. JSON parser. M's JSON parser. YAJL. cJSON. Jansson. js0n. LibU. jsmn. cson. json-c. C++: jsoncpp. zoolib. JOST. CAJUN. libjson. nosjob. JSONKit. JsonBox. On 9/20/11, Phyo Arkar phyo.arkarl...@gmail.com wrote: yeah may be due to nature of C/C++ is not used for programming web apps json support is quite weak. Python's Native json lib are a lot more mature than C++ versions. Did u also check AMF as alternative? On 9/20/11, Magnitus eric_vallee2...@yahoo.ca wrote: Thanks for all the feedback from everyone. For the json cpp libraries, I find that jsoncpp looks unpolished with outstanding bugs (it is still advertised as Beta) and it is a hassle to install (you have to install some Python modules just to read the documentation). Cajun looked more polished and minimalistic (a positive trait), but it also looks abandoned and doesn't seem to have an entry point as far as documentation goes. I'll look at them a bit longer, but at this point I'm inclined to take a look at the c libraries instead. On Sep 19, 3:19 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: so the power is all yours,. use JSON or AMF There are many C++ Json libs for sure. (http://jsoncpp.sourceforge.net/) For AMF (Binary Protocol , Lesser packet size , Higher Performance)http://code.google.com/p/libamfx/ On 9/20/11, Magnitus eric_vallee2...@yahoo.ca wrote: I wrote the engine myself so it's as flexible as I need it to be ;). Haven't gone on the XML wagon yet, was simply considering it. I did work with JSON for the AJAX component of my web server so that solution is looking pretty good atm. I thought it was mostly a Javascript-Server thing and wasn't aware there were some C/C++ libraries for it though :). On Sep 19, 1:36 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: yes, json/jsonp is much better portocol for gaming coz due to lesser size and its properties. But if he already have XML engine for his game he should go with it (coz all the game engine supports XML , not any with JSON support i know of yet.) On 9/20/11, Ross Peoples ross.peop...@gmail.com wrote: You can try JSON, Python 2.6+ has a C JSON parser in it already which web2py uses for JSON communications. I haven't done any testing with it versus XML, but JSON is such a simple protocol with minimal parsing requirements that I'd imagine it's much faster than parsing XML.
[web2py] Superticket: online ticket system
Hello, ICTEC has released a web application for the sale of tickets for events. The development was funded by an American company and we has freed a variation of the beta site into production. If someone wants to start a business with it, go ahead! http://paol.pe/superticket As always, please refer to minimalistic wiki as there is no documentation, but will shortly publish the application of desktop (developed in Tk) for the secure printing dedicated ticket printers for the job. Some warnings: - Spanish only development, maybe someone wants to translate - Old web2py API (2009) Regards, Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net http://alfonsodg.net Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4
Re: [web2py] Re: Question About Higher level protocols for inter-process socket communication
Also check JsonBox , its used in RedBox 2D game engine. On 9/20/11, Phyo Arkar phyo.arkarl...@gmail.com wrote: heres what i found: from json.org C: JSON_checker. JSON parser. M's JSON parser. YAJL. cJSON. Jansson. js0n. LibU. jsmn. cson. json-c. C++: jsoncpp. zoolib. JOST. CAJUN. libjson. nosjob. JSONKit. JsonBox. On 9/20/11, Phyo Arkar phyo.arkarl...@gmail.com wrote: yeah may be due to nature of C/C++ is not used for programming web apps json support is quite weak. Python's Native json lib are a lot more mature than C++ versions. Did u also check AMF as alternative? On 9/20/11, Magnitus eric_vallee2...@yahoo.ca wrote: Thanks for all the feedback from everyone. For the json cpp libraries, I find that jsoncpp looks unpolished with outstanding bugs (it is still advertised as Beta) and it is a hassle to install (you have to install some Python modules just to read the documentation). Cajun looked more polished and minimalistic (a positive trait), but it also looks abandoned and doesn't seem to have an entry point as far as documentation goes. I'll look at them a bit longer, but at this point I'm inclined to take a look at the c libraries instead. On Sep 19, 3:19 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: so the power is all yours,. use JSON or AMF There are many C++ Json libs for sure. (http://jsoncpp.sourceforge.net/) For AMF (Binary Protocol , Lesser packet size , Higher Performance)http://code.google.com/p/libamfx/ On 9/20/11, Magnitus eric_vallee2...@yahoo.ca wrote: I wrote the engine myself so it's as flexible as I need it to be ;). Haven't gone on the XML wagon yet, was simply considering it. I did work with JSON for the AJAX component of my web server so that solution is looking pretty good atm. I thought it was mostly a Javascript-Server thing and wasn't aware there were some C/C++ libraries for it though :). On Sep 19, 1:36 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: yes, json/jsonp is much better portocol for gaming coz due to lesser size and its properties. But if he already have XML engine for his game he should go with it (coz all the game engine supports XML , not any with JSON support i know of yet.) On 9/20/11, Ross Peoples ross.peop...@gmail.com wrote: You can try JSON, Python 2.6+ has a C JSON parser in it already which web2py uses for JSON communications. I haven't done any testing with it versus XML, but JSON is such a simple protocol with minimal parsing requirements that I'd imagine it's much faster than parsing XML.
Re: [web2py] Re: Are we ready to launch 1.99.1?
That is the answer. Now I switched to en and I can see the actual version of this example. 2011/9/20 Massimo Di Pierro massimo.dipie...@gmail.com Yes. There are different versions depending on the accept_language browser settings. Problem is that non-english one that have not been translated default to engllish. The title should tell you which one you are looking at. On Sep 20, 11:10 am, Martin Weissenboeck mweis...@gmail.com wrote: My link ishttp:// www.web2py.com/book/default/chapter/08#Customizing-Auth(it is the same!) I have tried twice with two different browsers. 2011/9/20 Anthony abasta...@gmail.com Here's what I see at http://web2py.com/book/default/chapter/08#Customizing-Auth(screenshot attached) -- not the same as what you have pasted below. What URL are you accessing? Anthony On Tuesday, September 20, 2011 11:27:36 AM UTC-4, mweissen wrote: Thank you - now it works. But: maybe there are two versions of THE BOOK? Five minutes ago I have found the following code in the online version (chapter Customizing Auth): # after # auth = Auth(globals(),db) db.define_table( auth.settings.table_user_name, Field('first_name', length=128, default=''), Field('last_name', length=128, default=''), Field('email', length=128, default='', unique=True), Field('password', 'password', length=512, readable=False, label='Password'), Field('registration_key', length=512, writable=False, readable=False, default=''), Field('reset_password_key', length=512, writable=False, readable=False, default=''), Field('registration_id', length=512, writable=False, readable=False, default='')) auth_table.first_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.last_name.requires = \ IS_NOT_EMPTY(error_message=auth.messages.is_empty) auth_table.password.requires = [IS_STRONG(), CRYPT()] auth_table.email.requires = [ IS_EMAIL(error_message=auth.messages.invalid_email), IS_NOT_IN_DB(db, auth_table.email)] auth.settings.table_user = auth_table # before # auth.define_tables() Where did you find your code? Martin
[web2py] Re: login and logout functionality along with session management
Pretty much no one rolls their own user registration since Web2py supplies a pretty good and flexible version.
Re: [web2py] what about web2py 2.0?
Sphinx u mean sphinxsearch ? I am using it with web2py and everything works fine . On 9/20/11, pbreit pbreitenb...@gmail.com wrote: +1 for breaking compatibility -1000
Re: [web2py] what about web2py 2.0?
+1 for breaking compatibility -1000
Re: [web2py] what about web2py 2.0?
Hello Phyo, What have to be done to package it with an app? Richard On Tue, Sep 20, 2011 at 1:33 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote: Sphinx u mean sphinxsearch ? I am using it with web2py and everything works fine . On 9/20/11, pbreit pbreitenb...@gmail.com wrote: +1 for breaking compatibility -1000
Re: [web2py] what about web2py 2.0?
I do not like the idea of break of compatibility. Why needs to break it to include new features? http://zerp.ly/rochacbruno Em 20/09/2011 14:44, Richard Vézina ml.richard.vez...@gmail.com escreveu: Hello Phyo, What have to be done to package it with an app? Richard On Tue, Sep 20, 2011 at 1:33 PM, Phyo Arkar phyo.arkarl...@gmail.com wrote: Sphinx u mean sphinxsearch ? I am using it with web2py and everything works fine . On 9/20/11, pbreit pbreitenb...@gmail.com wrote: +1 for breaking compatibility -1000
[web2py] Re: what about web2py 2.0?
On Tuesday, September 20, 2011 12:27:20 PM UTC-4, Massimo Di Pierro wrote: I promised somebody geospatial features. That will probably come before full text search but this is a good time to look into it. Should we take an approach sqlite/mysql/postgresql only or outsource it to Sphinx? Maybe a search abstraction layer that could plug in adapters for various backends, such as SQLite, Postgres, Whoosh, Xapian, Sphinx, etc. Something like http://haystacksearch.org or http://code.google.com/p/django-fts. Anthony
Re: [web2py] Re: Are we ready to launch 1.99.1?
On Tuesday, September 20, 2011 12:28:48 PM UTC-4, mweissen wrote: That is the headline of the first page: The Official (3rd Ed.) web2py Book(de) Does de mean German? But there is no German word inside this book. And I cann't find any way to change the language. A number of people have been reporting odd problems with the online book and language settings. I and others were randomly be shown the book with French text (even though the title said web2py Book(en)). Now you have the German version of the book, but with English text. What's going on? Anthony
Re: [web2py] what about web2py 2.0?
I do not manage to package it as an app. sphinx need to be installed seprately , as its client-server architecture , not easy to packaged inside as one. what my project do it with : - Generate configuration for new tables and database - Generate Indexes - Start Stop searchd - Run queries and show results.( sphinxapi.py can do only that other need to be coded) - advanced search UI (like google advanced search + date-range search) On 9/21/11, Richard Vézina ml.richard.vez...@gmail.com wrote: Hello Phyo, What have to be done to package it with an app? Richard On Tue, Sep 20, 2011 at 1:33 PM, Phyo Arkar phyo.arkarl...@gmail.comwrote: Sphinx u mean sphinxsearch ? I am using it with web2py and everything works fine . On 9/20/11, pbreit pbreitenb...@gmail.com wrote: +1 for breaking compatibility -1000
[web2py] Re: components and sessions
On Sep 20, 12:30 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I do not understand what is causing this. To have the same session?. Isn't that the way sessions are supposed to work?. My hunch is still that components need their own session, associated to the main one somehow. Please open a ticket and link this thread so it does not get lost. I try process tickets before other issues. http://code.google.com/p/web2py/issues/detail?id=437
[web2py] Re: Are we ready to launch 1.99.1?
At some point we made the book multi-language. That means that the book detects the language from accept_language and uses that. 8 languages were created (en, es, de, fr, pt, jp, cz, it) and pre populated with english (official 3rd ed, except for it pre populated with italian) to easy translation. People did not check their browser settings and the language (stated at the top of the book) and have edited the different languages. This is a recent problem (less than 1mo). I have now frozen all translations and they will stay frozen until I process the 4th edition. I will diff everything to make sure no edit gets lost. Massimo On Sep 20, 1:10 pm, Anthony abasta...@gmail.com wrote: On Tuesday, September 20, 2011 12:28:48 PM UTC-4, mweissen wrote: That is the headline of the first page: The Official (3rd Ed.) web2py Book(de) Does de mean German? But there is no German word inside this book. And I cann't find any way to change the language. A number of people have been reporting odd problems with the online book and language settings. I and others were randomly be shown the book with French text (even though the title said web2py Book(en)). Now you have the German version of the book, but with English text. What's going on? Anthony
Re: [web2py] Re: Are we ready to launch 1.99.1?
Some weeks ago, I reported here some typo related with validators. Someone tell me that the typo has been corrected, but when I check again the book, the typo still there. PS: And I see Book (es) but fully english lang HTH Bye, and sorry for my bad english
[web2py] Re: Are there any Lotus Notes developers using web2py?
We use Domino 7. In order not to have a full Domino server exposed on the Internet, I try to create a web2py frontend on DMZ to extract the necessary info from Domino and present it to the public. as in def getmetinfo(): ad=request.args(0) key= if ad : key=ad[0:4] else : key='LROP' from gluon.contrib.pysimplesoap.client import SoapClient client= SoapClient(location='http://xxx.ro/yyy.nsf/MET? openwebservice',action='http://xxx.ro/yyy.nsf/MET? openwebservice',soap_ns='soap',trace=False,exceptions=True) resp=client.GetLatestMetInfo(ad=key) r= str(resp.GetLatestMetInfoReturn) r=r.replace('\r','#x0d;').replace('\n','#x0a;') #q=tuple(dict(s) for s in r[1:-1].split(',')) q= eval(r, dict(__builtins__=None)) return dict(met=q,p=key) SOAPProxy does seem to have some bugs when talking to Domino, so I used the above tweak. Still beta code. On Domino, WSDL generated through regular web service creation (agent- like). HTH On 20 sep., 18:36, Massimo Di Pierro massimo.dipie...@gmail.com wrote: tell us more. On Sep 20, 8:43 am, HarryE harald.er...@gmail.com wrote: I use Domino web services within web2py. XML-RPC. Works ok.
[web2py] Populate a JQueryTable using Ajax
I have a table sorter plugin that I use inside my view and I have an external database that I use (inside my controller I import a python module that connects to my database and returns an object). My controller returns data to my view and inside my table in the view I populate this data. How can I make this table update via Ajax so that whenever I change something in the database, the changes would automatically show inside my table without refreshing? How do I do this in web2py? Is there some jquery function that I use for that that runs ajax behind it? Thank you!
[web2py] Re: what about web2py 2.0?
Something like that does sound interesting although I suspect easier said than done. I inquired about something similar when I was looking at Postgres text search. It sounds like it is currently not that easy for an end user to extend DAL to create a new type of query. That would be cool. And I wonder what's going to be the best way to support all these new NoSQL DBs. DAL's query syntax should be able to support a lot of the core queries but it seems that to really take advantage, some new approaches might be necessary. Fun times!
Re: [web2py] Populate a JQueryTable using Ajax
websockets http://vimeo.com/18399381 or ajax long polling, or ape http://www.ape-project.org/ On Tue, Sep 20, 2011 at 4:07 PM, rami beatrisr...@gmail.com wrote: I have a table sorter plugin that I use inside my view and I have an external database that I use (inside my controller I import a python module that connects to my database and returns an object). My controller returns data to my view and inside my table in the view I populate this data. How can I make this table update via Ajax so that whenever I change something in the database, the changes would automatically show inside my table without refreshing? How do I do this in web2py? Is there some jquery function that I use for that that runs ajax behind it? Thank you! -- -- Bruno Rocha [ About me: http://zerp.ly/rochacbruno ] [ Aprenda a programar: http://CursoDePython.com.br ] [ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ] [ Consultoria em desenvolvimento web: http://www.blouweb.com ]
Re: [web2py] Are we ready to launch 1.99.1?
On Tue, Sep 20, 2011 at 12:00 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please download the nightly built and try it with your apps. If they work, say go and I we will launch tomorrow. I ran in to this: Traceback (most recent call last): File /home/rochacbruno/projects/199test/gluon/restricted.py, line 194, in restricted exec ccode in environment File /home/rochacbruno/projects/199test/applications/rifaapp/controllers/default.py http://127.0.0.1:8001/admin/default/edit/rifaapp/controllers/default.py, line 755, in module File /home/rochacbruno/projects/199test/gluon/globals.py, line 148, in lambda self._caller = lambda f: f() File /home/rochacbruno/projects/199test/applications/rifaapp/controllers/default.py http://127.0.0.1:8001/admin/default/edit/rifaapp/controllers/default.py, line 618, in user return dict(form=auth()) File /home/rochacbruno/projects/199test/gluon/tools.py, line 1125, in __call__ return getattr(self,args[0])() File /home/rochacbruno/projects/199test/gluon/tools.py, line 1868, in register next = replace_id(next, form) File /home/rochacbruno/projects/199test/gluon/tools.py, line 74, in replace_id if url and not url[0] == '/' and url[:4] != 'http': NameError: global name 'url' is not defined
Re: [web2py] Are we ready to launch 1.99.1?
Teh same in another app File /home/rochacbruno/projects/199test/applications/cursodepython/controllers/default.py http://127.0.0.1:8001/admin/default/edit/cursodepython/controllers/default.py, line 272, in user return dict(form=auth()) File /home/rochacbruno/projects/199test/gluon/tools.py, line 1125, in __call__ return getattr(self,args[0])() File /home/rochacbruno/projects/199test/gluon/tools.py, line 1724, in login next = replace_id(next, form) File /home/rochacbruno/projects/199test/gluon/tools.py, line 74, in replace_id if url and not url[0] == '/' and url[:4] != 'http': NameError: global name 'url' is not defined
Re: [web2py] Are we ready to launch 1.99.1?
Hi Bruno, Please see: https://groups.google.com/d/topic/web2py-developers/yqn3IjNdmDA/discussion Carlos
[web2py] login with gmail and google login failed
Hi, here are my next tries (yes, now from the English version of THE BOOK): (1) In db.py I have added: from gluon.contrib.login_methods.email_auth import email_auth auth.settings.login_methods=[email_auth(smtp.gmail.com:587, @gmail.com), ] The Login-Form and the Register-Form look like usual, but after sending I got: Traceback (most recent call last): File /etc/web2py/gluon/restricted.py, line 194, in restricted exec ccode in environment File /etc/web2py/applications/alt_login/controllers/default.py, line 71, in module File /etc/web2py/gluon/globals.py, line 148, in lambda self._caller = lambda f: f() File /etc/web2py/applications/alt_login/controllers/default.py, line 33, in user return dict(form=auth()) File /etc/web2py/gluon/tools.py, line 1119, in __call__ return getattr(self,args[0])() File /etc/web2py/gluon/tools.py, line 1826, in register group_id = self.add_group(user_%s % form.vars.id, description) File /etc/web2py/gluon/tools.py, line 2494, in add_group group_id = self.settings.table_group.insert( AttributeError: 'NoneType' object has no attribute 'insert' --- (2) And another try with Google Login: from gluon.contrib.login_methods.gae_google_account import GaeGoogleAccount auth.settings.login_form = GaeGoogleAccount() THE BOOK says gae_google_login , but there is only a gae_google_account file. The is a new ticket: Traceback (most recent call last): File /etc/web2py/gluon/restricted.py, line 194, in restricted exec ccode in environment File /etc/web2py/applications/alt_login/models/db.py, line 108, in module from gluon.contrib.login_methods.gae_google_account import GaeGoogleAccount File /etc/web2py/gluon/custom_import.py, line 294, in __call__ fromlist, level) File /etc/web2py/gluon/custom_import.py, line 78, in __call__ level) File /etc/web2py/gluon/contrib/login_methods/gae_google_account.py, line 12, in module from google.appengine.api import users File /etc/web2py/gluon/custom_import.py, line 294, in __call__ fromlist, level) File /etc/web2py/gluon/custom_import.py, line 78, in __call__ level) ImportError: No module named google.appengine.api Any ideas? Regards, Martin
Re: [web2py] Re: Are we ready to launch 1.99.1?
On Tuesday, September 20, 2011 2:29:08 PM UTC-4, juanduke wrote: Some weeks ago, I reported here some typo related with validators. Someone tell me that the typo has been corrected, but when I check again the book, the typo still there. Yes, the typos have been fixed in the markmin but are not showing up because of the problems Massimo mentioned. Hopefully this will all be resolved soon. Anthony
[web2py] Re: Are we ready to launch 1.99.1?
This is a commit error. Will fix in a few hours when I will have access to my dev machine again. Sorry. On Sep 20, 2:56 pm, Bruno Rocha rochacbr...@gmail.com wrote: On Tue, Sep 20, 2011 at 12:00 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Please download the nightly built and try it with your apps. If they work, say go and I we will launch tomorrow. I ran in to this: Traceback (most recent call last): File /home/rochacbruno/projects/199test/gluon/restricted.py, line 194, in restricted exec ccode in environment File /home/rochacbruno/projects/199test/applications/rifaapp/controllers/defaul t.py http://127.0.0.1:8001/admin/default/edit/rifaapp/controllers/default.py, line 755, in module File /home/rochacbruno/projects/199test/gluon/globals.py, line 148, in lambda self._caller = lambda f: f() File /home/rochacbruno/projects/199test/applications/rifaapp/controllers/defaul t.py http://127.0.0.1:8001/admin/default/edit/rifaapp/controllers/default.py, line 618, in user return dict(form=auth()) File /home/rochacbruno/projects/199test/gluon/tools.py, line 1125, in __call__ return getattr(self,args[0])() File /home/rochacbruno/projects/199test/gluon/tools.py, line 1868, in register next = replace_id(next, form) File /home/rochacbruno/projects/199test/gluon/tools.py, line 74, in replace_id if url and not url[0] == '/' and url[:4] != 'http': NameError: global name 'url' is not defined
[web2py] online book
I took some time to merge book edits with the 3rd edition. Now the book online should show all the recent edits. I want to congratulate with those who have contributed edits since I noticed a lot of improvements. All edits have been accepted. I need to add a few paragraphs here and there to document new features and I promise to do it within a few weeks. That is going to be a priority for me. Immediately after that I will make the book editable again. Massimo P.S. People seem to be confused about which book language they are looking at. How can we make that more clear?
Re: [web2py] online book
Putting a *BIG* flag would help? ;-) mic 2011/9/20 Massimo Di Pierro massimo.dipie...@gmail.com: I took some time to merge book edits with the 3rd edition. Now the book online should show all the recent edits. I want to congratulate with those who have contributed edits since I noticed a lot of improvements. All edits have been accepted. I need to add a few paragraphs here and there to document new features and I promise to do it within a few weeks. That is going to be a priority for me. Immediately after that I will make the book editable again. Massimo P.S. People seem to be confused about which book language they are looking at. How can we make that more clear?
[web2py] Re: I did not know one could do this with css
I always liked this one (though really not as cool): http://fictivekin.com/ Double click the dots. You can even put them back. The modifiable text/style/font is ti**ies though! -Kasapo On Sep 19, 8:13 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://use.fontorie.com/ How about an app?
[web2py] Re: Are there any Lotus Notes developers using web2py?
web2py ... does not reach yet the Lotus Notes power of views, ACLs, formulas,calendar,etc Not sure about that. It takes about as long to put a simple view together in Web2py as in Notes. It would take a bit longer to do a view with child records the first time around, but after that I don't see a problem. The Web2py security methods put Notes ACL to shame. True, it's not baked in like Notes ACL but once you get the hang of it, setting up authorizations for your app is pretty easy. I'll agree on calendaring with one disclaimer: the Notes calendar worked very well in the Notes client. Through a browser, not so much. But my familiarity stopped with Notes v6, so maybe it's better on the web now. I'll also agree that LotusScript is blecherous. The debugger, on the other hand, was very nice. On Sep 20, 5:00 am, António Ramos ramstei...@gmail.com wrote: YES i´m a lotus notes Developer, i have moved a lot of code to python and a few simple apps to web2py. I think xpages is way more dificult to jquery ui mobile with web2py.So i decided to not learn xpages and go with web2py+jqueryui mobile. Also i like a lot web2py although it does not reach yet the Lotus Notes power of views, ACLs, formulas,calendar,etc In the other side, i hate lotusscript. If Lotus Notes moved from lotusscript to python Please see my workflow engine in Lotus Notes. I´d like to move it to web2py but i´m still a rookie in web2py so i will need more time. http://www.youtube.com/watch?v=zMNwqAtiFOw Best regards António 2011/9/20 David Marko dma...@tiscali.cz Are there any Lotus Notes developers using web2py? I'v been doing Lotus Notes development for more than 15 years and I also did two projects with web2py recently. I really like web2py it makes me very productive, comparing to Java Server Faces based xPages in Lotus Notes, which are really, really slow to develop (to be honest I like java more, but web2py is definitely more productive in many areas). In Lotus Notes we have many smaller or bigger applications installed at our customers solving general problems like CRM, document workflow, invoice approval process, projects, task management etc. I appreciate the web2py concept of one server running many applications, SSO using CAS, its very similar to Lotus Notes approach, which is great. And now the point ... I'm thinking about creating some code infrastracture similar to LN, some general workflow engine and so and I thought about to join forces with others maybe LN developers that have similar requirements as we have. Is there anyone interested in such thing? We discuss here or privately ...
[web2py] Re: Are we ready to launch 1.99.1?
Yes, sometimes when I do google searches it seems to find the code i search for in the french version (since the code is still english... like searching for response.vars or something), but there is a variable ?_language=fr in the URL. After accessing a page (creating a session?) with the 'fr' param for language, I find that visiting web2py.com/book renders the whole book in french, until I manually type _language=en back into the address bar. That switches it back to english. On Sep 20, 1:10 pm, Anthony abasta...@gmail.com wrote: On Tuesday, September 20, 2011 12:28:48 PM UTC-4, mweissen wrote: That is the headline of the first page: The Official (3rd Ed.) web2py Book(de) Does de mean German? But there is no German word inside this book. And I cann't find any way to change the language. A number of people have been reporting odd problems with the online book and language settings. I and others were randomly be shown the book with French text (even though the title said web2py Book(en)). Now you have the German version of the book, but with English text. What's going on? Anthony
Re: [web2py] Re: I did not know one could do this with css
Some fonts: http://www.google.com/webfonts http://code.google.com/apis/webfonts/ 2011/9/20 kasapo kas...@gmail.com: I always liked this one (though really not as cool): http://fictivekin.com/ Double click the dots. You can even put them back. The modifiable text/style/font is ti**ies though! -Kasapo On Sep 19, 8:13 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: http://use.fontorie.com/ How about an app?
[web2py] web2py/DAL support for increasing number?
I need to have a number that generally increases with every request made to the service. The only requirement is that it is strictly monotonous - I don't need a specific start, and I don't care if there are any holes. Possible solutions: - just use request.utcnow -- seems to satisfy, but I've seen clocks go back on machines (if time is off by more than one minute, ntpd just resets it rather an try to modify clock speed), so I don't want to rely on that one. - Insert a record into a dummy table, and use the last-row-id of the dummy record. Occasionally, (e.g. in a batch job) delete every record except the last. (Or maybe including the last? do all dbs supported maintain a sequence counter independent of the current maximum value of a column?) Is there a simpler solution I am overlooking? The use case for this is for mutually synchronizing database; I add a updtime field to every record in every table, and then when I want to efficiently tell what records have been inserted or updated in a table, I just look for those with updtime larger than the update time of the previous sync. Time would generally work for this, except -- as mentioned above -- it is hard to guarantee that system time never goes backwards.
Re: [web2py] Re: Are there any Lotus Notes developers using web2py?
* The Web2py security methods put Notes ACL to shame?* Can you explain why you think this way? how do i solve this problem in web2py? In a small organization (+- 100 users) it can be dificult to manage ACLs without being able to add group to group membership. consider my company we have this groups in the maintenance department MMC (20 users) ME ( 15 users) MI ( 10 users) MD (maintenance department) (all users above) so this group is composed of MMC,ME, MI and we dont repeat adding all users to MD, we just add group MMC,ME,MI When we delete a person from ME, MD group automaticaly reflects the change. In Lotus notes is very easy. *in web2py its impossible!* Also in web2py you have to decorate every function to allow certain users or groups. In Lotus Notes if i say in my app acl that user A cannot access it i dont even care that inside the app everything is free for everyone. User A is blocked ! I dont have to repeat myself. 2011/9/20 Cliff cjk...@gmail.com web2py ... does not reach yet the Lotus Notes power of views, ACLs, formulas,calendar,etc Not sure about that. It takes about as long to put a simple view together in Web2py as in Notes. It would take a bit longer to do a view with child records the first time around, but after that I don't see a problem. The Web2py security methods put Notes ACL to shame. True, it's not baked in like Notes ACL but once you get the hang of it, setting up authorizations for your app is pretty easy. I'll agree on calendaring with one disclaimer: the Notes calendar worked very well in the Notes client. Through a browser, not so much. But my familiarity stopped with Notes v6, so maybe it's better on the web now. I'll also agree that LotusScript is blecherous. The debugger, on the other hand, was very nice. On Sep 20, 5:00 am, António Ramos ramstei...@gmail.com wrote: YES i´m a lotus notes Developer, i have moved a lot of code to python and a few simple apps to web2py. I think xpages is way more dificult to jquery ui mobile with web2py.So i decided to not learn xpages and go with web2py+jqueryui mobile. Also i like a lot web2py although it does not reach yet the Lotus Notes power of views, ACLs, formulas,calendar,etc In the other side, i hate lotusscript. If Lotus Notes moved from lotusscript to python Please see my workflow engine in Lotus Notes. I´d like to move it to web2py but i´m still a rookie in web2py so i will need more time. http://www.youtube.com/watch?v=zMNwqAtiFOw Best regards António 2011/9/20 David Marko dma...@tiscali.cz Are there any Lotus Notes developers using web2py? I'v been doing Lotus Notes development for more than 15 years and I also did two projects with web2py recently. I really like web2py it makes me very productive, comparing to Java Server Faces based xPages in Lotus Notes, which are really, really slow to develop (to be honest I like java more, but web2py is definitely more productive in many areas). In Lotus Notes we have many smaller or bigger applications installed at our customers solving general problems like CRM, document workflow, invoice approval process, projects, task management etc. I appreciate the web2py concept of one server running many applications, SSO using CAS, its very similar to Lotus Notes approach, which is great. And now the point ... I'm thinking about creating some code infrastracture similar to LN, some general workflow engine and so and I thought about to join forces with others maybe LN developers that have similar requirements as we have. Is there anyone interested in such thing? We discuss here or privately ...
[web2py] Re: online book
List of new features NOT yet documented in the book. I think: - LICENSE CHANGE FROM GPLv2 to LGPLv3 - new URL syntax - new T behavior - new app level logging with logging.conf (thanks Jonathan) - Polymmodel support on GAE - current - added pyfpdf, thank Mariano - db(db.table), db(db.table.id) both suported and equivalent to db(db.table.id0) - IS_DECIMAL_IN_RANGE and IS_FLOAT_IN_RANGE support dot=, (dot=. is default) - on_failed_authorization can be a function, thanks Niphold - new layout for examples, thanks Bruno and Martin - admin allow ``DEMO_MODE=True`` and ``FILTER_APPS=['welcome']`` - upgraded to anytime - new admin wizard - better mercual admin allows list of files, versions and retrieve - SQLFORM.accepts(detect_record_change).record_changed - SQLFORM.process() - new admin layout (thanks Branko Vukelic) - new Welcome app (thanks Martin Mulone) - web2py.py -J for running cron (thanks Jonathan Lundell) - web2py.py -K for running backgournd tasks - new DAL (complete rewrite of the web2py DAL is more modular) - better CAS with v2 support, thanks Olivier ROCH VILATO - session.connect(separate=True) to handle many session files, thanks huaiyu wang - changed bahvior of impersonate (more secure, can generate form or used as API) - SQLTABLE(...,headers='labels') thanks Bruno - optional: digitally signed URLs, thanks Brian Meredyk - web2py comet via gluon/contrib/comet_messaging.py (html5 websockets) experimental - customizable uploadwidget, thanks Fran - admin has MULTI_USER_MODE (admin/models/0.py) - support for count(distinct=...) - IS_MATCH(...,strict=True) - URL(...,scheme=,host=,port=), thanks Jonathan - auth.signature (experimental) - combined expressions print db.data.body.len().sum() - wizard can download plugins - moderniz 1.17 - experimental REST API - added experimental pip support, thanks Lifeeth - added experimental SAP DB support - Google MySQL support (experimental) - DAL(...,migrate_enabled=True) - login_methods/loginza.py, thanks Vladimir - bpython shell support, thanks Arun - response.toolbar() - db._timings contains database query timing info - efficient db(...).isempty() - setup-web2py-nginx-uwsgi-ubuntu.sh - from gluon import * - conditional models in models/controller/a.py and models/ controller/function/a.py - from mymodule import * - generic views - all applications have cas 2.0 provider at http://.../user/cas/login - all applications can delegate to login to external provider Auth(...,cas_provider='http://.../other_app/default/user/cas'\ ) - A(...,callback=URL(...),larget='id') does Ajax - URL(...,user_signature=True), LOAD(...,user_signature=True) - DAL(...,migrate_enabled=False) to disable all migrations - DAL(...,fake_migrate_all=True) to rebuild all corrupted metadata - DAL(...,adapter_arg={}) allows support for alternate drivers - DAL now allows circular table defintions - DAL(..,auto_import=True) automatically imports tables from metadata without need to db.define_table(...)s. - new alterante syntax for inner joins: db(...).select(join=...) - experimental cubrid database support - DAL 'request_tenant' fields are special, the altomatically filer all records based on their default value. - db._common_fields.append(Field('owner')) allows to add fields to ALL tables - web2py_ajax.html is more modular, thanks Anthony - request.is_local - request.is_http - new simpler API gluon.contrib.AuthorizeNet.procss(...) - messages in validators have default internationalization - No more Auth(globals(),db), just Auth(db). Same for Crud and Service. - scripts/access.wsgi allows apache+mod_wsgi to delegate authentication of any URL to any web2py app - web2py HTTP responses now set: X-Powered-By: web2py, thanks Bruno - auth.settings.extra_fields['auth_user'].append(Field('country')) - validate_and_update, thanks Bruno - new cpdb.py, thanks Mart - field.represent = lambda value,record: (record is optional) - request.user_agent(), thanks Ross - SQLFORM(...,separator=': ') now customizable - experimental gluon/scheduler.py - scripts/make_min_web2py.py - crud.search has more options, thanks Denes - gluon/contrib/simplejsonrpc.py - gluon/contrib/redis_cache.py - support for A(name,callback=url,target='id',delete='tr') - support for A(name,component=url,target='id',delete='tr') - isapiwsgihandler.py - dal expression.coalesce(*options) - new pip installer, thanks Chris Steel - gluon/contrib/simplejsonrpc.py, thanks Mariano - expire_sessions.py respects expiration time, thanks iceberg - x509 support (needs rocket upgrade, thanks Michele) - new syntax rows[i]('tablename.fieldname') - new query syntax field.contains(list,all=True or False) - new SQLFORM.grid and SQLFORM.smartgrid (should replace crud.search and crud.select) - support for natural language queries (english only) in SQLFORM.grid - support for computed columns and additional links in SQLFORM.grid - new style virtual fields (experimental): db.table.field=Field.Lazy(...) - request.utcnow - cleaner/simpler welcome/models/db.py and welcome
[web2py] Using cxfreeze for creating web2py exe with custom libraries
Hello all, I have been looking at using cxfreeze to create a web2py standalone exe with custom libraries added in. Attached is the script used - Can be used if you want to repackage web2py's windows exe adding in custom libraries. One of the major advantages of using cxfreeze for creating the standalone exe is the avoidance of the need for copying MSVCR90.dll to create the exe [ needed by py2exe - http://www.py2exe.org/index.cgi/Tutorial#Step52 ]. This allows for easy building of the standalone exe with python 2.7. Massimo: The quit function in gluon/widget.py needs the sys.exit replaced by sys.exit(0) for the proper exit when using cxfreeze to create a standalone exe. i.e line 325 of gluon/widget.py needs to be replaced with sys.exit(0) . I would be grateful if you could make the change. Best Regards, Praneeth #!/usr/bin/env python # -*- coding: utf-8 -*- Usage: Install cx_Freeze: http://cx-freeze.sourceforge.net/ Copy script to the web2py directory c:\Python27\python standalone_exe_cxfreeze.py build_exe from cx_Freeze import setup, Executable from gluon.import_all import base_modules, contributed_modules from gluon.fileutils import readlines_file from glob import glob import fnmatch import os import shutil import sys import re #read web2py version from VERSION file web2py_version_line = readlines_file('VERSION')[0] #use regular expression to get just the version number v_re = re.compile('[0-9]+\.[0-9]+\.[0-9]+') web2py_version = v_re.search(web2py_version_line).group(0) base = None if sys.platform == 'win32': base = Win32GUI base_modules.remove('macpath') buildOptions = dict( compressed = True, excludes = [macpath,PyQt4], includes = base_modules, include_files=[ 'applications', 'ABOUT', 'LICENSE', 'VERSION', 'logging.example.conf', 'options_std.py', 'app.example.yaml', 'queue.example.yaml', ], # append any extra module by extending the list below - # contributed_modules+[lxml] packages = contributed_modules, ) setup( name = Web2py, version=web2py_version, author=Massimo DiPierro, description=web2py web framework, license = LGPL v3, options = dict(build_exe = buildOptions), executables = [Executable(web2py.py, base=base, compress = True, icon = web2py.ico, targetName=web2py.exe, copyDependentFiles = True)], )
[web2py] Re: what about web2py 2.0?
Web2Py 2.0 must be *fully* documented in online book. On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?
[web2py] Re: online book
That is one *very impressive* list of new stuff and new documentation. Thanks everyone who contributed.
[web2py] Re: what about web2py 2.0?
we'll work on it. On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote: Web2Py 2.0 must be *fully* documented in online book. On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?
[web2py] password storage with per-user salt
I have just started using web2py but already, I'm quite impressed. In the past couple days I've already rolled out an entire site rewrite and I'm working on my second project. The project I'm working on right now is currently in PHP. I was in the process of converting it to a Java / Spring MVC project when I discovered web2py and decided that'd be a much easier, simpler and quicker way to roll the app. So, let me get to my point.. The current application utilizes the php sha1() function with a per-user salt stored in the database. The salt is randomly generated each time the password is changed. This is similar to the default configuration on most linux boxes. I need to make some changes to the Auth class to support the per- record password salt instead of application-wide salt. Does it make sense for me to provide my edits as part of the project, in case someone else thinks the functionality is useful? I plan on basically checking to see if there is a 'salt' field in the user auth table, and if so, append that to the plain text password before passing it to the appropriate hashlib function. Thoughts?
[web2py] Re: password storage with per-user salt
This will be useful put presents a technical difficulty because of the way CRYPT works. CRYPT is the validator that check is a password is valid, and it does not know what is stored in db therefore it does not know the salt. Anyway, let me know if you have a suggestion. Massimo On Sep 20, 9:25 pm, Dave dave.st...@gmail.com wrote: I have just started using web2py but already, I'm quite impressed. In the past couple days I've already rolled out an entire site rewrite and I'm working on my second project. The project I'm working on right now is currently in PHP. I was in the process of converting it to a Java / Spring MVC project when I discovered web2py and decided that'd be a much easier, simpler and quicker way to roll the app. So, let me get to my point.. The current application utilizes the php sha1() function with a per-user salt stored in the database. The salt is randomly generated each time the password is changed. This is similar to the default configuration on most linux boxes. I need to make some changes to the Auth class to support the per- record password salt instead of application-wide salt. Does it make sense for me to provide my edits as part of the project, in case someone else thinks the functionality is useful? I plan on basically checking to see if there is a 'salt' field in the user auth table, and if so, append that to the plain text password before passing it to the appropriate hashlib function. Thoughts?
Re: [web2py] online book
2011/9/20 Massimo Di Pierro massimo.dipie...@gmail.com I took some time to merge book edits with the 3rd edition. Now the book online should show all the recent edits. I want to congratulate with those who have contributed edits since I noticed a lot of improvements. All edits have been accepted. I need to add a few paragraphs here and there to document new features and I promise to do it within a few weeks. That is going to be a priority for me. Immediately after that I will make the book editable again. Massimo P.S. People seem to be confused about which book language they are looking at. How can we make that more clear? One sentence after the first headline on the first page like You are looking at the [language] version. Maybe that parts or the whole text is not translated. If you want to help Sorry, English is not my native language. Martin
Re: [web2py] Re: Are we ready to launch 1.99.1?
In gloun/tools there is the definition of class Recaptcha. It contains a class variable self.comment = '' but there is no way to change by a parameter. Is it intended or is it a bug? Martin
[web2py] Re: what about web2py 2.0?
Yeah, we use haystack in Django here at my work for our search tool of choice. On Sep 20, 1:58 pm, Anthony abasta...@gmail.com wrote: On Tuesday, September 20, 2011 12:27:20 PM UTC-4, Massimo Di Pierro wrote: I promised somebody geospatial features. That will probably come before full text search but this is a good time to look into it. Should we take an approach sqlite/mysql/postgresql only or outsource it to Sphinx? Maybe a search abstraction layer that could plug in adapters for various backends, such as SQLite, Postgres, Whoosh, Xapian, Sphinx, etc. Something likehttp://haystacksearch.orgorhttp://code.google.com/p/django-fts. Anthony
[web2py] Re: what about web2py 2.0?
-1 for breaking compatibility. I can see the need here and there, but I have some apps running on web2py, and thinking that I'll have to make sure they work aain, just because we got to a rounded number - is unthinkable. When web2py moves to python 3 - it'll make sense to reexamine all features. But for now - leave it backword compatible. OH, and +1 for the docs. But that has nothing to do with the version, but has more with creating a policy about new features (like, no commit without a document of a feature, including example). Some policy should be applied to doctests too. On Sep 21, 6:16 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: we'll work on it. On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote: Web2Py 2.0 must be *fully* documented in online book. On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?
[web2py] Re: Using cxfreeze for creating web2py exe with custom libraries
done. good job. On Sep 20, 6:44 pm, Praneeth Bodduluri life...@gmail.com wrote: Hello all, I have been looking at using cxfreeze to create a web2py standalone exe with custom libraries added in. Attached is the script used - Can be used if you want to repackage web2py's windows exe adding in custom libraries. One of the major advantages of using cxfreeze for creating the standalone exe is the avoidance of the need for copying MSVCR90.dll to create the exe [ needed by py2exe -http://www.py2exe.org/index.cgi/Tutorial#Step52]. This allows for easy building of the standalone exe with python 2.7. Massimo: The quit function in gluon/widget.py needs the sys.exit replaced by sys.exit(0) for the proper exit when using cxfreeze to create a standalone exe. i.e line 325 of gluon/widget.py needs to be replaced with sys.exit(0) . I would be grateful if you could make the change. Best Regards, Praneeth standalone_exe_cxfreeze.py 2KViewDownload
[web2py] Re: what about web2py 2.0?
WE WILL NOT BREAK BACKWARD COMPATiBILITY. In fact there will be less changes between 1.99 and 2.0 then between 1.98 and 1.99. Massimo On Sep 20, 11:23 pm, guruyaya guruy...@gmail.com wrote: -1 for breaking compatibility. I can see the need here and there, but I have some apps running on web2py, and thinking that I'll have to make sure they work aain, just because we got to a rounded number - is unthinkable. When web2py moves to python 3 - it'll make sense to reexamine all features. But for now - leave it backword compatible. OH, and +1 for the docs. But that has nothing to do with the version, but has more with creating a policy about new features (like, no commit without a document of a feature, including example). Some policy should be applied to doctests too. On Sep 21, 6:16 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: we'll work on it. On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote: Web2Py 2.0 must be *fully* documented in online book. On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?
[web2py] Re: what about web2py 2.0?
I like the idea that we are not breaking backward compatibility here . Backward Compatibility not supported with web3py will be fine. Rahul On Sep 21, 10:19 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: WE WILL NOT BREAK BACKWARD COMPATiBILITY. In fact there will be less changes between 1.99 and 2.0 then between 1.98 and 1.99. Massimo On Sep 20, 11:23 pm, guruyaya guruy...@gmail.com wrote: -1 for breaking compatibility. I can see the need here and there, but I have some apps running on web2py, and thinking that I'll have to make sure they work aain, just because we got to a rounded number - is unthinkable. When web2py moves to python 3 - it'll make sense to reexamine all features. But for now - leave it backword compatible. OH, and +1 for the docs. But that has nothing to do with the version, but has more with creating a policy about new features (like, no commit without a document of a feature, including example). Some policy should be applied to doctests too. On Sep 21, 6:16 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: we'll work on it. On Sep 20, 6:49 pm, niknok nikolai...@gmail.com wrote: Web2Py 2.0 must be *fully* documented in online book. On Sep 20, 4:26 pm, Mengu whalb...@gmail.com wrote: anything special coming up? will it broke backward compatibility? nobody needs backward compatibility in a major version. are there any plans for a clean up?