[web2py:20056] if..else not working

2009-04-20 Thread annet
In the following function, the idea is to select a club's data based on the id in request.args. Then if the club's status is 0 (the field is of type string) the function should redirect to an other application, else the address and nfa data should be selected from the database and returned to the

[web2py:20057] Changing links on SQLTABLE

2009-04-20 Thread weheh
I know this issue has been kicked around alot already and I've searched the posts for the answer, but I haven't been able to figure out the way to do the following. I'm using SQLTABLE with a linkto attribute, which creates a link on the id field. I would prefer to hide the ID field and move the

[web2py:20058] Re: Changing links on SQLTABLE

2009-04-20 Thread SergeyPo
It's my specialty in this forum to give link to a thread for SQLTABLE personalizing. SQLTTABLE looks like one of the biggest attractors of the whole web2py, so some effort for extra features and documentation is required. Lambda function example and another home-made method is described here:

[web2py:20059] Re: Changing links on SQLTABLE

2009-04-20 Thread weheh
SergeyPo - Many thanks to you for your earlier post with which I am already intimately familiar. I've been able to follow the advice from that post successfully in many other cases. However, I can't seem to figure out how to write a lambda statement that duplicates the link that web2py/gluon

[web2py:20060] Re: Can response.flash have different colors?

2009-04-20 Thread weheh
Massimo, I don't think it's dirty at all. Especially if the DIV could be given a moveable target within the HTML layout AJAX style, like you showed in another thread. It may not be immediately intuitive to the novice user, but it seems to me that it's consistent with the controller/viewer

[web2py:20061] Re: Can response.flash have different colors?

2009-04-20 Thread weheh
The key is to get rid of the padding. I prefer the skinnier flash, anyway. .flash { margin: 0 auto; text-align: center; clear: both; border: 1px #00; background-color: #FF5C1F; color: white; margin-top: 0.0em; margin-bottom: 1.0em; padding-top: 0.0em; padding-bottom: 0.0em; cursor: pointer;

[web2py:20062] Color picker?

2009-04-20 Thread weheh
Is there a color picker that could be easily invoked to dump an RGB value into a field for me, just like the calendar tool that works with datetime fields? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:20063] Re: Changing links on SQLTABLE

2009-04-20 Thread SergeyPo
Sorry Weheh, did not recognize you :) You can not achieve desied effect with lambda for represent because lambda does not get enough information: try db.table.name.represent = lambda o: type(o) and you will see that lambda gets str datatype as parameter, so all links to SQLRow etc. are lost. You

[web2py:20064] Re: Unrecoverable error

2009-04-20 Thread SergeyPo
I found the reason, this may be interesting, Massimo, I have a lot of math in /modules dir and they are obviously loaded (imported) by framework at startup. Recently I turned on psycho speeding up and this caused all those segmentation errors on Mac (haven't yet tested this on Windows). Which

[web2py:20065] transpose a SQLTABLE in view

2009-04-20 Thread Timmie
Hello, I asked how to change the output of a query result [1]. As my table is rather huche and I do not want to force my users to do vertical scrolling, I would like to transpose the SQLTABLE: instead of: header1 header2 header3 value_row1 value_row1

[web2py:20067] Re: GET forms without _formname

2009-04-20 Thread virhilo
Issue still existing :( On 13 Kwi, 00:03, virhilo virh...@gmail.com wrote: Hello:) I want to send a form using get method, so i make form like this: form=FORM('Package name: ',     INPUT(_name='name', requires=IS_LENGTH(25), value=''),     'Arch: ',     SELECT(OPTION('Wszystkie',

[web2py:20069] Re: dataTables and date

2009-04-20 Thread jmvermeer
Massimo, I am a bit closer to getting my event list to display the dates properly. The following error was solved replacing fromdate=request.vars.datum with fromdate=form.vars.datum fromdate=request.vars.datum todate=form.vars.datum+datetime.timedelta(days=int(form.vars.dagen)) Exposing the

[web2py:20070] Re: admin interface issue 1.61.1

2009-04-20 Thread Mike
Ok...just had a chance to try this again. I'm on a win2k3 server, running web2py as a service (python2.5), using the included cherrypy web server. This morning I overwrote my web2py dir with a backup which took me back to 1.49.1 and everything ran fine again. Then I unzipped 1.61.1 over the dir

[web2py:20071] Re: Color picker?

2009-04-20 Thread Michal Jursa
In my point of view, this has nothing to do with web2py. Just use google and find free js color picker like: http://www.mattkruse.com/javascript/colorpicker/ http://www.free-color-picker.com/color-picker-samples.php etc, etc... Michal weheh wrote: Is there a color picker that could be

[web2py:20072] Re: if..else not working

2009-04-20 Thread Yarko Tymciurak
just reading your sentence, and trying to see if your code is doing what you say: On Mon, Apr 20, 2009 at 1:37 AM, annet jmverm...@xs4all.nl wrote: In the following function, the idea is to select a club's data based on the id in request.args. Then if the club's status is 0 (the field is of

[web2py:20073] db.table.field.represent question

2009-04-20 Thread Hans
The repesent code below produces following A title output: 'table.field2 123.456' if the field2 value is 123.456 and 'table.field2' if the field2 value is None What I want to achieve is following A title output: '123.456' if the field2 value is 123.456 and 'None' if the field2 value is None

[web2py:20074] Re: web2py 1.61.2 is out

2009-04-20 Thread mdipierro
sorry. My fault Fixing it. On 20 Apr, 00:19, Iceberg iceb...@21cn.com wrote: Pack all now also cleans up errors and sessions works as expected. :-)  By the way, you lost a fix to a minor, minor bug: when trying to cleanup admin, now a ticket is issued (at least on Windows XP). In my previous

[web2py:20077] Re: imported apps corrupted

2009-04-20 Thread mdipierro
Which imported apps? Massimo On 20 Apr, 07:40, virhilo virh...@gmail.com wrote: Hello:) Inported aplications don't have web2py_ajax.html file and have corrupted layout.html file(coping that files from another applications solves problem) Sorry for short description but I don't have time

[web2py:20075] Re: Unrecoverable error

2009-04-20 Thread mdipierro
I do not know but python web2py.py is pure python. It just imports gluon.* for you and defines some global objects for you. Massimo On 20 Apr, 03:50, SergeyPo ser...@zarealye.com wrote: I found the reason, this may be interesting, Massimo, I have a lot of math in /modules dir and they are

[web2py:20078] Re: dataTables and date

2009-04-20 Thread mdipierro
My fault...formatter not format {{=db.event.van_datum.formatter(event.van_datum)}} On 20 Apr, 07:51, jmverm...@xs4all.nl wrote: Massimo, I am a bit closer to getting my event list to display the dates properly. The following error was solved replacing fromdate=request.vars.datum with

[web2py:20079] Re: admin interface issue 1.61.1

2009-04-20 Thread mdipierro
Can anybody reproduce this? Massimo On 20 Apr, 08:05, Mike michael.mcgreg...@gmail.com wrote: Ok...just had a chance to try this again. I'm on a win2k3 server, running web2py as a service (python2.5), using the included cherrypy web server. This morning I overwrote my web2py dir with a

[web2py:20080] Re: db.table.field.represent question

2009-04-20 Thread mdipierro
I think you just need db.table.id.represent = lambda value: A(db.table [value].field2,_href=URL(r=request,f='edit',args=value)) On 20 Apr, 08:55, Hans johann.scheibelho...@easytouch-edv.com wrote: The repesent code below produces following A title output: 'table.field2 123.456'  if the field2

[web2py:20081] Re: imported apps corrupted

2009-04-20 Thread virhilo
Apps which I exported using previous version(1.61) and imported in current version. On 20 Kwi, 16:16, mdipierro mdipie...@cs.depaul.edu wrote: Which imported apps? Massimo On 20 Apr, 07:40, virhilo virh...@gmail.com wrote: Hello:) Inported aplications don't have web2py_ajax.html file

[web2py:20082] todo help

2009-04-20 Thread mdipierro
Some people have volunteered to help. Here are some tasks that need to be completed. 1) applications/admin/controller/default.py can now do: - unpack app - pack app - delete app - cleanup session/errors/cache - update languages - check for latest version It would be nice

[web2py:20083] Re: imported apps corrupted

2009-04-20 Thread mdipierro
which browser? which os? are you using a web server? The tar file got corrupted during download. Massimo On 20 Apr, 09:28, virhilo virh...@gmail.com wrote: Apps which I exported using previous version(1.61) and imported in current version. On 20 Kwi, 16:16, mdipierro mdipie...@cs.depaul.edu

[web2py:20084] 1.61.3 is OUT

2009-04-20 Thread mdipierro
it fixes an issue with packing on windows (introduced in 1.61.2) and has 'warn', 'error', 'info' styles for flash messages (which are now smaller). Please check it out. Any outstanding issue except for the Oracle issues raised by Sergey? Massimo

[web2py:20085] Re: 1.61.3 is OUT

2009-04-20 Thread Yarko Tymciurak
ummm gee I heard today that Oracle bought Sun Micorsystems (Java) for cash... Does this mean DAL will need to support Java instead of SQL? (Ha! JUST KIDDING) :-) On Mon, Apr 20, 2009 at 9:41 AM, mdipierro mdipie...@cs.depaul.edu wrote: it fixes an issue with packing on

[web2py:20086] Re: automatically customising query result

2009-04-20 Thread Timmie
Thanks about the link to this hidden documentation. Read doc here.http://www.web2py.com/examples/global/vars/SQLTABLE The headers argument does what you want. Searching for SQLTABLE on this list I got: predefined label and SQLTABLE header [1]. Can you tell me how I need to define my table

[web2py:20087] Re: imported apps corrupted

2009-04-20 Thread virhilo
Tested on: firefox, opera, konqueror and arora browsers-the same OS: Linux - architecture i686 Python version: 2.6.1 I don't used web server-just runned it by typping: python web2py.py I think i found the error-the same in current version, the archive created by web2py are corrupted:

[web2py:20088] Re: GET forms without _formname

2009-04-20 Thread virhilo
No i don't want redirections-i want to stay on the same site:) Only don't want to have _formname in url. formname=None cause the INPUT and SELECT '_value' is not parsed formname='' disable validation :( or maybe I doing something wrong? On 20 Kwi, 16:16, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:20089] Re: imported apps corrupted

2009-04-20 Thread mdipierro
This is a bug in the 2.6 python tar module. That is why we only support 2.5. Massimo On 20 Apr, 11:05, virhilo virh...@gmail.com wrote: Tested on: firefox, opera, konqueror and arora browsers-the same OS: Linux - architecture i686 Python version: 2.6.1 I don't used web server-just runned

[web2py:20090] Re: GET forms without _formname

2009-04-20 Thread mdipierro
Then this should do it if request.vars and form.accepts(request.vars,formname=None): response.flash=done Massimo On 20 Apr, 11:16, virhilo virh...@gmail.com wrote: No i don't want redirections-i want to stay on the same site:) Only don't want to have _formname in url.

[web2py:20091] Re: GET forms without _formname

2009-04-20 Thread virhilo
Thanks a lot-it's working:) I can have only: request.vars and form.accepts(request.vars, formname=None) line(without 'if') if i don't want to display any information-yes?:) On 20 Kwi, 18:29, mdipierro mdipie...@cs.depaul.edu wrote: Then this should do it     if request.vars and

[web2py:20092] Validating in the server

2009-04-20 Thread Jose
Is it possible to validate in the server? If it is real. How it would be the procedure? Regards Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to

[web2py:20093] Re: GET forms without _formname

2009-04-20 Thread mdipierro
correct On 20 Apr, 11:40, virhilo virh...@gmail.com wrote: Thanks a lot-it's working:) I can have only: request.vars and form.accepts(request.vars, formname=None) line(without 'if') if i don't want to display any information-yes?:) On 20 Kwi, 18:29, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:20094] Re: Validating in the server

2009-04-20 Thread mdipierro
web2py validation is ALWAYS done in the server. Massimo On 20 Apr, 11:43, Jose jjac...@gmail.com wrote: Is it possible to validate in the server? If it is real. How it would be the procedure? Regards Jose --~--~-~--~~~---~--~~ You received this message

[web2py:20095] Re: db.table.field.represent question

2009-04-20 Thread Hans
Thanks Massimo! The following code worked for me db.table.id.represent = lambda value: A(db (db.table.id==value).select(db.table.field2)[0].field2,_href=URL (r=request,f='update',args=value)) if len(db(db.table.id==value).select (db.table.field2))0 else A('None',_href=URL

[web2py:20096] Re: db.table.field.represent question

2009-04-20 Thread Hans
Follow on question: I've defined aliases of db.table. When I later in the controller set db.alias1.field2.represent then it is applied also to db.table.field2 and ALL other alliases! How can the representation of only one specific db.alias1.field2.represent be set while having different ones on

[web2py:20097] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 13:56, mdipierro mdipie...@cs.depaul.edu wrote: web2py validation is ALWAYS done in the server. I refer to the following situation: I am trying to implement a system of confirmation based on questions. I use INPUT(_name='tcha', requires=IS_IN_SET(tch[1])) tch[1] is a list with

[web2py:20098] Re: Color picker?

2009-04-20 Thread Jason Brower
It would be nice if colors codes turned to highlighted of the color. Nice when browsing your css. IF your looking for a color chooser in linux you can try agave, or kruler. kruler is my fav, and I even use gnome! BR... JBro On Mon, 2009-04-20 at 15:29 +0200, Michal Jursa wrote: In my point of

[web2py:20099] Re: db.table.field.represent question

2009-04-20 Thread mdipierro
It cannot be done. because the same fiels in aliased tables is the same field. On 20 Apr, 12:15, Hans johann.scheibelho...@easytouch-edv.com wrote: Follow on question: I've defined aliases of db.table. When I later in the controller set db.alias1.field2.represent then it is applied also to

[web2py:20100] Re: Validating in the server

2009-04-20 Thread mdipierro
If you want to display the possible answers: INPUT(_name='tcha', requires=IS_IN_SET(tch[1])) If you do not want to display the possible anwers: INPUT(_name='tcha', requires=[IS_IN_SET(tch[1])]) In both cases the response is validated server side. If the use sends back a tcha that is not in

[web2py:20102] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 14:40, mdipierro mdipie...@cs.depaul.edu wrote: Si desea mostrar las posibles respuestas: INPUT (_NAME = 'Tcha , requiere = IS_IN_SET (tch [1])) Si no desea mostrar la posible anwers: INPUT (_NAME = 'Tcha , requiere = [IS_IN_SET (tch [1])]) It is what I want. Thank you Jose

[web2py:20103] Re: Request for more organize feature request lists...

2009-04-20 Thread Tim Michelsen
I guess I see the checking-for-valid-bug phase a step that others can do to help lift some of the load off of members that can code. But your right, there is a lot of garbage reports out there. I just wish there was a way, that when I have the time, I can sit down and start to sift through

[web2py:20104] Re: Validating in the server

2009-04-20 Thread Jose
But the answers continue going towards the client. If in the browser. I show the source code of the page, I can see the answers. Jose --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To

[web2py:20105] Re: Auth decorators - Just not getting it.

2009-04-20 Thread Álvaro Justen [Turicas]
On Sun, Apr 19, 2009 at 3:10 PM, mdipierro mdipie...@cs.depaul.edu wrote: no : at the end of the decorator. I remember that I saw @some_decorator(): in some web2py example. I think it was in auth/authorization examples, but it is fixed now. Is () required? -- Álvaro Justen Peta5 -

[web2py:20106] Re: GET forms without _formname

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 1:40 PM, virhilo virh...@gmail.com wrote: Thanks a lot-it's working:) I can have only: request.vars and form.accepts(request.vars, formname=None) line(without 'if') if i don't want to display any information-yes?:) On 20 Kwi, 18:29, mdipierro mdipie...@cs.depaul.edu

[web2py:20107] Re: transpose a SQLTABLE in view

2009-04-20 Thread Mariano Mara
On 20.04.09 02:29, Timmie wrote: Hello, I asked how to change the output of a query result [1]. As my table is rather huche and I do not want to force my users to do vertical scrolling, I would like to transpose the SQLTABLE: instead of: header1 header2

[web2py:20108] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 14:47, Jason Brower encomp...@gmail.com wrote: Most of the time validation is done according to the restrictions you set in your table. For example, you can set a table item to be only a Email. After creating a table called users with a item called email I set this. The first

[web2py:20109] Re: Host name in routes.py

2009-04-20 Thread Álvaro Justen [Turicas]
On Thu, Apr 16, 2009 at 2:57 PM, mdipierro mdipie...@cs.depaul.edu wrote: I know it is ugly but 1) it works; 2) it very powerful when compared with routes on rails and urls in Django; 3) is is backward compatible. Does not anybody remember that I never wanted to add this to web2py? Now you

[web2py:20111] Re: Auth decorators - Just not getting it.

2009-04-20 Thread Yarko Tymciurak
No - I don't think so; see function decorators discussion in http://www.artima.com/weblogs/viewpost.jsp?thread=240808 On Mon, Apr 20, 2009 at 12:57 PM, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Sun, Apr 19, 2009 at 3:10 PM, mdipierro mdipie...@cs.depaul.edu wrote: no : at

[web2py:20112] Referring url

2009-04-20 Thread TeamBlack
Hi, I did search but didn't find what I was looking for. Using web2py 1.56, is it possible to find out the referring url when someone visits your web2py site? Just to put it in plain terms, an example would be if someone visited my site by clicking on a link on some myspace, would I be able to

[web2py:20113] Re: transpose a SQLTABLE in view

2009-04-20 Thread Tim Michelsen
instead of: header1 header2 header3 value_row1 value_row1 value_row1 value_row2 value_row2 value_row2 I would like to have: header1value_row1 value_row2 header2value_row1 value_row2 header3value_row1

[web2py:20114] Re: todo help

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 11:31 AM, mdipierro mdipie...@cs.depaul.edu wrote: Some people have volunteered to help. Here are some tasks that need to be completed. 1) applications/admin/controller/default.py can now do:    - unpack app    - pack app    - delete app    - cleanup

[web2py:20115] Re: GET forms without _formname

2009-04-20 Thread mdipierro
Has been there is a while. It is possible it was broken in the pre 1.53 version. On Apr 20, 1:00 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Mon, Apr 20, 2009 at 1:40 PM, virhilo virh...@gmail.com wrote: Thanks a lot-it's working:) I can have only: request.vars and

[web2py:20116] Re: Referring url

2009-04-20 Thread Yarko Tymciurak
On Mon, Apr 20, 2009 at 1:09 PM, TeamBlack teamblac...@googlemail.comwrote: Hi, I did search but didn't find what I was looking for. Using web2py 1.56, is it possible to find out the referring url when someone visits your web2py site? Just to put it in plain terms, an example would be if

[web2py:20117] Re: Validating in the server

2009-04-20 Thread mdipierro
please post a complete controller that exhibits the problem. Massimo On Apr 20, 1:09 pm, Jose jjac...@gmail.com wrote: On 20 abr, 14:47, Jason Brower encomp...@gmail.com wrote: Most of the time validation is done according to the restrictions you set in your table. For example, you can

[web2py:20118] Re: Host name in routes.py

2009-04-20 Thread mdipierro
Do no not not recommend it any more. There was a time when I though that one should use Apache mod_rewrite and such feature did not belong in web2py. Now that it is there and I see how people use it, I agree there is value in it. We should all thank user voltron for insisting that we add that it.

[web2py:20119] Re: Question about INPUT()

2009-04-20 Thread waTR
Thanks, that makes sense. On Apr 10, 7:58 am, DenesL denes1...@yahoo.ca wrote: You can set the field's requires using IS_EMAIL and IS_IN_DB validators and on form.accepts (if using FORM or SQLFORM) check if it is different from the initial setting. On Apr 10, 1:34 

[web2py:20120] Re: Referring url

2009-04-20 Thread TeamBlack
Thanks Yarko, I'll take a look. Appreciate the swift response :o) On Apr 20, 7:39 pm, Yarko Tymciurak yark...@gmail.com wrote: On Mon, Apr 20, 2009 at 1:09 PM, TeamBlack teamblac...@googlemail.comwrote: Hi, I did search but didn't find what I was looking for. Using web2py 1.56, is

[web2py:20121] Re: Host name in routes.py

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 3:41 PM, mdipierro mdipie...@cs.depaul.edu wrote: Do no not not recommend it any more. There was a time when I though that one should use Apache mod_rewrite and such feature did not belong in web2py. Now that it is there and I see how people use it, I agree there is

[web2py:20122] Re: db.table.field.represent question

2009-04-20 Thread Fran
On Apr 20, 6:38 pm, mdipierro mdipie...@cs.depaul.edu wrote: It cannot be done. because the same fiels in aliased tables is the same field. It kind-of can though, surely? i.e. do the default .represent in the model, so that it is always available. A transient .represent can then be done within

[web2py:20123] Re: Referring url

2009-04-20 Thread TeamBlack
HI Again, OK, I found request.http_referer, but I don't think understand how to use it. I thought I could use it in a similar way to request.client, but I did a simple test to output whatever data is in request.http_referer, but I got nothing back. Could you possibly give me a basic example of

[web2py:20124] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 15:39, mdipierro mdipie...@cs.depaul.edu wrote: please post a complete controller that exhibits the problem. Massimo import applications.myapplication.modules.textchas as textchas ... def my_controller(): form=SQLFORM(db.my_table) if session.tch == None:

[web2py:20125] Re: Host name in routes.py

2009-04-20 Thread mdipierro
email me and I give you the code On Apr 20, 2:08 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Mon, Apr 20, 2009 at 3:41 PM, mdipierro mdipie...@cs.depaul.edu wrote: Do no not not recommend it any more. There was a time when I though that one should use Apache mod_rewrite and

[web2py:20126] Re: Request for more organize feature request lists...

2009-04-20 Thread Tim Michelsen
Thanks for the discussion. What I can see from the short time I am following this project I get the impression that: * a lot of useful tips get burried in the mailing list Search - if you think it is generally useful, add to wiki! Rarely... people usually post again to

[web2py:20127] design helper applications

2009-04-20 Thread Tim Michelsen
Hello, is it possible to make the helper apps on websites downloadable? * Layout Designer - http://mdp.cti.depaul.edu/layouts * Interactive Model Builder - http://designer.bojanka.net/designer.html?keyword=web2pydesigner I would like to use them offline while travelling. Thanks and

[web2py:20128] Re: Referring url

2009-04-20 Thread Yarko Tymciurak
sorry - I was too swift in typing (but you can see it in the link): You want request.env.http_referrer On Mon, Apr 20, 2009 at 2:46 PM, TeamBlack teamblac...@googlemail.comwrote: HI Again, OK, I found request.http_referer, but I don't think understand how to use it. I thought I could use

[web2py:20130] site wide-plugins

2009-04-20 Thread Tim Michelsen
Hello, some questions and observations: * is there a common plugin-system to add site-wide plugins tothe core ? * I would like to add my own * validators * tools like the geocode = these should be available to all my /applications * I doubt that gluon.tools.geocode will

[web2py:20132] Re: design helper applications

2009-04-20 Thread mdipierro
I will make the former public. I do not have the latter. Massimo On Apr 20, 5:27 pm, Tim Michelsen timmichel...@gmx-topmail.de wrote: Hello, is it possible to make the helper apps on websites downloadable? * Layout Designer -http://mdp.cti.depaul.edu/layouts * Interactive Model

[web2py:20133] Re: Host name in routes.py

2009-04-20 Thread mdipierro
Because people forget about routes.py files. Massimo On Apr 20, 5:34 pm, Álvaro Justen [Turicas] alvarojus...@gmail.com wrote: On Mon, Apr 20, 2009 at 3:41 PM, mdipierro mdipie...@cs.depaul.edu wrote: Do no not not recommend it any more. There was a time when I though that one should use

[web2py:20134] Re: site wide-plugins

2009-04-20 Thread mdipierro
If you just put them in a place searched by the Python path they can be imported by your apps and there no need to change import_all.py import_all.py is there as a trick to 1) make sure I build the windows and mac binary properly and 2) make sure all stardard modules are imported at startup and

[web2py:20136] Re: site wide-plugins

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 7:49 PM, Tim Michelsen timmichel...@gmx-topmail.de wrote: * is there a common plugin-system to add site-wide plugins tothe core ?     *  I would like to add my own         * validators         * tools like the geocode = these should be available to all my

[web2py:20137] Re: Request for more organize feature request lists...

2009-04-20 Thread Yarko Tymciurak
Hi Tim - On Mon, Apr 20, 2009 at 5:22 PM, Tim Michelsen timmichel...@gmx-topmail.dewrote: Thanks for the discussion. *snip!* For sphinx-doc, best way to start contributing is in the wiki - please join in! * many functions of the core are not documented with docstrings. * would

[web2py:20138] Congratulations - St. Petersburg Times Matt Waite!!!

2009-04-20 Thread Yarko Tymciurak
I just want to shout out a hearty way to go! to Matt Waite and team! The St. Petersburg Times web site, PolitiFact.com (Matt is principle developer) has won a 2009 Pulitzer Prize for fact-checking during the 2008 presidential campaign. ( http://.pulitzer.org/citation/2009-National-Reporting)

[web2py:20139] DAL useable on Desktop apps?

2009-04-20 Thread mikech
Can the DAL be used for desktop applications? I foresee wanting to write both browser and Windows based apps. I'm just a beginner so perhaps the answer is obvious, but would appreciate someone pointing it out to me. :) Mike --~--~-~--~~~---~--~~ You received

[web2py:20140] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 17:22, Jose jjac...@gmail.com wrote: On 20 abr, 15:39, mdipierro mdipie...@cs.depaul.edu wrote: please post a complete controller that exhibits the problem. Massimo import applications.myapplication.modules.textchas as textchas ... def my_controller():    

[web2py:20141] Re: DAL useable on Desktop apps?

2009-04-20 Thread mdipierro
Yes. append the gluon folder to the sys.path and then from gluon.sql import * On 20 Apr, 18:46, mikech mp.ch...@gmail.com wrote: Can the DAL be used for desktop applications?  I foresee wanting to write both browser and Windows based apps.  I'm just a beginner so perhaps the answer is

[web2py:20142] Re: Validating in the server

2009-04-20 Thread mdipierro
I am not sure I fully understand but I am not surprised it does not work. Would do this instead from gluon.sqlhtml import form_factory form=form_factory(db.my_table, SQLField('tcha',requires=[IS_IN_SET(tch [1])])) if form.accepts(...):... db.my_table.insert(**dict([q for q in

[web2py:20143] Re: design helper applications

2009-04-20 Thread Boris Manojlovic
unfortunately some of the latest updates killed my patch system functionality (latest working was at http://groups.google.com/group/web2py/browse_thread/thread/1dd2eb3c066d7d2b will try to update it so it will work for future versions of web2py) so use this older version that has this

[web2py:20144] Re: design helper applications

2009-04-20 Thread Boris Manojlovic
Fixed... now you can again use README script for this purpose Changelog: routes.py - updated to new syntax of routes.py applications/init/controllers/default.py - explicit load of re module in default.py On Tue, Apr 21, 2009 at 2:53 AM, Boris Manojlovic boris.manojlo...@gmail.com wrote:

[web2py:20145] Not bug, but certainly an issue

2009-04-20 Thread waTR
I was just wondering if there is any reason for the difference between some HTML helpers used by web2py. Specifically, there is a value= and a _value= argument used by some HTML helpers. I feel this very confusing, and while I understand the use, I very-much feel it should be changed to something

[web2py:20146] flex3, amfrpc and gae

2009-04-20 Thread Dave
Hello, I've written a small flex client to test my amfrpc service. It works fine in web2py, but not in gae. The gae log shows INFO 2009-04-21 03:24:55,043 dev_appserver.py] POST /cuecut/ projects/call/amfrpc HTTP/1.1 200 - which seems normal, but my function is not firing. Could someone

[web2py:20147] Re: Not bug, but certainly an issue

2009-04-20 Thread mdipierro
There is a rule. helpers attributes that start with _ are converted blindly into html tag attributes DIV(_class=hello) : div class=hello/div INPUT(_value=hello) : input value=hello/ helpers attributes that start without underscore (only value, requires) have special meaning. value sets the

[web2py:20148] Re: flex3, amfrpc and gae

2009-04-20 Thread mdipierro
Because when serving and amf request web2py does: try: import pyamf import pyamf.remoting.gateway except: return pyamf not installed or not in Python sys.path So if pyamf is not in the path it returns 200 OK with the string pyamf not installed

[web2py:20149] Re: Validating in the server

2009-04-20 Thread DenesL
Jose, if I understand correctly you don't want to show the drop down with the options from the IS_IN_SET. You can do this by changing the input widget of the field: db.my_table.my_field.widget=lambda self,value: INPUT(_type='text', _id='%s_%s' %(self._tablename,self.name),

[web2py:20150] Issue with module accessing redirect() method

2009-04-20 Thread waTR
I am looking to create a module in my app that will have a authentication class with methods to check if the user is logged-in and such. I wish to use session, request, redirect, etc. However, importing gluon doesn't seem to expose those methods. With the code below I keep getting an error that

[web2py:20151] Re: Issue with module accessing redirect() method

2009-04-20 Thread Mariano Mara
On 20.04.09 22:03, waTR wrote: Also, could someone give me a link to the python doc that explains the use of @ such as @cache... def myfunc(): ... I always recommend this article whe it comes to decorators: http://www.siafoo.net/article/68 Mariano.

[web2py:20152] Re: flex3, amfrpc and gae

2009-04-20 Thread Dave
Thanks. (my bad). I installed pyamf and now I'm getting 303 instead of 200. Some progress ;) Pyamf does support GAE. (http://pyamf.org/wiki/ GoogleAppEngine). I guess the issue is getting it to work with web2py. With dev_appserver.py and debug on, I run a python client and I'm seeing: print

[web2py:20153] Re: if..else not working

2009-04-20 Thread jmvermeer
Yarko, I am afraid I failed to describe the problem clearly. I have a table: db.define_table('bedrijf', SQLField('bedrijfsnaam', length=54, default='', notnull=True), SQLField('kvk_nummer', length=8), SQLField('subdossiernummer', length=4, default=''),