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

2009-04-20 Thread Yarko Tymciurak
Hi Annet - Try something like this: On Mon, Apr 20, 2009 at 1:37 AM, annet 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 type string) the function should redirect to an other > applic

[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=''), SQLField('rechtsvorm',

[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 s

[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: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: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), _class=se

[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 install

[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") : INPUT(_value="hello") : helpers attributes that start without underscore (only value, requires) have special meaning. "value" sets the value of the variable associate to

[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 v

[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 someth

[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: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 incorporated

[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 forms.vars.ite

[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 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 obvious, but would a

[web2py:20140] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 17:22, Jose wrote: > On 20 abr, 15:39, mdipierro 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.t

[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 this

[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: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 wrote: > > 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 community ent

[web2py:20136] Re: site wide-plugins

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 7:49 PM, Tim Michelsen 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 /applications >> You c

[web2py:20135] Re: site wide-plugins

2009-04-20 Thread Tim Michelsen
>> * 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 > You can change gluon/import_all.py But will it not be overwritten by

[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 n

[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] wrote: > On Mon, Apr 20, 2009 at 3:41 PM, mdipierro 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 no

[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 wrote: > Hello, > is it possible to make the helper apps on websites downloadable? > > * Layout Designer -http://mdp.cti.depaul.edu/layouts > * Interactive Model Builder > -http://desi

[web2py:20131] Re: site wide-plugins

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 7:25 PM, Tim Michelsen wrote: > 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 availabl

[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:20129] Re: Host name in routes.py

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 3:41 PM, mdipierro 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 value in it. We should

[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 wrote: > > 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 t

[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 k

[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

[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] wrote: > On Mon, Apr 20, 2009 at 3:41 PM, mdipierro 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 web2p

[web2py:20124] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 15:39, mdipierro 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: session.tch = textchas.get_tch

[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 h

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

2009-04-20 Thread Fran
On Apr 20, 6:38 pm, mdipierro 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 the context of a spec

[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 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 value in it. We should

[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 wrote: > On Mon, Apr 20, 2009 at 1:09 PM, TeamBlack wrote: > > > > > Hi, > > > I did search but didn't find what I was looking for. Using web2py > > 1.56, is it possible to find out the referr

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

2009-04-20 Thread waTR
Thanks, that makes sense. On Apr 10, 7:58 am, DenesL 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 am,waTR wrote: > > > I have a field who

[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:20116] Re: Referring url

2009-04-20 Thread Yarko Tymciurak
On Mon, Apr 20, 2009 at 1:09 PM, TeamBlack wrote: > > 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 si

[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 wrote: > On 20 abr, 14:47, Jason Brower 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

[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] wrote: > On Mon, Apr 20, 2009 at 1:40 PM, virhilo wrote: > > > Thanks a lot-it's working:) > > I can have only: > > request.vars and form.accepts(request.vars, formname=N

[web2py:20114] Re: todo & help

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 11:31 AM, mdipierro 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 session/errors/cache >    -

[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 >> header3

[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: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 > wrote: > > > > no ":" at the end of th

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

2009-04-20 Thread Yarko Tymciurak
On Mon, Apr 20, 2009 at 12:49 PM, Tim Michelsen wrote: > > > 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,

[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 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 know why. Why you d

[web2py:20108] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 14:47, Jason Brower 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 validates if it's

[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:20106] Re: GET forms without _formname

2009-04-20 Thread Álvaro Justen [Turicas]
On Mon, Apr 20, 2009 at 1:40 PM, virhilo 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 wrote: >> Then this should do it

[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 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 - Telecomunicações e Softw

[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 p

[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 thro

[web2py:20102] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 14:40, mdipierro 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:20101] Re: Validating in the server

2009-04-20 Thread Jason Brower
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 validates if it's an email or not. The second validates if it's par

[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 t

[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 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 db.table.field2 and ALL other alli

[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:20097] Re: Validating in the server

2009-04-20 Thread Jose
On 20 abr, 13:56, mdipierro 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 possible answers The

[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: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 (r=request,f='crea

[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 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 because you are

[web2py:20093] Re: GET forms without _formname

2009-04-20 Thread mdipierro
correct On 20 Apr, 11:40, virhilo 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 wrote: > > > Then this should do it > > >

[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: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 wrote: > Then this should do it > >     if request.vars and form.accepts(request.vars,formname=

[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 wrote: > 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 t

[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 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 it by typping:

[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 wrote: > I believe this is wor

[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: [virh...@hpe

[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 tab

[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 wrote: > > it fixes an issue with packing on windows (introduced in 1.61

[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: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 wrote: > Apps which I exported using previous version(1.61) and imported in > current version. > > On 20 Kwi, 16:16, mdipierro wrote: > > > Which imported apps? >

[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 t

[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 wrote: > Which imported apps? > > Massimo > > On 20 Apr, 07:40, virhilo wrote: > > > Hello:) > > Inported aplications don't have web2py_ajax.html file and have > > corrupted layout.ht

[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 wrote: > The repesent code below produces following A title output: > 'table.field2 123.456'  if the field2 value is 123.456 and > 'table.field2

[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 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 backup which took me > b

[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

[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 wrote: > I found the reason, this may be interesting, Massimo, > > I have a lot of math in /modules dir and they are obviously loaded >

[web2py:20077] Re: imported apps corrupted

2009-04-20 Thread mdipierro
Which imported apps? Massimo On 20 Apr, 07:40, virhilo 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 now. --~--~--

[web2py:20076] Re: GET forms without _formname

2009-04-20 Thread mdipierro
I believe this is working but I think you want something slightly different: def test(): form=FORM('Package name: ', INPUT(_name='name', requires=IS_LENGTH(25), value=''), 'Arch: ', SELECT(OPTION('Wszystkie', _value='all'), OPTION('i686', _value='32'), OPTION('x86_64', _va

[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 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 patch, I

[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 How

[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 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 type string) the

[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: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: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 fu

[web2py:20068] imported apps corrupted

2009-04-20 Thread virhilo
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 now. --~--~-~--~~~---~--~~ You received this message beca

[web2py:20067] Re: GET forms without _formname

2009-04-20 Thread virhilo
Issue still existing :( On 13 Kwi, 00:03, virhilo 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', _value='all'), >  

[web2py:20066] Re: GET forms without _formname

2009-04-20 Thread virhilo
That issue is still existing :( --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send email to

[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 val

[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 ris

[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: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 F

[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: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 division

[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 auto