[web2py] Re: testing scheduler in windows

2011-09-03 Thread Brian M
OK, finally managed to pull new trunk off of google code. :) Still doesn't seem to be working on Windows. :( 1. The necessary DB tables don't ever seem to get created without user intervention. I had to temporarily edit gluon/scheduler.py to have migrate=True in the __init__ of the

[web2py] Re: New Plugin: plugin_ckeditor

2011-09-03 Thread tomt
Hi, Does plugin_ckeditor work with internet explorer? It works great with firefox, but I have problems using it with IE. When I call up the application with IE8 like this: http://server:8000/application/default/editthis The text area doesn't load the ckeditor Surprisingly, when I call it like

[web2py] Re: Published my collection of plugins

2011-09-03 Thread tomt
Kenji, Thanks for contributing your great plugins. I've started to use solidtable and solidform and I expect that I will use them a lot because they really improve the look and usability of the web2py apps I've been working on. I was wondering if solidtables has a formatting option that will dis

[web2py] Re: testing scheduler in windows

2011-09-03 Thread Massimo Di Pierro
Vey strange. I pushed this 6hours ago. http://code.google.com/p/web2py/source/detail?r=17764f774ab1c34da4eaa6a4b9ccee8bee7ca1d8 I pushed it again but it does not show it yet. Strange again. I found Google very slow in the last few days. Massimo On Sep 3, 9:26 pm, Brian M wrote: > The google cod

[web2py] Re: Left joining two queries

2011-09-03 Thread Noel Villamor
Thank you guys, I sort of zeroed in on the solution from your replies. Little by little I am learning how things are done in web2py. :) tblBalias = db.skedp.with_alias('tblBalias') desired_result = db(db.tblB.fkA == 1).select(db.tblB.name, db.tblB.data, tblBalias.data, left = tblBalias.o

[web2py] Re: testing scheduler in windows

2011-09-03 Thread Brian M
The google code repository doesn't appear to have been updated - trunk hasn't changed since Friday night.

[web2py] Re: Has anyone heard of OrientDB? +1 more question

2011-09-03 Thread TheSweetlink
I have tested bulbs with Rexster and while they are great products with an equally great community, there are some existing incompatibilities that prevent usage of OrientDB's remote engine. This is the only one that allows multiple connections to a db as well as the built-in clustering capabilities

Re: [web2py] Re: testing scheduler in windows

2011-09-03 Thread Brian Meredyk
Massimo, When browsing changesets at http://code.google.com/p/web2py/source/list there doesn't seem to be anything changed in trunk since last night so I don't think the new code has been pushed out yet. On Sat, Sep 3, 2011 at 7:04 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > This

[web2py] Re: Combining registration and login forms on same page

2011-09-03 Thread Massimo Di Pierro
> However, still not sure offhand how to modify the auth.navbar options. Don't. You do not need it. Remove it and add links to your own functions.

[web2py] Re: testing scheduler in windows

2011-09-03 Thread Massimo Di Pierro
This should be fixed in trunk now. On Sep 3, 5:13 pm, Niphlod wrote: > BTW, I was on linux.after exporting WEB2PY_PATH variable it seems > to work > > Another traceback, though when I inserted from appadmin a wrong > "args" value (it was not valid json format) I got > > Traceback (most re

[web2py] Re: Left joining two queries

2011-09-03 Thread Massimo Di Pierro
I will make a guess: b = db.tblB.with_alias('b') db(db.tblB.fkA == 1).select(db.tblB.name,b.data,left=b.on((b.fkA==db.tblA.fkA)&(db.tblA.id==1))) If you show your SQL we can make this right. You have not explained why the output is 100,'aaa','xxx' 101,'bbb','yyy' 102,'ccc',None and not 100,'aa

[web2py] Re: Combining registration and login forms on same page

2011-09-03 Thread Eric
I figured out how to combine login and registration forms by using the controller: def index(): return dict(form=auth.login(),form1=auth.register()) and then in my view {{=form}} {{=form1}} I figure the answer to part 1 of my question question, combining the lost password and username forms

[web2py] Re: password widget, validators and ending up with asterisks

2011-09-03 Thread Aaron Mahler
Ok. Makes sense. So I wasn't nuts or "doing it wrong". :) Thanks! - Aaron On Sep 2, 9:31 pm, Massimo Di Pierro wrote: > Field('name',type='password') makes use data can only go in but never > out to forms. > > On Sep 2, 5:29 pm, Aaron Mahler wrote:>  I'm definitely > using web2py's login f

Re: [web2py] Re: Has anyone heard of OrientDB? +1 more question

2011-09-03 Thread Vasile Ermicioi
what do you think if we will write and adapter on top of rexter (or bulbflow)? we will have an adapter for all rexster graph databases (TinkerGraph, Neo4j, OrientDB, DEX, and Sail RDF Stores) http://code.google.com/p/orient/wiki/ProgrammingLanguageBindings#Language_bindings https://github.com/tink

[web2py] Combining registration and login forms on same page

2011-09-03 Thread Eric
I'm hoping to combine the auth registration and login forms on one page. Can anyone please point me in the right direction? I could do this manually in the view, but I am guessing there's a simpler way to do it with web2py. Reading the manual, I see that I can set the login URL accordingly: aut

[web2py] Re: testing scheduler in windows

2011-09-03 Thread Niphlod
BTW, I was on linux.after exporting WEB2PY_PATH variable it seems to work Another traceback, though when I inserted from appadmin a wrong "args" value (it was not valid json format) I got Traceback (most recent call last): File "/home/niphlod/Scrivania/web2py/gluon/restricted.py", line

[web2py] Re: Left joining two queries

2011-09-03 Thread Anthony
Does this help: http://web2py.com/book/default/chapter/06#Self-Reference-and-Aliases On Saturday, September 3, 2011 5:36:12 PM UTC-4, Noel Villamor wrote: > > TABLE db.tblB > fkA, name, data > 1,100,'aaa' > 1,101,'bbb' > 1,102,'ccc' > 2,100,'xxx' > 2,101,'yyy' > > 1st query: db(db.tblB.fk

[web2py] Re: testing scheduler in windows

2011-09-03 Thread Niphlod
traceback hereI'm missing environmental variable WEB2PY_PATH that I didn't know of :D DEBUG:root:looping... DEBUG:root: grabbing all queued tasks DEBUG:root: grabbed 1 tasks DEBUG:root: releasing all but one (running) DEBUG:root:new scheduler_run record INFO:root:new task 11002 "ciao" a

[web2py] Re: Left joining two queries

2011-09-03 Thread Noel Villamor
TABLE db.tblB fkA, name, data 1,100,'aaa' 1,101,'bbb' 1,102,'ccc' 2,100,'xxx' 2,101,'yyy' 1st query: db(db.tblB.fkA == 1).select(db.tblB.name,db.tblB.data) name,data 100,'aaa' 101,'bbb' 102,'ccc' 2nd query: db(db.tblB.fkA == 2).select(db.tblB.name,db.tblB.data) name,data 100,'xxx' 101,'yyy' Desi

Re: [web2py] Re: testing scheduler in windows

2011-09-03 Thread Jonathan Lundell
On Sep 3, 2011, at 2:03 PM, Massimo Di Pierro wrote: > Yes and no. > > The new scheduler uses multiprocessing to make sure each task is > executed in its on process. This allows the main process to monitor > the task and eventually terminate it. It also prevents a task from > messing up the worke

[web2py] Re: testing scheduler in windows

2011-09-03 Thread Massimo Di Pierro
Yes and no. The new scheduler uses multiprocessing to make sure each task is executed in its on process. This allows the main process to monitor the task and eventually terminate it. It also prevents a task from messing up the worker status. Windows does not support work and multiprocessing behav

[web2py] Re: testing scheduler in windows

2011-09-03 Thread Massimo Di Pierro
Please try again. I fixed the problem in trunk. Step 1: in your app try something like this def demo(*a,**b): return 'hello(%s,%s)' % (a,b) from gluon.scheduler import Scheduler Scheduler(tasks=dict(demo=demo),heartbeat=10) Step 2: python2.6 web2yp.py -K Step 3: http:////appadmin to s

[web2py] Re: How to customise the reset password function

2011-09-03 Thread Anthony
Maybe something like this: def user(): form=auth() if request.args(0)=='request_reset_password' and form.errors: session.flash='If your user ID was found, we have sent you reset details by email.' redirect(URL('user',args='login')) return dict(form=form) Anthony On

[web2py] Re: Big problem -- no session_id without using Auth

2011-09-03 Thread pbreit
Have you tried starting over from scratch with a brand new app? Would it work to save the items into session itself instead of the DB?

[web2py] Re: Has anyone heard of OrientDB? +1 more question

2011-09-03 Thread TheSweetlink
That is thrilling news Massimo. Issue #407. Having strong integration between web2py and OrientDB will allow for some truly amazing products on top of the already amazing capabilities of web2py. Please tell me what could use testing lately and how I can find that information out without bugging

[web2py] Re: Left joining two queries

2011-09-03 Thread pbreit
Wouldn't a regular query do that? Something like: rows = db((db.tblB.fkA.belongs(1,2))) & (db.tblB.fkA==db.tblA.fldA)).select()

[web2py] Re: How to customise the reset password function

2011-09-03 Thread pbreit
I suspect that might be tricky since it's a change in validator logic. Probably not a bad thing to investigate since this approach to password recovery is not uncommon.

[web2py] How to customise the reset password function

2011-09-03 Thread Dave H
Hi, I'd like to customise the "reset password" part of the authentication module. At the moment, it tells you if you have entered an incorrect email address, and doesn't in fact try to send the email unless the user is found in the database. I'd like to change it so that if a valid email address is

[web2py] Re: Convert List to javascript array : Error

2011-09-03 Thread Vineet
Thanks massimo That solved the problem. :) On Sep 3, 7:25 pm, Massimo Di Pierro wrote: > Because parse takes a string.This line > > var ctg = JSON.parse({{=XML(ctg)}}); > > should be > > var ctg = JSON.parse('{{=XML(ctg)}}'); > > or > > var ctg = JSON.parse({{=repr(XML(ctg))}}); > > On Sep 3, 1:

Re: [web2py] content type of jsonrpc service reply

2011-09-03 Thread Jonathan Lundell
On Sep 2, 2011, at 2:15 PM, Stefaan Himpe wrote: >> There *is* a bug, but it should be generating text/x-json (and that should >> be fixed). Are you sure you're getting text/html? > > I definitely received text/html. > (web2py 1.98.2, running on rocket 1.2.2). This should be fixed in the trunk.

[web2py] Re: Left joining two queries

2011-09-03 Thread Massimo Di Pierro
I do not understand. Can you make and example why actual data? On Sep 3, 3:37 am, Noel Villamor wrote: > Say I have a parent table tblA and child table tblX: > > db.define_table('tblA', >     Field(fldA')) > > db.define_table('tblB', >     Field('fkA', db.tblA), >     Field('name', 'integer'), >

[web2py] Re: Convert List to javascript array : Error

2011-09-03 Thread Massimo Di Pierro
Because parse takes a string.This line var ctg = JSON.parse({{=XML(ctg)}}); should be var ctg = JSON.parse('{{=XML(ctg)}}'); or var ctg = JSON.parse({{=repr(XML(ctg))}}); On Sep 3, 1:46 am, Vineet wrote: > I want to convert a list into javascript array. > Referred to a related thread before

[web2py] Re: displaying a computed field

2011-09-03 Thread paroiron
Thank you Massimo! On 3 sep, 03:27, Massimo Di Pierro wrote: > Yes the book refers to manual insert/update. > > On Sep 2, 3:25 pm, paroiron wrote: > > > > > > > > > > Maybe that is referring to doing a manual insert or update (via .insert() > > > or > > > .update(), not via a form submission).

[web2py] Left joining two queries

2011-09-03 Thread Noel Villamor
Say I have a parent table tblA and child table tblX: db.define_table('tblA', Field(fldA')) db.define_table('tblB', Field('fkA', db.tblA), Field('name', 'integer'), Field('data')) How do I left join the two queries on tblB below: 1st: db(db.tblB.fkA == 1).select(db.tblB.name,db.t

[web2py] Re: Big problem -- no session_id without using Auth

2011-09-03 Thread Joe Barnhart
This is still driving me nuts. I have an app that works some of the time and totally inexplicably fails other times. When it fails it is because it gets a new session_id value for every transaction with web2py. I have a table where I keep information created by the user during their session. Th