[web2py] Re: Possible addition to IS_IN_DB

2010-07-08 Thread David Marko
You can use full DAL query in IS_IN_DB validator e.g. IS_IN_DB(db(db.children.sex=='M'),'children.id','%(name)s' ) David On 9 čnc, 08:08, Alastair Medford wrote: > As it stands, when one places the IS_IN_DB validator on a field, you > get a select list with options of all the rows in the given t

[web2py] Possible addition to IS_IN_DB

2010-07-08 Thread Alastair Medford
As it stands, when one places the IS_IN_DB validator on a field, you get a select list with options of all the rows in the given table. This is great, but now I'm looking for a little more functionality. For my application I'm looking to filter the selection down to a given db requirement. For exa

[web2py] Re: ajax widget - asynchronously updated

2010-07-08 Thread Adi
Some frameworks have active data widgets - the widget updates whenever data changes. I'm not sure how exactly it can be implemented in web2py, but something like this should work: View (.html file): {{=mywidget}} setTimeout(refreshWidget, 1); // calls refreshwidget ev

Re: [web2py] CKEditor and sanitize

2010-07-08 Thread Giuseppe Luca Scrofani
This worked perfectly :)

[web2py] Remove "lost password" link from the standard login form

2010-07-08 Thread Giuseppe Luca Scrofani
Hi all, how can I remove this function? I've tried with auth.settings.actions_disabled.append('request_reset_password') in the user(): controller, but this remove only the target page, not the link in itself from the login form... Some ideas?

[web2py] Thanks!!

2010-07-08 Thread ra3don
Thanks so much for the friendly and fast response, it is greatly appreciated, i will take a look at the provided resources, thanks again.

[web2py] Re: Web2py on port 80 with non-root, setuid, possible?

2010-07-08 Thread mdipierro
You NEVER run it as root user. You can run web2py as any user. You should run it as the user with the lowest permissions. What problem do you experience? On 8 Lug, 03:38, Álvaro J. Iradier wrote: > Hi everybody, > > I need to run web2py integrated web server, and I'd like to run it on port > 80

Re: [web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-08 Thread Jonathan Lundell
On Jul 7, 2010, at 3:47 PM, mdipierro wrote: > I do not have a strong opposition and I see the advantages in terms of > notation but I have two problems: I'm tied up today, so just a quick note. I understand and generally agree with your caveats. I have a couple of thoughts on the subject that I

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-08 Thread Scott
I downloaded the nightly build and it's working correctly. Thanks! On Jul 8, 11:35 am, mdipierro wrote: > download the nigthly build from web2py.com/examples/default/dowload > > On 8 Lug, 09:46, Mathieu Clabaut wrote: > > > > > I guess you should update web2py from the development repository (o

[web2py] Re: Problem uploading on GAE

2010-07-08 Thread mdipierro
Strange appcfg.py is a GAE file. Are you using python 2.5? On 8 Lug, 11:47, Ravi wrote: > on running appconfig.py it is showing this error- > > Traceback (most recent call last): >   File "appcfg.py", line 68, in >     run_file(__file__, globals()) >   File "appcfg.py", line 64, in run_file

[web2py] Problem uploading on GAE

2010-07-08 Thread Ravi
on running appconfig.py it is showing this error- Traceback (most recent call last): File "appcfg.py", line 68, in run_file(__file__, globals()) File "appcfg.py", line 64, in run_file execfile(script_path, globals_) NameError: global name 'execfile' is not defined what shud i do

[web2py] ajax widget - asynchronously updated

2010-07-08 Thread Tomas Pelka
Hi all, Im trying to create widget (lets say list of elements) which should by updated asynchronously through ajax. I don't get all the ajax examples in web2py book for example. Those examples only deals with some action, like on click, on mouse move, on sbutton submit or so. I need something

Re: [web2py] CKEditor and sanitize

2010-07-08 Thread Vasile Ermicioi
http://web2py.com/book/default/section/5/2 >>> print DIV ("hello") <b>hello</b> >>> print DIV (XML >>> ("hello")) hello you need {{ =XML(yourht

[web2py] Re: How to access the checked property? Again

2010-07-08 Thread David Marko
You have a textual bug in this update. New 'function' is missing letter 'f' . See below. -function ajax(u,s,t) { - var query=""; - for(i=0; i0) query=query+"&"; - query=query+encodeURIComponent(s[i]) +"="+encodeURIComponent(document.getElementById(s[i]).value); - } - jQuery.ajax({type: "P

Re: [web2py] Re: is_in_set hoirzontal radio widget and is_empty as default

2010-07-08 Thread Johann Spies
On 1 July 2010 14:08, mdipierro wrote: > There isn't. Look at the code for the widget in > gluon.sqlhtml.RadioWidget it should not be too difficult to allow > multicolumn. It has been done for gluon.sqlhtml.CheckboxWidget I found a solution after a similar question in this thread https://mail.goo

Re: [web2py] Re: sequence name issue postgresql [CLOSED]

2010-07-08 Thread Richard Vézina
THKs Richard 2010/7/8 mdipierro > just get the nightly build from the download page. I will post 1.94.1 > next week. > > On 8 Lug, 10:53, Richard Vézina wrote: > > Right on! > > > > It works! > > > > Can you point me where the mods you made are so I can copy theme on the > > stable version 1.7

[web2py] Re: How to access the checked property? Again

2010-07-08 Thread Skiros
Ok Thanks !

[web2py] Re: sequence name issue postgresql

2010-07-08 Thread mdipierro
just get the nightly build from the download page. I will post 1.94.1 next week. On 8 Lug, 10:53, Richard Vézina wrote: > Right on! > > It works! > > Can you point me where the mods you made are so I can copy theme on the > stable version 1.79.2 for deployment? > > Thanks a lot Massimo. > > Richa

[web2py] Re: Fwd: web2py prod deployment

2010-07-08 Thread mdipierro
In cube2py you can se plugin_wiki_mode='html' and you get elRTE editor. You loose the ability to embed widgets because that replies on wiki syntax. This may change. On 8 Lug, 10:47, selecta wrote: > I like it very much, however I have the requirement of adding a wiki > with a wysiwyg interface

[web2py] Re: How to access the checked property? Again

2010-07-08 Thread mdipierro
I just added it to trunk (welcome app). Please check it. On 8 Lug, 10:44, Skiros wrote: > Hello everybody ! > > Some time ago was proposed a fix to ajax function in web2py_ajax in > this post: > > http://groups.google.com/group/web2py/browse_thread/thread/35c5708111... > > Is There some definitio

[web2py] CKEditor and sanitize

2010-07-08 Thread Giuseppe Luca Scrofani
Hi all, I've "installed" CKEditor as instructions in http://www.web2pyslices.com/main/slices/take_slice/18 But when I save some html it is not rendered in the output as html, it is rendered as text with html tags. I want to disable this "sanitizing" feature, but I cant find how... Please, could you

Re: [web2py] Re: sequence name issue postgresql

2010-07-08 Thread Richard Vézina
Right on! It works! Can you point me where the mods you made are so I can copy theme on the stable version 1.79.2 for deployment? Thanks a lot Massimo. Richard 2010/7/8 mdipierro > Did you try? > > db.define_table('test_test', >Field('test_id','id'), >Field('field1'), > > Field('fiel

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-08 Thread selecta
I like it very much, however I have the requirement of adding a wiki with a wysiwyg interface, any chances on implementing that within cube2py ... maybe using elRTE or is this just not feasible? anyway nice work :) On Jul 7, 2:27 pm, mdipierro wrote: > # Preamble > > As you know T2 and T3 are dep

[web2py] Re: Fwd: web2py prod deployment

2010-07-08 Thread selecta
sorry wrong thread On Jul 8, 5:47 pm, selecta wrote: > I like it very much, however I have the requirement of adding a wiki > with a wysiwyg interface, any chances on implementing that within > cube2py ... maybe using elRTE or is this just not feasible? > anyway nice work :) > > On Jul 7, 5:21 pm

[web2py] Re: Fwd: web2py prod deployment

2010-07-08 Thread selecta
I like it very much, however I have the requirement of adding a wiki with a wysiwyg interface, any chances on implementing that within cube2py ... maybe using elRTE or is this just not feasible? anyway nice work :) On Jul 7, 5:21 pm, mdipierro wrote: > I responded to this press the upgrade bu

[web2py] How to access the checked property? Again

2010-07-08 Thread Skiros
Hello everybody ! Some time ago was proposed a fix to ajax function in web2py_ajax in this post: http://groups.google.com/group/web2py/browse_thread/thread/35c5708111d173ae/c082ffbc7bf7e2db?lnk=gst&q=checkbox+ajax#c082ffbc7bf7e2db Is There some definition about this ? Thanks !

[web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread mdipierro
I use apache + mod_wsgi and therefore there is no httpserver.log logging. I will enable it. On 8 Lug, 08:15, Iceberg wrote: > Me too experience similar issue as Rahul did. Issue:> > [sometimes, once > every few hits, it loads signifacantly slower > > > weirdest thing is when you re-click the lin

Re: [web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Thadeus Burgess
I get similar results with httperf. Web2py has over 15% 500 internal server errors, flask has none. -- Thadeus On Thu, Jul 8, 2010 at 10:17 AM, Kuba Kucharski wrote: >> The web server was restarted and the database reset in between each ab >> test > > but AFAIK ab tends to be unreliable.. it

[web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread mdipierro
This is very interesting. I have never used uwsgi and cherokee with web2py. I will try reproduce this. Massimo On 8 Lug, 09:26, Thadeus Burgess wrote: > Setup: > > Two applications that perform a simple db insert, db select, render a > template and return it. All in all this is a very small appl

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-08 Thread mdipierro
download the nigthly build from web2py.com/examples/default/dowload On 8 Lug, 09:46, Mathieu Clabaut wrote: > I guess you should update web2py from the development repository (on google > code) > > -Mathieu > > On Thu, Jul 8, 2010 at 16:40, Scott wrote: > > I just checked out the cube2py reposit

[web2py] Web2py on port 80 with non-root, setuid, possible?

2010-07-08 Thread Álvaro J . Iradier
Hi everybody, I need to run web2py integrated web server, and I'd like to run it on port 80 as a non-root user, for security reasons. Is it possible? Can web2py be started as root, and then setuid as a different user? If it's possible, I didn't find how to do it, can you point me on the right dir

[web2py] Re: sequence name issue postgresql

2010-07-08 Thread mdipierro
Did you try? db.define_table('test_test', Field('test_id','id'), Field('field1'), Field('field2'),migrate=False,sequence_name='test_test_test_id_seq') On 7 Lug, 11:01, Richard Vézina wrote: > There is a different version number for the windows build : web2py Version > 1.79.2 (2010-07-0

Re: [web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Kuba Kucharski
> The web server was restarted and the database reset in between each ab > test but AFAIK ab tends to be unreliable.. it is also my conclusion from benchmarking rocket vs cherrypy try httperf?

Re: [web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-08 Thread Mathieu Clabaut
I guess you should update web2py from the development repository (on google code) -Mathieu On Thu, Jul 8, 2010 at 16:40, Scott wrote: > I just checked out the cube2py repository from code.google.com and am > attempting to run it on the Source branch of web2py 1.79.2 (2010-06-08 > 22:45:26). At

[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-07-08 Thread Scott
I just checked out the cube2py repository from code.google.com and am attempting to run it on the Source branch of web2py 1.79.2 (2010-06-08 22:45:26). Attempting to run it generates this error: Traceback (most recent call last): File "C:\Users\scott\Documents\workspace\web2py\gluon \restricted

Re: [web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Kuba Kucharski
> - Both my develop machine (windows xp home edition with latest ServicePack), > and my production machine (a Linux), have such issue occasionally. Both > environments uses web2py's built-in server, rocket or cherrypy. Both serve no > more than 10 people or so. > @Massimo: You can check your pr

Re: [web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Thadeus Burgess
Setup: Two applications that perform a simple db insert, db select, render a template and return it. All in all this is a very small application. The application has two views, one insert/select view and one select view. Each of these views are tested separately using apache ab test. The insert v

Re: [web2py] Re: sequence name issue postgresql

2010-07-08 Thread Richard Vézina
Hello, Did I sent enough information? Richard 2010/7/7 Richard Vézina > There is a different version number for the windows build : web2py Version > 1.79.2 (2010-07-05 23:18:02) > > I download the src build since I am under linux. Maybe the problem is still > there cause of that... > > test_te

Re: [web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Iceberg
Me too experience similar issue as Rahul did. Issue: > > [sometimes, once every few hits, it loads signifacantly slower > > weirdest thing is when you re-click the link it loads instantly, when > > you left it working to load on itself, it is slow.. like 4 to > > 8seconds ] ... or even dozens of se

Re: [web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Kuba Kucharski
> What could it be? let's rule things out > - cron when it runs spikes CPU usage. DO NOT USE. In production run not the case. no cron, no cpu spikes > - web2py session lock (the the same user can only access one page at I have session.forget.. > - sqlite lock (depending on the query and the comp

[web2py] Re: WordPressClone/PyPress GAE fix

2010-07-08 Thread molhokwai
mdmcginn writes: > > I'd prefer a web2py solution, of course. but meanwhile I'm planning to > use Micolog . Micolog is > currently the most actively developed Python blog for GAE, with the > most features that work out of the box (easy themes and plugins,

[web2py] Re: JQGrid Plugin with multiple Databases

2010-07-08 Thread AsmanCom
Hi, in the editable jqgrid plugin from ebansoftware you can symply pass the db_name as string: invoice=plugin_editable_jqgrid(db_invoice.invoice,grid_name='invoice',db_name='db_invoice')) I think this is very useful, I am trying to port this functionality to your plugin, but without success right

[web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread mdipierro
Whatever the problem is it must be resolved. The strange thing is I do not experience this on my production system (~5 hits/day and distinct 1600 visitors/day). What could it be? - cron when it runs spikes CPU usage. DO NOT USE. In production run web2py cron in a separate process, not the one

[web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Rahul
All, sorry forgot to mention previously we test this in our own network (office intranet) and not the internet. The number of users testing is max 2 to 3. Thanks

[web2py] Re: web2py performance issue or rather my fault?

2010-07-08 Thread Rahul
Hi All, I have experienced a similar issue with web2py. Issue: [sometimes, once every few hits, it loads signifacantly slower weirdest thing is when you re-click the link it loads instantly, when you left it working to load on itself, it is slow.. like 4 to 8seconds ] Earlier I reported thi

[web2py] Re: Beginner Question

2010-07-08 Thread mdipierro
That is true... IS_IN_DB(db,'table.id', '%(name)s') when it build the list of options for {{=name}}... name is '%(name)s' % row since row belongs to a class that extends dict. On 8 Lug, 01:26, Jonathan Lundell wrote: > On Jul 7, 2010, at 7:29 PM, Bruno Rocha wrote: > > > Open a Python te