[web2py] self.settings.remember_me_form = False

2011-07-20 Thread pbreit
http://web2py.com/book/default/chapter/08?search=remember+me

[web2py] Re: self.settings.remember_me_form = False

2011-07-20 Thread annet
Thanks for your reply. I apologize for not searching in the book myself, at the moment I have to juggle with bandwidth to get things done :-( Kind regards, Annet.

Re: [web2py] Re: storeing a db set in a storage for a map plugin

2011-07-20 Thread Manuele Pesenti
On 20/07/2011 00:34, Anthony wrote: Objects defined in your models and controllers do not survive from request to request (unless, of course, you store them somewhere, like the session). In your code, the Set object is created when you visit /default/index, but the select happens when you visit

[web2py] Re: mapreduce.appspot.com

2011-07-20 Thread Plumo
You can add new types to the DAL that use GAE entities. Here is what I used to create an unindexed string type: from google.appengine.ext import db as gae db._adapter.types['noindex'] = (lambda: gae.StringProperty(multiline=True, indexed=False))

[web2py] Re: Web2py Powertables plugin : in-line editing problem.

2011-07-20 Thread Will
On Jul 20, 7:21 am, Bruno Rocha rochacbr...@gmail.com wrote: try: def editablefunction():    id = request.vars.row_id    column = request.vars.column    db(db.order_lines.id==id).update(column=value)   * db.commit()* Didn't work. More info: There is a very quick 'Saving' appearing in the

[web2py] export data to OOO and Excel

2011-07-20 Thread Vineet
I was looking for a library to export data to OpenOffice Excel. I found 2 such open source projects. For OOO --- http://ooolib.sourceforge.net/ For Excel --- http://www.python-excel.org/ What I intend to do is, keep the classes in web2py folder, import the classes in controller, then parse the

Re: [web2py] Re: bug in crud with load and ajax=false

2011-07-20 Thread Sebastian E. Ovide
Hi Anthony, I have not tested the trunk yet, but I have change those two lines other_request.vars = Storage(vars) other_request.get_vars = Storage(vars) I still get an error: invalid view (default/crud_in_comp.load)(in index.html)

Re: [web2py] Re: storeing a db set in a storage for a map plugin

2011-07-20 Thread Manuele Pesenti
On 20/07/2011 08:44, Manuele Pesenti wrote: ok, in this case I need to pass a db set that cannot be stored in session (right?)... what's the right way to do that? would it be the case to use tha global declaretion such as is explained here for example?

Re: [web2py] Re: 'truncate' broken in SQLTABLE with 'headers'.

2011-07-20 Thread Martín Mulone
Can you open a ticket and give an example of SQLTABLE that fail?. 2011/7/19 Anthony abasta...@gmail.com On Tuesday, July 19, 2011 7:48:35 PM UTC-4, Carlos wrote: So 'truncate' is not being respected when using the previous 'headers' format (simple dict of strings). Oh, I see, you're right

[web2py] Re: web2py on github

2011-07-20 Thread blackthorne
be aware that google code hosting now supports git.. On Jul 20, 4:44 am, luckysmack luckysm...@gmail.com wrote: Well i was going to for the original. But it being so out of date, i thought i would just take the mercurial branch and use a tool to convert the code and its branches with history

Re: [web2py] export data to OOO and Excel

2011-07-20 Thread Joaquin Orbe
On Wed, Jul 20, 2011 at 5:45 AM, Vineet vineet.deod...@gmail.com wrote: I was looking for a library to export data to OpenOffice Excel. I found 2 such open source projects. For OOO --- http://ooolib.sourceforge.net/ For Excel --- http://www.python-excel.org/ What I intend to do is, keep

Re: [web2py] record representation using a non-id column?

2011-07-20 Thread Johann Spies
On 9 July 2011 03:47, niknok nikolai...@gmail.com wrote: ** I have another unique column in my table that I would like to use as index for record representation. How do I tell web2py to use another index? Ttrying to use like: db.mytable.thisfield.represent = lambda id:

Re: [web2py] record representation using a non-id column?

2011-07-20 Thread Johann Spies
On 20 July 2011 14:09, Johann Spies johann.sp...@gmail.com wrote: I use this: db.define_table('akb_doccenter_location', Field('location')) Apologies, I did not complete the message before sending: the model includes a Field(uuid), obviously. Regards Johann -- May

[web2py] Re: adding plugin_wiki to existing application - prettydate

2011-07-20 Thread Vincent
after some digging around I found the prettydate function in gluon.tools. If I from gluon.tools import prettydate directly in the page.html view I no longer get an error. If I do the same thing but only in the controller it still does not work. Any ideas what characteristics of my app may cause

Re: [web2py] Re: bug in crud with load and ajax=false

2011-07-20 Thread Anthony
Do you have a /views/default/crud_in_comp.load view? If not, for now you'll need one, as generic views aren't working in non-ajax components at the moment (this should be fixed soon). Anthony On Wednesday, July 20, 2011 5:38:18 AM UTC-4, sebastian wrote: Hi Anthony, I have not tested the

Re: [web2py] Re: bug in crud with load and ajax=false

2011-07-20 Thread Sebastian E. Ovide
adding a default default/crud_in_comp.load made the trick. On Wed, Jul 20, 2011 at 2:12 PM, Anthony abasta...@gmail.com wrote: Do you have a /views/default/crud_in_comp.load view? If not, for now you'll need one, as generic views aren't working in non-ajax components at the moment (this

Re: [web2py] Re: storeing a db set in a storage for a map plugin

2011-07-20 Thread Anthony
No, the Set object has to be defined during the same request as the select, so you should either define it in a model file (as in the plugin_gmap example), or in the /plugin_openplayers/index function (where the select happens). Alternatively, you could define a function that does the work of

[web2py] Re: Two problems with LOAD; one may be a bug(?)

2011-07-20 Thread Iceberg
On Jul 13, 8:49 am, Anthony abasta...@gmail.com wrote: Second problem: In trying to find out if setting ajax to True was causing my first problem, I stumbled over a second.  Setting 'ajax=False' or not setting ajax at all causes an exception.  Could this be a bug?  If so, please let

[web2py] Re: adding plugin_wiki to existing application - prettydate

2011-07-20 Thread Anthony
On Wednesday, July 20, 2011 8:11:56 AM UTC-4, Vincent wrote: after some digging around I found the prettydate function in gluon.tools. If I from gluon.tools import prettydate directly in the page.html view I no longer get an error. If I do the same thing but only in the controller it

[web2py] Re: Two problems with LOAD; one may be a bug(?)

2011-07-20 Thread Anthony
On Wednesday, July 20, 2011 10:05:11 AM UTC-4, Iceberg wrote: Hi Anthony, I encounter same problem. STFW and I read your two posts. One is above, the other is here: http://groups.google.com/group/web2py/msg/25bd655665bf47bf I am curious to see a bug exists for 2 weeks. That is

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
Thank you for the prompt responses. On Jul 19, 4:12 pm, Roberto Perdomo roberto...@gmail.com wrote: Hello, it's me again. Well, I discovered that the problem of loading the table with load is in the event live plugin_powertable.py. I've replaced the event live for bind, and, works, but just

[web2py] web2py (context process , midelware)

2011-07-20 Thread ariel.glez.m
what thing replace in web2py the context process and midelware of django.

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
I'm still having a problem getting two powertables on one page. If I comment out the code for the second powertable, everything is fine, but it seems the first powertable can't find its data. Please refer to code posted above. I think this has something to do with instantiation, specifically, I

[web2py] HTLM Helper URL. How to pass html tags as arguments

2011-07-20 Thread António Ramos
hello i have a simple view with some html and no db defined in the background *EXAMPLE VIEW* select option value=volvoVolvo/option option value=saabSaab/option option value=mercedesMercedes/option option value=audiAudi/option /select {{=LI(A('something', _href=URL('show', args=??))}} if i

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Roberto Perdomo
i think that you code is wrong, try with: return dict( ownedByUser = ownTable.create(), sharedWithUser = sharedWithUser.create() ) you were doubling ownTable on the dict. 2011/7/20 Chris Baron topher.ba...@gmail.com I'm still having a problem getting two powertables on one page. If I

[web2py] Re: HTLM Helper URL. How to pass html tags as arguments

2011-07-20 Thread Anthony
On Wednesday, July 20, 2011 11:17:51 AM UTC-4, Ramos wrote: i have a simple view with some html and no db defined in the background *EXAMPLE VIEW* select option value=volvoVolvo/option option value=saabSaab/option option value=mercedesMercedes/option option value=audiAudi/option

[web2py] Re: [web2py:33655] Re: import/install matplotlib or other modules from other python on system?

2011-07-20 Thread Hadi
mdipierro mdipierro@... writes: On Oct 25, 11:30 am, Vincent vinc...@... wrote: Not sure how I missed that. I am getting this error, os.chdir('/Users/vmd/Dropbox/web2py/web2py.app') from gluon.main import * install the web2py source version if you are going this Hi Guys,

[web2py] Re: [web2py:33655] Re: import/install matplotlib or other modules from other python on system?

2011-07-20 Thread Anthony
If you're running one of the web2py binary versions, web2py runs its own Python interpreter, so it won't have access to the Python installed on your system (or any of its modules). If you want to use the Python on your system, just run the source version of web2py -- it's just as easy as the

[web2py] typo book chapter 8

2011-07-20 Thread Herman
@auth.requires_login() def hello(): return dict(message='hello %(first_name)' % auth.user) is missing an s after %(first_name) : @auth.requires_login() def hello(): return dict(message='hello %(first_name)s' % auth.user)

Re: [web2py] Re: CRON or Background script?

2011-07-20 Thread ron_m
Run 2 copies of web2py, one for the script and the other for the web site. If the database is SQLite you will end up with blocking problems if the background task takes too long.

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
I have already corrected that - sorry for the confusion... On Jul 20, 10:23 am, Roberto Perdomo roberto...@gmail.com wrote: i think that you code is wrong, try with: return dict( ownedByUser = ownTable.create(), sharedWithUser = sharedWithUser.create() ) you were doubling ownTable on the

[web2py] Re: web2py (context process , midelware)

2011-07-20 Thread Anthony
On Wednesday, July 20, 2011 10:56:18 AM UTC-4, ariel.glez.m wrote: what thing replace in web2py the context process I'm not too familiar with Django and its context processors -- it looks like they automatically add particular variables/objects to your template context before rendering.

[web2py] Re: gluon/contrib/simplejson/encoder.py changes

2011-07-20 Thread Massimo Di Pierro
Yes. It was a problem to maintain a patched fork of simplejson and it used to cause conflicts. Now we have json in gluon/serializers.py which hanldes date/datetimes. On Jul 19, 11:33 am, Carl m...@carlroach.com wrote: sometime between Web2py v1.89.1 and v1.93.2 encoder.py was changed so it

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Bruno Rocha
Sorry, Powertable is 'alpha' and I have too much work to do to improve it. I am trying to solve things.. BTW: I am comming with a new grid system, a complete one, based on CRUD http://labs.blouweb.com/PowerGrid/default/noimages (in tests)

[web2py] Re: CAS Auth with other technologies

2011-07-20 Thread Massimo Di Pierro
The CAS server supports but 1 and 2 but defaults to 2 which is more portable. It should work with third party clients out of the box. On Jul 19, 8:09 pm, Bruno Bemfica brunobemf...@gmail.com wrote: Hi, I'm new on Web2Py and Python, and I have a question: There's any way to make apps developed

[web2py] Re: view for email message

2011-07-20 Thread Massimo Di Pierro
I think you are looking for the wrong solution to the problem. You should just use from gluon.template import render mail.sent(to=...,message=render(content=...,context={..})) On Jul 18, 4:47 am, Manuele Pesenti manuele.pese...@gmail.com wrote: hi *, I woulld like to reuse a controller

Re: [web2py] Re: gluon/contrib/simplejson/encoder.py changes

2011-07-20 Thread Carl Roach
excellent. I'm using @service.jsonrpc as a decorator to controller functions and setting service=Service(globals()) in db.py what needs to change to move to the new approach? p.s. the 3rd edition hardcopy arrived last week... my, how it's grown! excellent production! On 20 July 2011 18:20,

[web2py] apologies

2011-07-20 Thread Massimo Di Pierro
Hello everybody, I apologize I have been not active on the list for a few days does to a series of circumstances: travel, power outage, jetlag. Anyway, looks like Anthony, Jonathan and a few others manage to answer almost all the questions which proves I am not needed and that is good. ;-)

Re: [web2py] apologies

2011-07-20 Thread Bruno Rocha
form.validate() and form.process() patch that I sent. ( need to be tested, validates etc..) On Wed, Jul 20, 2011 at 2:39 PM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Hello everybody, I apologize I have been not active on the list for a few days does to a series of circumstances:

Re: [web2py] apologies

2011-07-20 Thread José Luis Redrejo Rodríguez
There are a couple of bugs I reported a couple of weeks ago: http://code.google.com/p/web2py/issues/detail?id=324 http://code.google.com/p/web2py/issues/detail?id=319 Both contain suggested patches to fix them, and #324 is specially important for many people. 2011/7/20 Massimo Di Pierro

[web2py] Re: adding plugin_wiki to existing application - prettydate

2011-07-20 Thread Vincent
Hi Anthony, thanks for clarifying that. I guess my question is then: why does it work in the default application without having to do from gluon.tools import prettydate in the page.html view? Or more explicitly, what could cause the prettydate function to be in the namespace in the page.html

[web2py] Google Apps / Google Account Authentication

2011-07-20 Thread Nikhil Rishi
Hi I am a beginner in web2py, after going through the manual.. the very first thing I am trying to do is using Google Apps/ Google Accounts as Authentication instead of regular user-names and passes. Please help. Please provide exact steps what i need to do. Thanks Nikhil

[web2py] Re: apologies

2011-07-20 Thread Massimo Di Pierro
Please send me an example of code that breaks issue 319. On Jul 20, 12:45 pm, José Luis Redrejo Rodríguez jredr...@debian.org wrote: There are a couple of bugs I reported a couple of weeks

[web2py] Re: adding plugin_wiki to existing application - prettydate

2011-07-20 Thread Anthony
I'm not sure about that -- maybe Massimo can answer. On Wednesday, July 20, 2011 2:18:23 PM UTC-4, Vincent wrote: Hi Anthony, thanks for clarifying that. I guess my question is then: why does it work in the default application without having to do from gluon.tools import prettydate in

[web2py] Re: apologies

2011-07-20 Thread demetrio
Hi Massimo, i sent a mail a few days ago asking about some way to provide simultaneous multi-language support to our application. If you (or somebody) could give some suggestion would be nice. http://groups.google.com/group/web2py/browse_thread/thread/d6525c6623aad50c thanks in advance On 20

Re: [web2py] Re: apologies

2011-07-20 Thread Vasile Ermicioi
just an old wish of mine: - make web2py to work with latest pyamf version, - and there is a bug in latest version which is not fixed in trunk thank you

[web2py] Re: typo book chapter 8

2011-07-20 Thread cjrh
On Jul 20, 12:32 pm, Herman herman...@gmail.com wrote: is missing an s after %(first_name)  : Fixed, well-spotted thank you.

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Roberto Perdomo
Hi, thanks for your work with powertables. Today i resolved the problem, editing plugin_powertable.py. I have replace live for bind, but not only load the details for the first 10 records. The solution was load the table with all records (iDisplayLength = -1), but recentlly discovered that live

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Roberto Perdomo
Bruno, if you can send me PowerGrid for test it, i'd appreciate it, looks great. 2011/7/20 Roberto Perdomo roberto...@gmail.com Hi, thanks for your work with powertables. Today i resolved the problem, editing plugin_powertable.py. I have replace live for bind, but not only load the details

[web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Christopher Steel
On the one hand If you only want to display two languages at the same time at all times then translations are not required. If on the other hand you want people to be able to switch between languages like this http://voiceofaccess.org , then translations are required but displaying both

Re: [web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Daniel Gonzalez Zaballos
The thing is that in Spain, there are some bilingual regions with their own language besides the official language. Sometimes they require that an app be in the main language (spanish) and their specifical language and the capatility to switch between them, and rarely (this case), have both

[web2py] Adding date() and time() to Field object

2011-07-20 Thread Angelo Compagnucci
Hello list members, sometimes is useful to exctract the date or the time from a Filed object without traversing the rows returned by a select statement. I provide an examlpe: db.define_table('test',Field('data','datetime')) def getdates(): rows = db(db.test).select(db.test.data.date())

Re: [web2py] apologies

2011-07-20 Thread Michele Comitini
Gee... Massimo aren't you on vacation? Stop bothering us! ;-) ;-) mic 2011/7/20 Massimo Di Pierro massimo.dipie...@gmail.com: Hello everybody, I apologize I have been not active on the list for a few days does to a series of circumstances: travel, power outage, jetlag. Anyway, looks like

[web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Anthony
I think there are a few possibilities. First, your MultiT function could work, but you'd have to use str(T(text)) instead of T(text). The reason is that T() returns a lazyT object, not the translated string (it isn't translated until rendering). You can force the translation by calling the

Re: [web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Bruno Rocha
PLUGIN PowerGrid ONLY FOR TESTERS!! It is an Pre Alpha Version. No Documentation yet (use it by example) It would be full of JavaScript Bugs and need documentation, if you can help with documentation please let me know your bitbucket user. DEMO: http://labs.blouweb.com/PowerGrid/default/index

[web2py] What about a few web2py server vm builds

2011-07-20 Thread Mike Veltman
First I dont know if someone already did it. I have been playing with suse studio for a while and I thought to build a vm/install iso for a base and test web2py server. So I do some brainstorming It will be based on a minimal server (opensuse 11.4) install. I was thinking/brainstorming to do

[web2py] Re: web2py on github

2011-07-20 Thread luckysmack
oh yea? well thats handy. am i able to fork/clone a mercurial repo as a git repo? On Jul 20, 4:33 am, blackthorne francisco@gmail.com wrote: be aware that google code hosting now supports git.. On Jul 20, 4:44 am, luckysmack luckysm...@gmail.com wrote: Well i was going to for the

[web2py] No CallBack (Onaccept) When using facebook or Twitter Connect for loging.

2011-07-20 Thread Yannick
Hello Mate, When using Facebook Connect for login purpose there is no Callback(onaccept) method that Web2py can call and execute right after the user login to the application. The Callback is only available for Web2Py Auth. I was wondering why that Web2py limitation ? From the application level

[web2py] Re: record representation using a non-id column?

2011-07-20 Thread niknok
Thanks Johann! On Jul 20, 8:11 pm, Johann Spies johann.sp...@gmail.com wrote: On 20 July 2011 14:09, Johann Spies johann.sp...@gmail.com wrote: I use this: db.define_table('akb_doccenter_location',                 Field('location')) Apologies, I did not complete the message before

[web2py] Re: Google Apps / Google Account Authentication

2011-07-20 Thread Anthony
Have you looked at http://code.google.com/p/web2py/source/browse/gluon/contrib/login_methods/gae_google_account.py? See http://web2py.com/book/default/chapter/08?search=GAE+login. Anthony On Wednesday, July 20, 2011 2:12:33 PM UTC-4, Nikhil Rishi wrote: Hi I am a beginner in web2py,

[web2py] Re: export data to OOO and Excel

2011-07-20 Thread Vineet
Hi Joaco, Thanks for your reply. The information given by you is very helpful. Thanks again. --Vineet On Jul 20, 4:56 pm, Joaquin Orbe joaquino...@gmail.com wrote: On Wed, Jul 20, 2011 at 5:45 AM, Vineet vineet.deod...@gmail.com wrote: I was looking for a library to export data to OpenOffice

Re: [web2py] Re: web2py on github

2011-07-20 Thread Jonathan Lundell
On Jul 20, 2011, at 7:05 PM, luckysmack wrote: oh yea? well thats handy. am i able to fork/clone a mercurial repo as a git repo? Why git, btw? Seems like sticking with hg would be more straightforward. On Jul 20, 4:33 am, blackthorne francisco@gmail.com wrote: be aware that google

[web2py] http://www.web2py.com/book/default/chapter/11

2011-07-20 Thread noelrv
URL for ref.83 is broken - http://sial.org/howto/openssl/self-signed

[web2py] typo: http://www.web2py.com/book/default/chapter/11

2011-07-20 Thread noelrv
typo in apt-get below: sudo apt-egt -y install libapache2-mod-proxy-html

[web2py] Just started web development

2011-07-20 Thread Furqan
Hey guys, Just wanted to say hi to all of you, I recently started using web2py, actually i was going to start it on Django but I read lots of good things about web2py so I am planning on using it. I have done some python programming but I am new to web development with python. Thanks Furqan

[web2py] AttributeError: 'thread._local' with wsgiref.simple_server or similar

2011-07-20 Thread Christopher F
Hi, I'm trying to call web2py.gluon.main.wsgibase depending on whether a url path matches. The code is like this: [...] os.chdir(web2py_dir) import web2py.gluon.main os.chdir(current_dir) [...] if [...]: httpd =

[web2py] Re: adding plugin_wiki to existing application - prettydate

2011-07-20 Thread Massimo Di Pierro
In file views/plugin_wiki/comment.html: there is {{from gluon.tools import prettydate}} On Jul 20, 1:39 pm, Anthony abasta...@gmail.com wrote: I'm not sure about that -- maybe Massimo can answer. On Wednesday, July 20, 2011 2:18:23 PM UTC-4, Vincent wrote: Hi Anthony, thanks for

[web2py] Re: Adding date() and time() to Field object

2011-07-20 Thread Massimo Di Pierro
I agree it would be useful. It will be tricky to implement. Moreover row = db().select(db.table.field.date()).first() would not go into row.field but into row[db.table.field.date()] it would be much easier to just provide a function row.field.asdate() or row.field.astime() On Jul 20, 5:03 

[web2py] Re: apologies

2011-07-20 Thread Massimo Di Pierro
LOL On Jul 20, 5:22 pm, Michele Comitini michele.comit...@gmail.com wrote: Gee... Massimo aren't you on vacation? Stop bothering us! ;-) ;-) mic 2011/7/20 Massimo Di Pierro massimo.dipie...@gmail.com: Hello everybody, I apologize I have been not active on the list for a few days

Re: [web2py] What about a few web2py server vm builds

2011-07-20 Thread pbreit
I'm not a fan of images and instead try to steer towards a scripting approach. There are a bunch of scripts in the Web2py distro and I and others have also created some scripts: https://bitbucket.org/pbreit/web2py-automation http://code.google.com/p/web2py/source/browse/#hg%2Fscripts

[web2py] Re: apologies

2011-07-20 Thread Massimo Di Pierro
I think 1 is fixed in trunk. Did you try? What is the bug not fixed in trunk? On Jul 20, 1:48 pm, Vasile Ermicioi elff...@gmail.com wrote: just an old wish of mine: - make web2py to work with latest pyamf version, - and there is a bug in latest version which is not fixed in trunk thank you

[web2py] Re: Simultaneous multi-language system.

2011-07-20 Thread Massimo Di Pierro
I think for now Anthony's proposal is the way to go. Open a ticket in google code and we can think of other options. On Jul 20, 5:53 pm, Anthony abasta...@gmail.com wrote: I think there are a few possibilities. First, your MultiT function could work, but you'd have to use str(T(text)) instead

[web2py] Re: What about a few web2py server vm builds

2011-07-20 Thread Massimo Di Pierro
There was discussion http://www.turnkeylinux.org/forum/general/20110107/tklpatch-web2py-framework On Jul 20, 8:04 pm, Mike Veltman mike.velt...@gmail.com wrote: First I dont know if someone already did it. I have been playing with suse studio for a while and I thought to build a vm/install

[web2py] Re: apologies

2011-07-20 Thread annet
I posted this problem a view days ago: http://groups.google.com/group/web2py/browse_thread/thread/4f37d6ab1d2d752a It's not an issue, but it's still bothering me ;-) Kind regards, Annet.