[web2py:18641] Re: PostgreSQL

2009-03-26 Thread ural
Thanks Massimo and thanks Farell, Anyway i have a good homework for next days to work on it. On 25 Mart, 21:29, mdipierro wrote: > Thank you Tim for clarifying this. > > I have had some issues with 3 myself when the disk ran out of space. > > Massimo > > On Mar 25, 9:47 am, Timothy Farrell wr

[web2py:18642] Re: web2py daemon script for archlinux

2009-03-26 Thread Boris Manojlovic
again I will repeat myself... * DO NOT* have a habit of *STARTING IT* from (with privileges of) root user!!! On Thu, Mar 26, 2009 at 3:49 AM, mdipierro wrote: > > can you please email it to me. Thanks. > > On Mar 25, 8:38 pm, Vidul Petrov wrote: > > Hello Matt, > > > > I allowed myself some ch

[web2py:18643] Re: Trouble with images

2009-03-26 Thread Doug Cuthbertson
I've tested Firefox 3.0.7 and IE 7.0. Regards, Doug C. On Mar 25, 10:38 pm, mdipierro wrote: > Which browser? Have you tried more than one? > > Massimo > > On Mar 25, 3:22 pm, Doug Cuthbertson > wrote: > > > Massimo, > > Yes, I'm uploading from the admin/default/design/TestBlog page. Here's >

[web2py:18644] Re: cache.ram Questions

2009-03-26 Thread AchipA
Yes, it's per app. One important gotcha is how time_expire works. It does not mean 'keep results for X seconds'. It means 'fetch if older than X seconds'. A very important difference. x = cache.ram('x', lambda: 'a', 5) time.sleep(10) x = cache.ram('x', lambda: 'b', 60) x is 'a' at the end ! On

[web2py:18645] A couple of Oracle problems

2009-03-26 Thread SergeyPo
Hi all, these probolems may be caused by unicode support by Oracle DB (or not - I don't know). The code works fine with MySQL and SQLite. 1. DAL migrations do not work if you change length of 'string' field. E.g. I have this: SQLField('komment', 'string', length=255) and I try to change it to SQ

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

2009-03-26 Thread DJ
Ice, This is great! Something I have been looking forward to. Will this allow a user to click and install the web2py application without having to start the server each time they want to use it? Keep me posted on this. Appreciate your efforts! -Seb On Mar 25, 10:16 am, Iceberg wrote: > Hey Jud

[web2py:18647] Re: Source repository confusion

2009-03-26 Thread dbb
Yaro: Are you saying that *.xls files can be imported to web2py? On Mar 6, 11:20 am, Yarko Tymciurak wrote: > Oh!   I remember how this "bee" got in my hat: > > > > > > On Fri, Mar 6, 2009 at 9:08 AM, Yarko Tymciurak wrote: > > On Fri, Mar 6, 2009 at 9:00 AM, mdipierro wrote: > > >> the Make

[web2py:18648] Re: cache.ram Questions

2009-03-26 Thread Mark Larsen
Since we are on the subject, how can you remove an item from the cache? --~--~-~--~~~---~--~~ 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 uns

[web2py:18649] Re: Looking for a FAST Developer in Web2Py

2009-03-26 Thread Steve Shepherd
Agreed, To automate communication with conference attendees would be a big help. I am contracting in a College (University) in New Zealand and am speaking with a number of our 3rd Year students about their IT industry projects for 2009. This is one of the projects I have designed for them. I think

[web2py:18650] Python auth decorator examples

2009-03-26 Thread Vidul Petrov
Hi, All online examples about the auth object decorator usage seem like this (note ":" at the end): @auth.requires_login(): and this does not work, unless it's changed to: @auth.requires_login() --~--~-~--~~~---~--~~ You received this message because you ar

[web2py:18651] Re: Source repository confusion

2009-03-26 Thread Yarko Tymciurak
No - csv files (you can save comma separated from *.xls) --- at least out of the box. There are libraries to read / write xls files, and you could write something to do that for web2py --- but it's not in it as distributed (csv _is_). - Yarko On Thu, Mar 26, 2009 at 4:31 PM, dbb wrote: > > Yaro

[web2py:18652] Re: cache.ram Questions

2009-03-26 Thread AchipA
something along the lines of cache.ram.clear(regex='itemname') although you can abuse time_expire if just want to (p)regenerate stuff in cache with cache.ram('item', lambda: 'new', 0) That will place/overwrite 'item' in the cache. cache.disk works the same way. On Mar 26, 11:19 pm, Mark Larse

[web2py:18653] Re: cache.ram Questions

2009-03-26 Thread Iceberg
Although I already figured out the abusing time_expire way by myself earlier, I still appreciate Achipa's hint for clear(), which I did not know. Thanks for that. It seems I did not read enough docs. So, after taking another look at the epydoc (http://www.web2py.com/examples/static/epydoc/ web2py

[web2py:18654] Send Data Through JSON !

2009-03-26 Thread Yannick
Hello Mate, This is probably a really simple issue... I want to send data to an action from the views using JSON and here is a sample of my code In the view: *** $.getJSON('/AppName/default/ActionName', 'DATA2SEND2Action' , function (datafromServer){

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

2009-03-26 Thread Vidul Petrov
Hi Yannik, Probably something like: # the view: {{extend 'layout.html'}} Please click here. # the controller: def my_json(): try: argument=request.args[0] import gluon.contrib.simplejson as simple_json return simple_json.dumps(argument) except IndexError:

[web2py:18656] Re: web2py daemon script for archlinux

2009-03-26 Thread mdipierro
I agree that must be fixed On Mar 26, 3:26 am, Boris Manojlovic wrote: > again I will repeat myself... > * > DO NOT* have a habit of *STARTING IT* from (with privileges of) root user!!! > > > > On Thu, Mar 26, 2009 at 3:49 AM, mdipierro wrote: > > > can you please email it to me. Thanks. > > >

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

2009-03-26 Thread mdipierro
Thank you. Will look into these asap. Massimo On Mar 26, 9:46 am, SergeyPo wrote: > Hi all, > > these probolems may be caused by unicode support by Oracle DB (or not > - I don't know). The code works fine with MySQL and SQLite. > > 1. DAL migrations do not work if you change length of 'string'

[web2py:18658] Re: Python auth decorator examples

2009-03-26 Thread mdipierro
oops On Mar 26, 6:39 pm, Vidul Petrov wrote: > Hi, > > All online examples about the auth object decorator usage seem like > this (note ":" at the end): > > @auth.requires_login(): > > and this does not work, unless it's changed to: > > @auth.requires_login() --~--~-~--~~

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

2009-03-26 Thread Iceberg
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, then have an entry in the Windows Startup Menu to run web2py (each time he wants to u

[web2py:18661] Errors with SQLFORM?

2009-03-26 Thread Michael
Hey guys, here is my default.py def index(): rows = db().select(db.hellotest.ALL) return dict(rows=rows) def newname(): form = SQLFORM('db.hellotest') <- THIS LINE HAS AN ERror if form.accepts(request.vars, session): session.flash('added') redirect(UR

[web2py:18660] Re: Python auth decorator examples

2009-03-26 Thread Michael
Yea I just noticed this also. Also, does anyone know how to get a user ID or session information? When a user log's in, in my template it would be nice to have the users name greeted like Welcome, [session.userid] and also, using a current user-id as a default for a SQLFORM? thanks guys! On

[web2py:18662] jyte vote

2009-03-26 Thread mdipierro
http://jyte.com/cl/web2py-rocks --~--~-~--~~~---~--~~ 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:18663] Re: Errors with SQLFORM?

2009-03-26 Thread mdipierro
It is form = SQLFORM(db.hellotest) not form = SQLFORM('db.hellotest') # error On Mar 26, 9:14 pm, Michael wrote: > Hey guys, here is my default.py > > def index(): >     rows = db().select(db.hellotest.ALL) >     return dict(rows=rows) > > def newname(): >     form = SQLFORM('db.hello

[web2py:18664] Re: Python auth decorator examples

2009-03-26 Thread Vidul Petrov
Hi Michael, >From what I know till now: - about the ID - "session.auth.user.id" or just "auth.user.id" - about the username - it's usually the email address (see auth_user table), i.e. "auth.user.email". On Mar 27, 5:42 am, Michael wrote: > Yea I just noticed this also. > > Also, does anyone k

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

2009-03-26 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', SQLFIELD('header_id',