[web2py:18698] Re: Use of "@" in python

2009-03-27 Thread Lagg
Wow. Good stuff to look over and digest. Thanks! On Mar 27, 11:26 pm, Yarko Tymciurak wrote: > You might also want to take a look > at:http://www.artima.com/weblogs/viewpost.jsp?thread=240808http://www.artima.com/weblogs/viewpost.jsp?thread=240845 > > On Fri, Mar 27, 2009 at 5:07 PM, AchipA w

[web2py:18697] Re: Pycon 2009 - Important

2009-03-27 Thread Steve Shepherd
Hey you guys you need to setup a WebCam on the Stand so all of us guys that are stuck around the world can tune in!!! Hope your converting heaps of Python guru's over to the Web2py Steve Shepherd Mob:+64 (0) 27 4338154 Email: sargs...@gmail.com Analyst On Sat, Mar 28,

[web2py:18696] Re: Pycon 2009 - Important

2009-03-27 Thread Yarko Tymciurak
On Fri, Mar 27, 2009 at 11:32 PM, Yarko Tymciurak wrote: > On Fri, Mar 27, 2009 at 10:59 PM, Pai 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 fo

[web2py:18695] Re: Pycon 2009 - Important

2009-03-27 Thread Yarko Tymciurak
On Fri, Mar 27, 2009 at 10:59 PM, Pai 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 afternoon. Also, tomorro

[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 wrote: > > They are called decorators (in Java you would call them annotations). > > http://en.wikiped

[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 wrote: > On Thu, Mar 12, 2009 at 12:20 AM, Yarko Tymciurak wrote: > > We are working out details of what we'd like to propose to cover in the > > PyCon2009 web2py dojo, and it's look

[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(' '), A('(xml)', _href=URL (r=request,f='show',args=[project.id,'xml'])) ) }} -Dave On Mar 27, 7:38 pm, mdipierro wrote: > LI(A(...),A(...)) > > You can nest as may helpers and text as you want as

[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 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 worked like a charm. Th

[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 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 be kindly. > > I'

[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: {{for project in projects: }} {{=A(project.name,_href=URL(r=request,f='show',args= [project.id])) }} {{=A('xml', _href

[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 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 easy to miss if you're

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

2009-03-27 Thread mdipierro
There is no standard mechanism for this. One would have to be created. On Mar 27, 9:48 am, Oliver Heyme wrote: > 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 Ga

[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 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) stay on SysT

[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 wrote: > Don't hesitate to send me patches for testin

[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 http://www.ddj.com/web-development/184406073;jsessionid=OIH2TFBDT5IASQSNDLPCKH0CJUNN2JVN?_requestid=12

[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

[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 27,

[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 wrote: > Has anyone else had this problem (uploading images)? Are there any

[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 wrote: > I would like to read a file (myapp_settings

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

[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: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 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 programs, the

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

2009-03-27 Thread BBi
Update : The problem seems specific to the windows version. I tried with Ubuntu 8.10: there's no trouble with accented characters in the installation path. Bruno --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

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

[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 wrote: > Has anyone else had this problem (uploading images)? Are there any > debug

[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 wrote: > Hi Yannik, > > Probably something like: > > # the view: > {{extend 'layout.html'}} > >    onclick="$.getJSON('{{=URL(r

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

[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 wrote: > I'm interested on this answer too... :) > > I don't know if it's a good approach... but you could auth usin

[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, 200

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

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

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