[web2py] Re: PGP Mail

2010-05-16 Thread szimszon
Seems to work. On máj. 17, 00:42, mdipierro wrote: > I moved the settings in mail.settings. I forgot to do it before > committing 1.78.1 so I will repost 1.78.2 soon. > szimszon can you please check it? > > On May 15, 11:46 am, Thadeus Burgess wrote: > > > > > I think mail.settings. If you have

[web2py] Re: web2py 1.78.2

2010-05-16 Thread szimszon
info.html: --- cut - {{extend 'layout.html'}} {{=title}} {{if auth.user_id==1: =A("(m)",_href=szerkeszt) pass}} {{=XML(szoveg)}} {{if auth.user_id==1: =A("(m)",_href=szerkeszt) pass}} - cut -

[web2py] expire_sessions.py and cron

2010-05-16 Thread annet
To clean up sessions I ran the following command: me:~ i$ cd /Library/Python/2.5/site-packages/web2py me:web2py i$ cp applications/admin/cron/crontab applications/init/cron me:web2py i$ The crontab file in the init app now reads like: 10 * * * * root **applications/

[web2py] Re: web2py 1.78.2

2010-05-16 Thread szimszon
What is the status of the simplejson problem? Any progress? On máj. 17, 07:49, mdipierro wrote: > I just did it. I think. > > On May 17, 12:36 am, Jonathan Lundell wrote: > > > > > On May 16, 2010, at 9:35 PM, mdipierro wrote: > > > > We found some problems in 1.78.1 and errors in views will not

[web2py] [SOLVED] jqgrid onSelectRow trigger web2py_component

2010-05-16 Thread Jason Lotz
Thanks mdipierro!! I actually saw that in the header of the generated page but didn't put it together. For what ever reason, trying to call web2py_component from another function wouldn't work, but calling web2py_ajax_page directly worked! Working code: jQuery("#grid_id").jqGrid({ onSelectRo

Re: [web2py] Re: web2py 1.78.2

2010-05-16 Thread Jonathan Lundell
On May 16, 2010, at 10:49 PM, mdipierro wrote: > I just did it. I think. Yes, I see it now. > > On May 17, 12:36 am, Jonathan Lundell wrote: >> On May 16, 2010, at 9:35 PM, mdipierro wrote: >> >>> We found some problems in 1.78.1 and errors in views will not display >>> correctly in tickets t

[web2py] Re: web2py 1.78.2

2010-05-16 Thread mdipierro
I just did it. I think. On May 17, 12:36 am, Jonathan Lundell wrote: > On May 16, 2010, at 9:35 PM, mdipierro wrote: > > > We found some problems in 1.78.1 and errors in views will not display > > correctly in tickets thus causing problems. We have a temporary fix in > > 1.78.2 but it will still

Re: [web2py] web2py 1.78.2

2010-05-16 Thread Jonathan Lundell
On May 16, 2010, at 9:35 PM, mdipierro wrote: > We found some problems in 1.78.1 and errors in views will not display > correctly in tickets thus causing problems. We have a temporary fix in > 1.78.2 but it will still not correctly report correctly report errors > in the new {{block}} feature. We

[web2py] Re: jqgrid onSelectRow trigger web2py_component

2010-05-16 Thread mdipierro
This is the definition of web2py_component function web2py_component(action,target) { jQuery(document).ready(function() { web2py_ajax_page('get',action,null,target); }); } I think you just want to call web2py_ajax_page instead of web2py_component. On May 16, 11:50 pm, Jason Lotz wrote: > I

[web2py] jqgrid onSelectRow trigger web2py_component

2010-05-16 Thread Jason Lotz
I was using an iframe to show the details of a selected row from jqgrid. Which worked. However I realized that it is a pain to get iframe to recognize parent size so resizing produces an awkward looking form. I came across web2py LOAD helper and thought it to be a good fix to my frame resizing issu

[web2py] web2py 1.78.2

2010-05-16 Thread mdipierro
We found some problems in 1.78.1 and errors in views will not display correctly in tickets thus causing problems. We have a temporary fix in 1.78.2 but it will still not correctly report correctly report errors in the new {{block}} feature. We are working on this Please report any error view a

[web2py] Re: auth forms i cant belive this is soooo hard

2010-05-16 Thread mdipierro
Why are you reinventing the wheel? Why are you not using? def login(): return dict(form=auth.login()) We can make your form work but it would still miss lots and lots of stuff from auth. On May 16, 8:20 pm, "finrodfeleg...@gmx.com" wrote: > i have made a form using the controller: > def login()

[web2py] Re: Idea: Appliance remote management

2010-05-16 Thread mdipierro
I did not mean at the web2py level. I was thinking for this: allow your repository to sync with web2py app hosted on launchpad/ bitbucket/github/googlecode. nightly the repository would check if a new revision is present and check it out and always host the most updated version. This is before the

[web2py] auth forms i cant belive this is soooo hard

2010-05-16 Thread finrodfeleg...@gmx.com
i have made a form using the controller: def login(): store.person.email.requires=IS_NOT_EMPTY() form=SQLFORM(store.person,fields=['email','password']) if FORM.accepts(form,request.vars,session): users=store(store.person.email==form.vars.email)\ (store.person.passw

[web2py] Re: integer range select box

2010-05-16 Thread Richard
I already have the default set. The problem comes when I use SQLFORM to edit the record with this field set to 0 (not create). On May 16, 12:29 pm, mdipierro wrote: > you have to add db.table.field.default=0 > > On May 15, 9:26 pm, Richard wrote: > > > > > thanks for that. > > > I found if the

[web2py] Re: Idea: Appliance remote management

2010-05-16 Thread blackthorne
> Some apps may be hosted outside (hg, bzr, git). It would nice to have > a mechanism for automatic updates and build of the apps. update is remove + download + install (unless you want to keep user data which would make things more complicated) automatic updates also seem to require something el

[web2py] Re: PGP Mail

2010-05-16 Thread blackthorne
awesomeee On May 15, 3:39 am, Massimo Di Pierro wrote: > Thanks to szimszon we have PGP in Mail (trunk only) > > mail.send( >         self, >         to, >         subject='None', >         message='None', >         attachments=None, >         cc=None, >         bcc=None, >         reply_to=None,

[web2py] Re: PGP Mail

2010-05-16 Thread mdipierro
I moved the settings in mail.settings. I forgot to do it before committing 1.78.1 so I will repost 1.78.2 soon. szimszon can you please check it? On May 15, 11:46 am, Thadeus Burgess wrote: > I think mail.settings. If you have multiple sends that get different > PGP keys, you can always change ma

[web2py] Re: Idea: Appliance remote management

2010-05-16 Thread mdipierro
On May 16, 4:38 pm, blackthorne wrote: > cool thing. > > I've done the yaml configurator as an app, I will share it soon but it > would be nice to see it integrated with web2py as if it was a filetype > handler, just like there is for .py files and htmledit for html > files, ... That should not

[web2py] Re: Idea: Appliance remote management

2010-05-16 Thread blackthorne
cool thing. I've done the yaml configurator as an app, I will share it soon but it would be nice to see it integrated with web2py as if it was a filetype handler, just like there is for .py files and htmledit for html files, ... I've also made a draft for an app spec, here it is: w2py app spec -

Re: [web2py] Testing an upload function

2010-05-16 Thread Mathieu Clabaut
I finally did the following (using a storage with 'filename' and 'file' attributes) without using webtest which seems to work : > request.function='upload_photo' resp = upload_photo() photo = Storage() photo.filename = os.path.basename(filename)

[web2py] Offline application for a web2py app.

2010-05-16 Thread Mathieu Clabaut
Hello, I'm considering the development of an offline app for a web2py application (CRM would be one of the target). Do you know if such a work has ever been considered ? There are at least two issues to be considered: - synchronisation/reconciliation : When changed are made offline they

[web2py] Re: Idea: Appliance remote management

2010-05-16 Thread mdipierro
I am happy to merge option 2) with http://web2py.com/appliances On May 14, 8:38 am, blackthorne wrote: > yes. > > So I see on this thread 2 or 3 different ideas and a small roadmap: > - this web conf (YAML) editor as a first step to create/edit app > metadata based on a specification (yet to buil

[web2py] Re: Idea: Appliance remote management

2010-05-16 Thread finrodfeleg...@gmx.com
i like the idea - hope to see it live! On May 13, 12:09 pm, blackthorne wrote: > ok, this one may be interesting... > > Currently, we can install web2py apps in one of 3 ways. uploading it, > providing its url or putting the files in the applications folder > manually. Nothing wrong with this but

Re: [web2py] Idea: Appliance remote management

2010-05-16 Thread Praneeth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 +1 for the idea :) - -- Praneeth On 05/13/2010 09:39 PM, blackthorne wrote: > ok, this one may be interesting... > > Currently, we can install web2py apps in one of 3 ways. uploading it, > providing its url or putting the files in the applications

Re: [web2py] Re: Different results in console vs. script

2010-05-16 Thread Thadeus Burgess
Just to update, the test_runner mentioned earlier in this thread is now located here http://packages.python.org/web2py_utils/test_runner.html -- Thadeus On Wed, May 5, 2010 at 7:51 PM, Matthew wrote: > I figured it out (stupid mistake on my part). Part of the instructions > at http://web2py

[web2py] Re: crud.select and links

2010-05-16 Thread Jose
On 16 mayo, 11:48, Jose wrote: > On 15 mayo, 23:15, mdipierro wrote: > > > In the second case, does the list of fields include db.table.id? > I understand, the fields list should be table.field instead of using only field Jose

[web2py] Re: crud.select and links

2010-05-16 Thread Jose
On 15 mayo, 23:15, mdipierro wrote: > In the second case, does the list of fields include db.table.id? Yes, of course, in fact shows the id field, but without link. fields = my_table.fields rows = crud.select(my_table, query=query, fields=fields, ..., linkto=URL(r=request, f='read')) Jose

Re: [web2py] Error with template.py from revision e9e41cce0c onwards.

2010-05-16 Thread Praneeth
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Works fine now :) Thanks a lot. - -- Praneeth On 05/16/2010 02:42 AM, Thadeus Burgess wrote: > Ah, this is quite a nasty bug to fix :) > > Originally we just looked if the line started with return, however the > following line of code would then fa

[web2py] Re: web2py 1.78.1 is OUT

2010-05-16 Thread Iceberg
About OPTGROUP, here is an example. CHINA={ 'CAN':'Guangzhou', 'SHA':'Shanghai', 'PEK':'Beijing(Peking)',} INTERNATIONAL = { 'SYD':'Sydney', 'BKK':'Bankok', } AIRPORTS = dict(CHINA.items() + INTERNATIONAL.items()) db.define_table('booking', Field('departure', requires=IS_IN_SET(AI

Re: [web2py] Testing an upload function

2010-05-16 Thread Mathieu Clabaut
Thank you for the directions. I'll try something like that and keep you informed of my progress... -Mathieu On Sat, May 15, 2010 at 22:56, Thadeus Burgess wrote: > I attempted to solve this by inserting data into the request > environment, including the form name, however I did not have any > lu