[web2py:33285] Doc link disapears with save...

2009-10-20 Thread Jason Brower
I noticed that the [Doc] link vanishes after pressing the save button. Minor, but my contribution. :) Regards, Jason --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send

[web2py:33284] Re: Trying to upload file through flex

2009-10-20 Thread Adi
Tried this once - it stores entire request as text. Trying to figure out a way. On Oct 20, 10:14 pm, mdipierro wrote: > Sorry, I am not familiar with flash but this is wrong anyway: > > return SQLFORM(db.videodata, fields=['flvcopy']).accepts(request.vars, > formname=None) > > because it should

[web2py:33283] Re: Returning rows as xml results in badly formed xml [RESOLVED]

2009-10-20 Thread Adi
Verified the fix in 1.68. Thanks. On Oct 20, 9:14 pm, Thadeus Burgess wrote: > You need to download the latest developmental version. > > Or wait until 1.68 is released (which will be soon I believe) > > -Thadeus > > On Tue, Oct 20, 2009 at 10:56 AM, Adi wrote: > > > You mean I have to download

[web2py:33282] Re: web2py 1.68.1 is OUT

2009-10-20 Thread mr.freeze
Not very important but there is now DIV.elements to grab elements by tag or attribute: text = form.elements("input",_type="text") for t in text: t['_size']="50" ...you can grab by multiple tags or attributes... On Oct 21, 12:14 am, mdipierro wrote: > Not written yet. Sorry. Except for > >

[web2py:33281] semaPrinter application is not working...

2009-10-20 Thread Jason Brower
I just noticed that my semaprinter app is not working anymore. Any ideas why? I think it has to do with cron. Traceback (most recent call last): File "/home/encompass/Desktop/prototype/gluon/restricted.py", line 184, in restricted exec ccode in environment File "/home/encompass/Desktop

[web2py:33280] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
On Oct 21, 2:38 pm, mdipierro wrote: > I understand what you are proposing. I need to think about this. At > this time we do not have any site level configuration file and we > consider that a plus. options.py is a configuration for the web server > only. Then we have routes.py which filters in

[web2py:33279] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 9:17 PM, mdipierro wrote: > > I noticed that: > 5.1 > 5.0996 "%(data)s" % dict(data=5.1) > '5.1' "%(data)e" % dict(data=5.1) > '5.10e+00' "%(data)f" % dict(data=5.1) > '5.10' "%(data).3f" % dict(data=5.1) > '5.100' "%(data).3e"

[web2py:33278] Re: another plea for help

2009-10-20 Thread Richard
> even better if w2p_filepath unambiguously define the plugin_name That would be good, but people will likely distributed plugins with filenames like "myplugin_v0.1.w2p" (like apps currently are). In such a case would it be more sensible to generate "myplugin" or "myplugin_v0.1"? Richard On Oc

[web2py:33277] Re: another plea for help

2009-10-20 Thread mdipierro
I like this but we are not there yet. I think we first need low level api for packing and unpacking (just two functions). Then we need to discuss how to expose the API. This is has been and is going to be a long discussion. This helps. Massimo On Oct 20, 8:23 pm, Beerc wrote: > May I suggest an

[web2py:33276] web2py 1.68.1 routes problem on GAE?

2009-10-20 Thread mdipierro
A user is having problems with routes on GAE and new 1.68.1. Have you tried it? works for you with your existing routes.py? Please let us know asap. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" grou

[web2py:33275] Re: web2py 1.68.1 is OUT

2009-10-20 Thread mdipierro
Not written yet. Sorry. Except for New hindi and spanish translation ingres support (thanks Chris) cached uploads allow for progress bars (thanks AndCycle) legacy database support for db2, mssql with non-int primary keys (thanks Denes) the other things are mostly internal rewrites. I believe the

[web2py:33274] Re: web2py 1.68.1 is OUT

2009-10-20 Thread weheh
The best keeps getting better! Where can we find doc on new capabilities? On Oct 20, 1:56 pm, mdipierro wrote: > Please try it! > > 1.68.1 > New cron > New hindi and spanish translation > cached uploads allow for progress bars (thanks AndCycle) > ingres support (thanks Chris) > legacy database s

[web2py:33273] Re: web2py 1.68.1 is OUT

2009-10-20 Thread mdipierro
we officially have a Ingres expert (Chris Clark). he is listed in the who page. I will ad Ingres support to the main page asap. On Oct 20, 10:49 pm, cesmiga wrote: > Massimo, > > Excellent news about Ingres support in Web2Py.  There is no other web > framework that supports as many databases tha

[web2py:33272] Re: Creating A Button in Web2Py

2009-10-20 Thread mdipierro
3) URL builds the url to the action /app/controller/function, request.application is the name of the current application so that the link does not break if it is renamed 2) it is a flag that should be set to True if the menu item should be selected. The default layout does not use this flag but s

[web2py:33271] Re: Creating A Button in Web2Py

2009-10-20 Thread Checho
Thanks for your answer Massimo! Can you explain me in this statement which are the parameters??? "[T('Change Avatar'), False,URL(request.application,'default','user/ change_password')]" 1. I supose de 1st parameter is the name of the option in the menú. 2. What does it mean having False instead

[web2py:33270] Re: SQLFORM.factory conditional Field in form

2009-10-20 Thread mdipierro
if(jQuery('#no_table_educ_updt').attr('checked')) perhaps this help? http://www.mail-archive.com/disc...@jquery.com/msg01656.html On Oct 20, 11:09 pm, ed wrote: > Hi, > I tried to display a conditional field using jQuery with "no_table_" > as the table name since i am using an SQLFORM.

[web2py:33269] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
I noticed that: >>> 5.1 5.0996 >>> "%(data)s" % dict(data=5.1) '5.1' >>> "%(data)e" % dict(data=5.1) '5.10e+00' >>> "%(data)f" % dict(data=5.1) '5.10' >>> "%(data).3f" % dict(data=5.1) '5.100' >>> "%(data).3e" % dict(data=5.1) '5.100e+00' So when the number is printed it is p

[web2py:33268] Re: web2py 1.68.1 is OUT

2009-10-20 Thread william wang
Sorry, my bad. It's working great! On Oct 21, 12:05 pm, william wang <7be...@gmail.com> wrote: > I am not running it properly~ I don't know why. > I download the latest source code. Upzip.Run: > > python web2py.py > the browser auto startup. > Show "Invalid Request" > And the console: > > """ > >

[web2py:33267] Re: SQLFORM.factory conditional Field in form

2009-10-20 Thread ed
Hi, I tried to display a conditional field using jQuery with "no_table_" as the table name since i am using an SQLFORM.factory. The jQuery code was copied from the latest web2py manual. I've been reviewing it for hours and test ran it, however i was not successful. I don't know if this is a web2py

[web2py:33266] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 8:32 PM, mdipierro wrote: > > I am ok with the patch. Perhaps for date and datetime we could also > have a %(format)s that inserts the actual format string after some > beautification, but I can add that later. I've created some of the doctests. One anomaly (not surprising,

[web2py:33265] Re: web2py 1.68.1 is OUT

2009-10-20 Thread william wang
I am not running it properly~ I don't know why. I download the latest source code. Upzip.Run: python web2py.py the browser auto startup. Show "Invalid Request" And the console: """ web2py william$ python web2py.py WARNING:root:unable to import dbhash default applications appear to be installed

[web2py:33264] Re: web2py 1.68.1 is OUT

2009-10-20 Thread cesmiga
Massimo, Excellent news about Ingres support in Web2Py. There is no other web framework that supports as many databases that I know of. Just a reminder, would you have someone add Ingres information to the home page at... http://www.web2py.com/ Thanks, Christopher On Oct 20, 1:56 pm, mdipie

[web2py:33263] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread mdipierro
I understand what you are proposing. I need to think about this. At this time we do not have any site level configuration file and we consider that a plus. options.py is a configuration for the web server only. Then we have routes.py which filters incoming requests and responses. If the purpose o

[web2py:33262] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
I am ok with the patch. Perhaps for date and datetime we could also have a %(format)s that inserts the actual format string after some beautification, but I can add that later. massimo On Oct 20, 9:25 pm, Jonathan Lundell wrote: > On Oct 20, 2009, at 5:24 PM, mdipierro wrote: > > > > > please e

[web2py:33261] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
On Oct 21, 12:37 pm, mdipierro wrote: > On Oct 20, 8:01 pm, Graham Dumpleton > wrote: > > > On Oct 21, 11:14 am, mdipierro wrote: > > > > Sorry my answer was confused. I guess having my son jumping around me > > > all the time does not help. > > > > What I tried to say is that web2py cannot l

[web2py:33260] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 5:24 PM, mdipierro wrote: > > please email it to me when done. Thanks. Are you OK with the patches? I don't want to do the doctests until they're settled, since the error messages figure in the tests. > > On Oct 20, 6:42 pm, Jonathan Lundell wrote: >> On Oct 20, 2009, at

[web2py:33259] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread mdipierro
On Oct 20, 8:01 pm, Graham Dumpleton wrote: > On Oct 21, 11:14 am, mdipierro wrote: > > > Sorry my answer was confused. I guess having my son jumping around me > > all the time does not help. > > > What I tried to say is that web2py cannot link a session to a port > > hence the problem. It canno

[web2py:33258] Re: another plea for help

2009-10-20 Thread Beerc
May I suggest an extended, CRUD style, plugin_name oriented interface, in a 'plugin' module? So we can use plugin.pack(your_app, w2p_filepath, plugin_name) to pack the given plugin into a w2p file at w2p_filepath; even better if w2p_filepath unambiguously define the plugin_name, so we

[web2py:33257] Re: vim for the admin editor

2009-10-20 Thread Yarko Tymciurak
sorry - wrong terminology --- the web editor is enabled by default; to get at the "its all text" activator in Firefox, you have to "toggle editor" off manually all the time; it would be nice to set this to "editor toggled off" by default for people who use that plugin (and - since you may not alway

[web2py:33256] Re: Creating type of a dynamic SQL Querie

2009-10-20 Thread Sebastian Brandt
Wonderfull approach and thanks for the explanation. I sometimes wish I had not slept all the time in mathclass @ school :-) Thanks a lot On 21 Okt., 02:57, mdipierro wrote: > qset is just a variable. You can call it "a" if you like. > > the idea is that > >    a=db > > defines a set of all reco

[web2py:33255] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
On Oct 21, 11:14 am, mdipierro wrote: > Sorry my answer was confused. I guess having my son jumping around me > all the time does not help. > > What I tried to say is that web2py cannot link a session to a port > hence the problem. It cannot and should not because the port is not > reliable sin

[web2py:33254] Re: Creating type of a dynamic SQL Querie

2009-10-20 Thread mdipierro
qset is just a variable. You can call it "a" if you like. the idea is that a=db defines a set of all records of all table b=a(query1) defined a subset as limited by the query c=b(query2) defined a subset of the previous subset etc etc then you can do rows = c.select() to get

[web2py:33253] Re: Creating type of a dynamic SQL Querie

2009-10-20 Thread Sebastian Brandt
One more question: What does qset actually do? On 21 Okt., 02:24, mdipierro wrote: > I am not sure I understand but I am going to make a guess > > qset=db(db.events.severity==request.vars.severity)\ >             (db.events.status==request.vars.status)\ >             (db.events.status==db.status

[web2py:33252] Re: Creating type of a dynamic SQL Querie

2009-10-20 Thread Sebastian Brandt
I am impressed Massimo :-) It actually works, thank you very much. Greetings Sebastian Brandt On 21 Okt., 02:24, mdipierro wrote: > I am not sure I understand but I am going to make a guess > > qset=db(db.events.severity==request.vars.severity)\ >             (db.events.status==request.vars.sta

[web2py:33251] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
please email it to me when doe. Thanks. On Oct 20, 6:42 pm, Jonathan Lundell wrote: > On Oct 20, 2009, at 2:17 PM, mdipierro wrote: > > > > > OK. I will take the patch. > > Here's a first cut:http://lobitos.net/web2py-patches/gluon/validators.py > > This is *not* ready to go; once we agree on th

[web2py:33250] Re: Creating type of a dynamic SQL Querie

2009-10-20 Thread mdipierro
I am not sure I understand but I am going to make a guess qset=db(db.events.severity==request.vars.severity)\ (db.events.status==request.vars.status)\ (db.events.status==db.status.id)\ (db.events.severity==db.severity.id) if request.vars.message: qset=q

[web2py:33249] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread mdipierro
According to the Django documentation: http://docs.djangoproject.com/en/dev/topics/http/sessions/ <<< SESSION_COOKIE_PATH¶ New in Django 1.0: Please, see the release notes Default: '/' >>> In web2py you can also set the session path, and it has the same default: response.cookies[response.

[web2py:33248] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread mdipierro
Sorry my answer was confused. I guess having my son jumping around me all the time does not help. What I tried to say is that web2py cannot link a session to a port hence the problem. It cannot and should not because the port is not reliable since there may be a proxy. There is a flag one can se

[web2py:33247] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 2:17 PM, mdipierro wrote: > > OK. I will take the patch. Here's a first cut: http://lobitos.net/web2py-patches/gluon/validators.py This is *not* ready to go; once we agree on the patch, I'll update the doctest strings accordingly. > > On Oct 20, 3:38 pm, Jonathan Lundell

[web2py:33246] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
I am talking about the original persons problem. If you think you are, then you aren't explaining things very well so the original poster and others would possibly be able to understand. At the moment you seem to be offering no solution at all. Back to the original problem, a session cookie is by

[web2py:33245] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread mdipierro
the only issue as far as I am concerned is when the same user accesses the same app under the same web2py installation from the same browser using two different ports at the same time. In this case I would like to have two different sessions, but this cannot be done. Some discussion on the topic h

[web2py:33244] Re: Creating type of a dynamic SQL Querie

2009-10-20 Thread Sebastian Brandt
Oh, I forgot to mention that I already tried the following: I slpit up the query in several parts and wanted to merge them back together but it seems that you cant merge them back together. My code there was like: query_1='db(db.events.status==request.vars.status)' query_2='(db.events.severity==

[web2py:33243] Creating type of a dynamic SQL Querie

2009-10-20 Thread Sebastian Brandt
Hi everyone, I am trying to create a dynamic SQL Query. I have a form where a user can input several fields. I want to perfom a query whether a user has filled out all fields or not. Got the following code: if not request.vars.message: request.vars.message='' if not request.vars.hos

[web2py:33242] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread mdipierro
Hi Graham, the session is linked to the application, not to the web2py installation. If you install the same app twice under web2py, for example, each of them gets its own set of sessions. Each app has its own session name and I think that is what you refer to. web2py does not allow (by default)

[web2py:33241] Re: another plea for help

2009-10-20 Thread mdipierro
yes. something like this will do. you will need to pass the appname as well. Massimo On Oct 20, 6:00 pm, Richard wrote: > I could do this over the weekend. > Is the following interface what you expect? > > def pack_plugin(plugin_name, w2p_filepath): >     """Pack the given plugin into a w2p fil

[web2py:33240] Re: vim for the admin editor

2009-10-20 Thread mdipierro
They are textarea in web2py admin. On Oct 20, 5:45 pm, Yarko Tymciurak wrote: > On Mon, Oct 19, 2009 at 4:04 PM, mdipierro wrote: > > > Remember that web2py was designed as a teaching tool. Moving to VIM is > > not an option. > > > But, you can configure firefox to use Vim when editing a textar

[web2py:33239] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Graham Dumpleton
Other web frameworks allow you to customise the name of the session cookie to avoid this sort of problem where different applications run on different ports under same host name. Other web frameworks also allow one to cleanly mount multiple instances of an application under different sub URLs of s

[web2py:33238] Re: another plea for help

2009-10-20 Thread Richard
I could do this over the weekend. Is the following interface what you expect? def pack_plugin(plugin_name, w2p_filepath): """Pack the given plugin into a w2p file at w2p_filepath. """ ... def unpack_plugin(w2p_filepath): """Unpack the given w2p file plugin. If the plugin already

[web2py:33237] Re: Komodo IDE web2py Setup

2009-10-20 Thread Richard
Komodo is my main editor for web2py, so thanks for the tip. I don't like putting that in all my files though... Have asked how to do this properly on their forum: http://community.activestate.com/forum/implicit-python-code-completion Richard On Oct 21, 3:57 am, rondevu wrote: > Well the only w

[web2py:33236] Re: vim for the admin editor

2009-10-20 Thread Yarko Tymciurak
On Mon, Oct 19, 2009 at 4:04 PM, mdipierro wrote: > > Remember that web2py was designed as a teaching tool. Moving to VIM is > not an option. > > But, you can configure firefox to use Vim when editing a textarea. > yes, with the "It's All Text

[web2py:33235] Re: Multilingual version of the Web2py wiki v 01.

2009-10-20 Thread Yarko Tymciurak
Yes - the "translate this page" link doesn't seem to produce anything for me either (I tried Russian, French...)... On Tue, Oct 20, 2009 at 4:28 PM, mdipierro wrote: > > The yahoo think at the bottom does not work for me. Is it supposed to? > > On Oct 20, 4:23 pm, Chris Steel wrote: > > OK, > >

[web2py:33234] Re: Multilingual version of the Web2py wiki v 01.

2009-10-20 Thread mdipierro
The yahoo think at the bottom does not work for me. Is it supposed to? On Oct 20, 4:23 pm, Chris Steel wrote: > OK, > > That was kind of fun. Version one (and a mess of comments and  notes) are > available here > ->http://vishpala.com/resources/web2py/web2py-wiki/web2py-wiki-multilin... > > Fee

[web2py:33233] Re: Multilingual version of the Web2py wiki v 01.

2009-10-20 Thread Chris Steel
OK, That was kind of fun. Version one (and a mess of comments and notes) are available here -> http://vishpala.com/resources/web2py/web2py-wiki/web2py-wiki-multilingual Feel free to copy, re-merge publish, comment etc. FYI please use the web2py email group for comments. Thanks, Christopher Ste

[web2py:33232] Re: Creating A Button in Web2Py

2009-10-20 Thread mdipierro
I think you want to look into models/menu.py and views/default/user.html Massimo On Oct 20, 2:58 pm, Checho wrote: > Hi to all... > > I need to know if there is a way to create a button in a view called > for example "Change Avatar" in order to allow a registered user to > select its avatar.

[web2py:33231] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
OK. I will take the patch. On Oct 20, 3:38 pm, Jonathan Lundell wrote: > On Oct 20, 2009, at 12:04 PM, Yarko Tymciurak wrote: > > > "integer" is fine and appropriate, and not at all "techie" - if you   > > went to grade school in the US, you would understand "integer"   > > perfectly.  I expect

[web2py:33230] Creating A Button in Web2Py

2009-10-20 Thread Checho
Hi to all... I need to know if there is a way to create a button in a view called for example "Change Avatar" in order to allow a registered user to select its avatar. I created a table called avatar, which only have an Id that is a reference to auth.user table and a file type field. First of a

[web2py:33229] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 12:04 PM, Yarko Tymciurak wrote: > "integer" is fine and appropriate, and not at all "techie" - if you > went to grade school in the US, you would understand "integer" > perfectly. I expect the same would be true of any translation of > the same. I don't have a strong f

[web2py:33228] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Yarko Tymciurak
"integer" is fine and appropriate, and not at all "techie" - if you went to grade school in the US, you would understand "integer" perfectly. I expect the same would be true of any translation of the same. On Tue, Oct 20, 2009 at 12:59 PM, mdipierro wrote: > > You may be right but to me "whole

[web2py:33227] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
You may be right but to me "whole number" does not sound good. Anyway, one can use internationalization to fix this. I wish like there are "en-en", "en-us", there were "en-us-tech" and "en-us-non-tech". (Perhaps I should patent this!) Massimo On Oct 20, 12:38 pm, Jonathan Lundell wrote: > On O

[web2py:33226] web2py 1.68.1 is OUT

2009-10-20 Thread mdipierro
Please try it! 1.68.1 New cron New hindi and spanish translation cached uploads allow for progress bars (thanks AndCycle) ingres support (thanks Chris) legacy database support for db2, mssql with non-int primary keys (thanks Denes) default setting of content-type (this may cause strange behavior

[web2py:33225] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 10:34 AM, mdipierro wrote: > > ok. My intuitive sense is that more users are likely to understand "whole number" than "integer". We all take the meaning of integer for granted, but I wonder whether it isn't a little on the technical side for my Aunt Polly. > > On Oct 2

[web2py:33224] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
ok. On Oct 20, 12:19 pm, Jonathan Lundell wrote: > On Oct 20, 2009, at 10:16 AM, mdipierro wrote: > > > I think "integer number" is the proper way but I am not a native > > english speaker. Any english speaker can help us on this? > > Here's the (Oxford American) dictionary entry: > > integer |ˈ

[web2py:33223] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 10:16 AM, mdipierro wrote: > I think "integer number" is the proper way but I am not a native > english speaker. Any english speaker can help us on this? Here's the (Oxford American) dictionary entry: integer |ˈɪntədʒər| noun 1 a whole number; a number that is not a fraction

[web2py:33222] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
I think "integer number" is the proper way but I am not a native english speaker. Any english speaker can help us on this? massimo On Oct 20, 11:55 am, Jonathan Lundell wrote: > On Oct 20, 2009, at 7:49 AM, mdipierro wrote: > > > > > I agree, fixing in trunk. > > A (minor) quibble: "integer num

[web2py:33221] Re: Trying to upload file through flex

2009-10-20 Thread mdipierro
Sorry, I am not familiar with flash but this is wrong anyway: return SQLFORM(db.videodata, fields=['flvcopy']).accepts(request.vars, formname=None) because it should return the form. It would only return True/False from accept I do not think flex is submitting to a form. I think you may need to

[web2py:33220] Re: Komodo IDE web2py Setup

2009-10-20 Thread rondevu
Well the only way I got code completion to work is using this guide here http://kollerie.wordpress.com/2009/04/07/setting-up-your-ide-for-web2py-development/ by inserting the imports in the files your working on and under Komodo project properties (Windows) Script C:\\web2py\web2py.py Script Arg

[web2py:33219] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 7:49 AM, mdipierro wrote: > > I agree, fixing in trunk. A (minor) quibble: "integer number" sounds redundant to me. I'd use "whole number", "integer value", or simply "integer" instead. > > Massimo > > On Oct 20, 9:43 am, Jonathan Lundell wrote: >> On Oct 20, 2009, at 6:

[web2py:33218] Re: Returning rows as xml results in badly formed xml

2009-10-20 Thread Thadeus Burgess
You need to download the latest developmental version. Or wait until 1.68 is released (which will be soon I believe) -Thadeus On Tue, Oct 20, 2009 at 10:56 AM, Adi wrote: > > You mean I have to download web2py once again? > > On Oct 20, 7:34 pm, mdipierro wrote: > > oops. There is a bug. I

[web2py:33217] Re: Trying to upload file through flex

2009-10-20 Thread Adi
Any help on this? On Oct 20, 12:05 pm, Adi wrote: > Hi, > > I'm developing an application that uses web2py for server and air+flex > for user interface. Also, I'm a newbie. > The query is related to this > post:http://groups.google.com/group/web2py/msg/b1c6d74aead0a401 > > I'm trying to upload

[web2py:33216] Re: What could keep a web2py ajax call from triggering? How to debug? [Resolved]

2009-10-20 Thread Thadeus Burgess
I would say Ecipse+pydev for web2py, and firebug for the javascript. This is how I debug all of my ajax apps that don't work quite right. You can set breakpoints in firebug and iterate over them to understand what the javascript is working with. If you are using debugging in pydev, when your ajax c

[web2py:33215] Re: Returning rows as xml results in badly formed xml

2009-10-20 Thread Adi
You mean I have to download web2py once again? On Oct 20, 7:34 pm, mdipierro wrote: > oops. There is a bug. I just fixed it in trunk and uploading. please > give it a try in 5 minutes. The root should be 'document' > > Massimo > > On Oct 20, 8:43 am, Adi wrote: > > > Version 1.67.2 (2009-09-28

[web2py:33214] Re: markdown wiki with web2py {{=URL(..)}} inside.

2009-10-20 Thread mdipierro
BTW I almost forgot. T4 allows this and any {{...}} in markdown via the W helper defined here: http://bazaar.launchpad.net/~mdipierro/t4/development/annotate/head%3A/models/db.py Massimo On Oct 20, 10:27 am, LBarret wrote: > That woudl be great ! keep us posted. > > On Oct 20, 5:23 pm, mdi

[web2py:33213] Re: markdown wiki with web2py {{=URL(..)}} inside.

2009-10-20 Thread LBarret
That woudl be great ! keep us posted. On Oct 20, 5:23 pm, mdipierro wrote: > I have rewritten makrdown to allow that and allow latex as well but I > am not sure it is 100% compatible. It is much faster though. I will > run some more tests and eventually post it as an option. > > Massimo > > On O

[web2py:33212] Re: markdown wiki with web2py {{=URL(..)}} inside.

2009-10-20 Thread mdipierro
I have rewritten makrdown to allow that and allow latex as well but I am not sure it is 100% compatible. It is much faster though. I will run some more tests and eventually post it as an option. Massimo On Oct 20, 10:09 am, LBarret wrote: > I have some pages that have been written with markdown

[web2py:33211] Multilingual version of the Web2py wiki

2009-10-20 Thread CJSteel
I am in the process of making the interface for the web2py wiki multi- lingual (French / English). A lot of the ground work is already in place and I am making some minor tweaks to get mutilingual page titles, buttons etc. I will be using it on a French only project but am more than happy to post

[web2py:33210] Re: What could keep a web2py ajax call from triggering? How to debug? [Resolved]

2009-10-20 Thread weheh
Issue is resolved, but would still like to hear user thoughts about what is best environment for debugging ajax scripts. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, sen

[web2py:33209] markdown wiki with web2py {{=URL(..)}} inside.

2009-10-20 Thread LBarret
I have some pages that have been written with markdown syntax. I must upgrade them adding some links. So far, I can only put absolute link, like http://www.test.com/aa/bbb. But this makes impossible to test it correctly, i.e locally without uploading the whole site. I would like to write the l

[web2py:33208] Re: jqgrid 3.5 and web2py

2009-10-20 Thread DenesL
Hi zahar, this does not seem to be related to web2py. Try to make it work from static first (change the URL calls to static ones). There are a some errors in the JS: 1) you are closing the ready function too soon, so mydata is not initialized > }); > }); 2) missing ) at the end of the for stat

[web2py:33207] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
I agree, fixing in trunk. Massimo On Oct 20, 9:43 am, Jonathan Lundell wrote: > On Oct 20, 2009, at 6:33 AM, mdipierro wrote: > > > > > In trunk now. Please try it. > > I notice that the int & float versions use conflicting interpretations   > of "between": > >              if value == fvalue a

[web2py:33206] help with tests

2009-10-20 Thread mdipierro
In trunk, I fixed some tests that broke with some of the latest changes. The file gluon/tests/test_rewrite.py is now completely broken because it was based on the old internal implementation of rewrite.py. The test is broken, not rewrite. This unittest file needs to be completely rewritten. Any

[web2py:33205] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread Jonathan Lundell
On Oct 20, 2009, at 6:33 AM, mdipierro wrote: > > In trunk now. Please try it. I notice that the int & float versions use conflicting interpretations of "between": if value == fvalue and self.minimum <= value < self.maximum: if self.minimum <= value <= self.maximum

[web2py:33204] Re: Returning rows as xml results in badly formed xml

2009-10-20 Thread mdipierro
oops. There is a bug. I just fixed it in trunk and uploading. please give it a try in 5 minutes. The root should be 'document' Massimo On Oct 20, 8:43 am, Adi wrote: > Version 1.67.2 (2009-09-28 16:29:33) > > On Oct 20, 6:32 pm, mdipierro wrote: > > > This seems to have already be taken care o

[web2py:33203] Re: Komodo IDE web2py Setup

2009-10-20 Thread Yarko Tymciurak
> Komodo is multi-scripting language, so if you have a project that needs Tk, > Perl, and / or Python it's a good bet (my first really big Perl project I > got Komodo just so I could figure out what the language was doing, and it > was great). > > I have not tried a web project with it, nor anythin

[web2py:33202] Re: Help please, an automatic update on my vista box happenend last night - now I get permissions issue when launching web2py - any ideas?

2009-10-20 Thread Web2py-SuperFan
did a netstat -o at the command prompt, showed that pid on 8000 was 1088 went to task manager, enabled pid view option, saw that 1088 was eclipse.exe Aha - I have you now! Looks like because I launch web2py from eclipse, I contend with eclipse trying to use port 8000. When I close eclipse and

[web2py:33201] Re: Returning rows as xml results in badly formed xml

2009-10-20 Thread Adi
Version 1.67.2 (2009-09-28 16:29:33) On Oct 20, 6:32 pm, mdipierro wrote: > This seems to have already be taken care of long ago. Which web2py > version are you using? > > Massimo > > On Oct 20, 8:18 am, mdipierro wrote: > > > This is a good point. There should be a and it needs to be > > defa

[web2py:33200] Re: Help please, an automatic update on my vista box happenend last night - now I get permissions issue when launching web2py - any ideas?

2009-10-20 Thread Alex Fanjul
I had the same problem with the previous update so I'm planning to deactivate automatic updates... Alex F El 20/10/2009 15:01, Web2py-SuperFan escribió: > joy. another automatic update and i am hosed again > > here is the error. i reinstalled pywin32 to no avail > > default applications appear

[web2py:33199] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
In trunk now. Please try it. On Oct 20, 8:19 am, mdipierro wrote: > Yes, I can add this. > > On Oct 20, 12:38 am, Iceberg wrote: > > > > On Oct 19, 11:00 pm, Richard wrote: > > > > > hello, > > > > > I find the validator error "too small or too large" too general. > > > > Ideally they should r

[web2py:33198] Re: Returning rows as xml results in badly formed xml

2009-10-20 Thread mdipierro
This seems to have already be taken care of long ago. Which web2py version are you using? Massimo On Oct 20, 8:18 am, mdipierro wrote: > This is a good point. There should be a and it needs to be > default. I will make sure I add this to 1.68 > > On Oct 15, 1:55 am, Adi wrote: > > > Hi, > > >

[web2py:33197] Re: Help please, an automatic update on my vista box happenend last night - now I get permissions issue when launching web2py - any ideas?

2009-10-20 Thread Web2py-SuperFan
i saw a post massimo made somewhere back in feb that said someone with same problem had something else running on port8000, to try another port I did that, tried 8001 and it works. I'll be darned if I know whats running on port 8000 though --~--~-~--~~~---~--~~

[web2py:33196] Re: Customize user login

2009-10-20 Thread mdipierro
You can edit user.html and add replace {{=form}} with {{if request.args(0)=='login':}} implement your custom form {{else:}} {{=form}} {{pass}} On Oct 20, 8:08 am, max wrote: > As per  Book (page 241  version 2) I have defined my own table for the > authentification in the db.py > In the datab

[web2py:33195] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread mdipierro
It is not going to be the same session. By default each app has its own sessions and session keys. There is no sharing between apps. You can, optionally, have one app retrieve the session keys and sessions of another app but it is not a goo idea. Massimo On Oct 20, 5:50 am, Alex Fanjul wrote: >

[web2py:33194] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-20 Thread mdipierro
Yes, I can add this. On Oct 20, 12:38 am, Iceberg wrote: > > On Oct 19, 11:00 pm, Richard wrote: > > > > hello, > > > > I find the validator error "too small or too large" too general. > > > Ideally they should return "not a number" if the int/float cast fails, > > > or "too big" / "too small"

[web2py:33193] Re: Returning rows as xml results in badly formed xml

2009-10-20 Thread mdipierro
This is a good point. There should be a and it needs to be default. I will make sure I add this to 1.68 On Oct 15, 1:55 am, Adi wrote: > Hi, > > I have an HTTPService which returns a result of a query as xml, which > I need to display in Flex 3 frontend. > > Here's the simplified code snippet:

[web2py:33192] Customize user login

2009-10-20 Thread max
As per Book (page 241 version 2) I have defined my own table for the authentification in the db.py In the database i see my new fields. auth=Auth(globals(),db) # authentication/ authorization auth_table = db.define_table( auth.settings.table_user_name, Field('cluster_user_

[web2py:33191] Re: Help please, an automatic update on my vista box happenend last night - now I get permissions issue when launching web2py - any ideas?

2009-10-20 Thread Web2py-SuperFan
joy. another automatic update and i am hosed again here is the error. i reinstalled pywin32 to no avail default applications appear to be installed already web2py Enterprise Web Framework Created by Massimo Di Pierro, Copyright 2007-2009 Version 1.67.2 (2009-09-28 16:29:33) Database drivers av

[web2py:33190] Re: Komodo IDE web2py Setup

2009-10-20 Thread rondevu
Well I have tried WingIDE. And wanted to see the difference of the two IDEs. On Oct 20, 6:56 pm, Alex Fanjul wrote: > > Im new. How do you configure komodo to work with web2py? > > If you can use Wing + web2py its so > easyhttp://www.wingware.com/doc/howtos/web2pyand it works very good. > -- >

[web2py:33189] Re: Komodo IDE web2py Setup

2009-10-20 Thread Alex Fanjul
> > Im new. How do you configure komodo to work with web2py? > > > > If you can use Wing + web2py its so easy http://www.wingware.com/doc/howtos/web2py and it works very good. -- Alejandro Fanjul Fdez. alex.fan...@gmail.com www.mhproject.org --~--~-~--~~~---~--~-

[web2py:33188] Re: Sessions lost when several servers running on diff ports

2009-10-20 Thread Alex Fanjul
Thanks Massimo, one quick and maybe newbi question: if you have 2 applications (in the same server), and each application has his own session directory to store private session data, how does the server know that you are openning the "same session" in the two apps? and.. is it actually the sam

[web2py:33187] Komodo IDE web2py Setup

2009-10-20 Thread rondevu
Im new. How do you configure komodo to work with web2py? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this grou

[web2py:33186] Trying to upload file through flex

2009-10-20 Thread Adi
Hi, I'm developing an application that uses web2py for server and air+flex for user interface. Also, I'm a newbie. The query is related to this post: http://groups.google.com/group/web2py/msg/b1c6d74aead0a401 I'm trying to upload a video file through Flex. Now Flex will send the request in this

  1   2   >