[web2py:18665] Re: A couple of Oracle problems

2009-03-27 Thread SergeyPo
Don't hesitate to send me patches for testing in Oracle. There are more problems when running on Oracle, but they can be eliminated: 1. Famous Oracle error 'identifier is too long' - usually happens in models like db.define_table('headers',...) db.define_table('details',

[web2py:18666] How to read Global Variables from txt file at startup?

2009-03-27 Thread Anand Vaidya
I would like to read a file (myapp_settings.cfg or myapp_settings.py) which contains various application related settings which are not expected to change frequently, when web2py is started and keep the variables read always around (in memory). Make it read only if possible. I'd like all apps to

[web2py:18667] Using command line -i and -p with -t

2009-03-27 Thread Iceberg
Hi Massimo, As we know, we can use: web2py -i 0.0.0.0 -p 80 -a blah to start a web2py process binding to 0.0.0.0 and port 80. Now I want to do the same thing but this time let web2py (windows distribution) stay on SysTray, so I do: web2py -i 0.0.0.0 -p 80 -a blah -t web2py can start, BUT

[web2py:18668] Should admin CSS match web2py.com?

2009-03-27 Thread mr.freeze
It might be a nice touch to give them a unified look and feel. The admin site looks a little clunky to me now that web2py.com has been updated. Just a thought. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py

[web2py:18669] Re: creating stand-alone apps of web2py

2009-03-27 Thread dbb
Iceberg, sounds great!!, hope you will have it soon On Mar 27, 1:36 am, Iceberg iceb...@21cn.com wrote: Mmmm, let me say it this way. With the plugin, 1. a developer can just click to have a setup.exe as his own distribution package; 2. and the end user can run this setup.exe as

[web2py:18670] Re: Auth via xml-rpc

2009-03-27 Thread Tito Garrido
I'm interested on this answer too... :) I don't know if it's a good approach... but you could auth using a function that receives the username and password and the returns a token that expires in a certain time, requiring a new authentication. Any other ideas? Tito Garrido On Tue, Mar 24, 2009

[web2py:18671] Re: Auth via xml-rpc

2009-03-27 Thread Oliver Heyme
If that's the case I will probably create my own auto mechanism! It would have been pretty cool to just use the Standard. Too sad! On Fri, Mar 27, 2009 at 3:41 PM, Tito Garrido titogarr...@gmail.com wrote: I'm interested on this answer too... :) I don't know if it's a good approach... but

[web2py:18672] Re: Trouble with images

2009-03-27 Thread Doug Cuthbertson
Has anyone else had this problem (uploading images)? Are there any debug settings for web2py or log files it can generate to help determine what's going wrong? If someone can point me in the right direction, I'll be happy to try to analyze/debug my installation. Thanks, Doug C. On Mar 26, 5:41 

[web2py:18673] Re: Send Data Through JSON !

2009-03-27 Thread Yannick
Oh Thanks a lot Vidul... It works, I should have included the args in the URL(...) Thanks again and have a good one :) Yannick P. On Mar 26, 11:50 pm, Vidul Petrov vidul.r...@gmail.com wrote: Hi Yannik, Probably something like: # the view: {{extend 'layout.html'}} a href=#    

[web2py:18674] Re: Trouble with images

2009-03-27 Thread Vidul Petrov
Hi Doug, Did you by any chance make the upload using FTP? My guess is that binary mode is not used, because I am pretty sure that WEB2PY has nothing to do with this problem. On Mar 27, 5:21 pm, Doug Cuthbertson doug.cuthbert...@gmail.com wrote: Has anyone else had this problem (uploading

[web2py:18675] Trouble when the installation path has accented characters

2009-03-27 Thread BBi
Hello, I just installed 1.59 on a windows XP machine in directory K:/bborghi/ _Akeirou/Projets/SolutionsLinux2009/démo/ (watch the é in démo) Loading http://127.0.0.1:8000/ I get a ticket with the following message : Traceback (most recent call last): File gluon/restricted.py, line 98, in

[web2py:18677] Re: creating stand-alone apps of web2py

2009-03-27 Thread DJ
Nice work...waiting to try it out! On Mar 27, 1:36 am, Iceberg iceb...@21cn.com wrote: Mmmm, let me say it this way. With the plugin, 1. a developer can just click to have a setup.exe as his own distribution package; 2. and the end user can run this setup.exe as every other normal Windows

[web2py:18678] Re: Trouble with images

2009-03-27 Thread Doug Cuthbertson
Hi Vidul, No, I did not use FTP - at least not explicitly. I don't know what protocol web2py uses behind the scenes to upload files. I was following the instructions from the FAQ on web2py.com to turn an HTML page into a blog. I used the feature from the Static files section of the design page

[web2py:18679] Re: Trouble with images

2009-03-27 Thread DJ
Hi all, I am having similar issues with image uplaods. (web2py source 1.59, XP Pro, Firefox3.0.7). I used the example of the metal-lock.jpg from CAS. It shows up file in the CAS static folder, but when I save it to disk, and upload it to a new app, its shows up corrupted. The new file has

[web2py:18680] Re: How to read Global Variables from txt file at startup?

2009-03-27 Thread AchipA
just drop the settings.py in the models directory and that's it. you can make it quick(er) and read only if you wrap it in a cache.ram entity, other than that, there is no special procedure needed for settings. On Mar 27, 8:55 am, Anand Vaidya anandvaidya...@gmail.com wrote: I would like to

[web2py:18681] Re: Trouble with images

2009-03-27 Thread psikahtik
Also having the same issue uploading images from admin/ design. Using web2py 1.59 in Chrome on Vista. Just trying to upload new layout images (.png) and they end up corrupted. August On Mar 27, 9:21 am, Doug Cuthbertson doug.cuthbert...@gmail.com wrote: Has anyone else had this problem

[web2py:18682] Re: Trouble with images

2009-03-27 Thread AchipA
Took a look at the pictures, seems to have gone through a CR/LF conversion, meaning it's handled as text at some point. Linux and Mac don't make such distinction so easy to miss if you're not developing on Windows. I don't have a windows install at hand so can't check it out further :( On Mar

[web2py:18683] Use of @ in python

2009-03-27 Thread Lagg
I've noticed that auth and services use a @ when they are implemented. Could someone provide me some links for the use of @ functions in Python? In web2py it makes perfect sense as they are used as a before X, do Y type control, but I'm having trouble finding more generalized documenation for

[web2py:18684] Re: Use of @ in python

2009-03-27 Thread AchipA
They are called decorators (in Java you would call them annotations). http://en.wikipedia.org/wiki/Python_syntax_and_semantics#Decorators A list of most common use-case examples can be seen at

[web2py:18685] Re: A couple of Oracle problems

2009-03-27 Thread mdipierro
db.define_table('headers',...) db.define_table('details', SQLFIELD('header_id', 'header') ) should be db.define_table('headers',...) db.define_table('details', SQLFIELD('header_id', db.header) ) On Mar 27, 1:10 am, SergeyPo ser...@zarealye.com wrote: Don't hesitate to send me

[web2py:18686] Re: Using command line -i and -p with -t

2009-03-27 Thread mdipierro
can you send me a patch? On Mar 27, 3:43 am, Iceberg iceb...@21cn.com wrote: Hi Massimo, As we know, we can use:   web2py -i 0.0.0.0 -p 80 -a blah to start a web2py process binding to 0.0.0.0 and port 80. Now I want to do the same thing but this time let web2py (windows distribution)

[web2py:18688] Re: Trouble with images

2009-03-27 Thread mdipierro
haha. I think it is a bug in admin! I will fix it tomorrow. Massimo On Mar 27, 4:05 pm, AchipA attila.cs...@gmail.com wrote: Took a look at the pictures, seems to have gone through a CR/LF conversion, meaning it's handled as text at some point. Linux and Mac don't make such distinction so

[web2py:18689] Two links in a list - Invalid Syntax

2009-03-27 Thread Dave
Hello, Is there a way to display two llnks inside a list item? A pointer to where I might find an explanation in the docs would be kindly. I'm trying to do this: ul{{for project in projects: }} {{=A(project.name,_href=URL(r=request,f='show',args= [project.id])) }} {{=A('xml',

[web2py:18690] Re: Two links in a list - Invalid Syntax

2009-03-27 Thread mdipierro
LI(A(...),A(...)) You can nest as may helpers and text as you want as long as you separate them by , Massimo On Mar 27, 5:13 pm, Dave dfdumar...@gmail.com wrote: Hello, Is there a way to display two llnks inside a list item? A pointer to where I might find an explanation in the docs would

[web2py:18691] Re: How to read Global Variables from txt file at startup?

2009-03-27 Thread Anand Vaidya
On Mar 28, 1:53 am, AchipA attila.cs...@gmail.com wrote: just drop the settings.py in the models directory and that's it. you can make it quick(er) and read only if you wrap it in a cache.ram entity, other than that, there is no special procedure needed for settings. You are right. It

[web2py:18692] Re: Two links in a list - Invalid Syntax

2009-03-27 Thread Dave
Thanks - this works: {{=LI( A(project.name,_href=URL(r=request,f='show',args= [project.id])), XML('nbsp;'), A('(xml)', _href=URL (r=request,f='show',args=[project.id,'xml'])) ) }} -Dave On Mar 27, 7:38 pm, mdipierro mdipie...@cs.depaul.edu wrote: LI(A(...),A(...)) You can nest as may

[web2py:18693] Re: Pycon 2009 - Important

2009-03-27 Thread Pai
humm where are you guys in pycon?? I walked around today and couldn't find you On Mar 12, 12:29 am, Jorge Vargas jorge.var...@gmail.com wrote: On Thu, Mar 12, 2009 at 12:20 AM, Yarko Tymciurak yark...@gmail.com wrote: We are working out details of what we'd like to propose to cover in the

[web2py:18694] Re: Use of @ in python

2009-03-27 Thread Yarko Tymciurak
You might also want to take a look at: http://www.artima.com/weblogs/viewpost.jsp?thread=240808 http://www.artima.com/weblogs/viewpost.jsp?thread=240845 On Fri, Mar 27, 2009 at 5:07 PM, AchipA attila.cs...@gmail.com wrote: They are called decorators (in Java you would call them annotations).

[web2py:18695] Re: Pycon 2009 - Important

2009-03-27 Thread Yarko Tymciurak
On Fri, Mar 27, 2009 at 10:59 PM, Pai dekch...@gmail.com wrote: humm where are you guys in pycon?? I walked around today and couldn't find you I've been walking around - Massimo has a booth in the vendors area (tomorrow there will be food there to draw people) - we were there this