Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Phyo Arkar
Mercurial is way a lot more simple and Better IMO. CVS is quite outdated. On 11/21/10, mdipierro mdipie...@cs.depaul.edu wrote: admin already support mercurial. If you have it installed it will use and you can commit and check revision history. On Nov 20, 11:25 pm, luismurciano

Re: [web2py] ajax push

2010-11-21 Thread Phyo Arkar
Websocket , yeah but compatiblity for websocket is bad , not even standardized yet. Here is pure python Comet server with client framework! http://orbited.org/ and looks quite good! On 11/18/10, Michele Comitini michele.comit...@gmail.com wrote: 2010/11/18 Phyo Arkar phyo.arkarl...@gmail.com:

[web2py] python-cjson! 200 times faster than Python json!

2010-11-21 Thread Phyo Arkar
I stumble across very fast json implementation: http://pypi.python.org/pypi/python-cjson download : http://pypi.python.org/packages/source/p/python-cjson/python-cjson-1.0.5.tar.gz I gonna check out the api and see if i can implement in web2py.

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Branko Vukelic
On Sun, Nov 21, 2010 at 1:16 AM, blackthorne francisco@gmail.com wrote: hey, also consider: - mobile view - good for keep updated on ticket reporting and so on... I don't own a capable mobile device, so I'll leave that as a homework for someone else :) - integrated SQL designer It

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Branko Vukelic
On Sun, Nov 21, 2010 at 12:32 AM, mdipierro mdipie...@cs.depaul.edu wrote: Notice that admin is an app and it can be replaced. Well, yeah. I think it'd be best if we made an app called 'admin2'. Is it possible to run another admin app from within the current admin? Or maybe offer an option when

[web2py] Re: Suggested web2py layout for iPhone/iPad?

2010-11-21 Thread Luther Goh Lu Feng
Indeed with the proliferation of mobile devices and mobile web apps, it will be good if there are good mobile themes for web2py. I haven't found the time to test how the current one looks on mobile devices though. On Nov 20, 4:20 pm, David Mitchell monch1...@gmail.com wrote: Hello all, Is

Re: [web2py] Re: Admin comments

2010-11-21 Thread Kenneth Lundström
I have tried 2 or 3 different layouts, non of them worked. Which files are updated? Is it possible from the Admin to change the layout later on? Kenneth Is this for one particular layout? On Nov 20, 8:53 am, Kenneth Lundströmkenneth.t.lundst...@gmail.com wrote: because edit is more

[web2py] After-method Execution

2010-11-21 Thread Ishbir
Hey there, So what I want is that a function/line of code should execute AFTER a controller function has thrown out all the output. What I have is a download function; I'm trying to keep track of open/ closed connections. Users would be downloading big files; like 200-400MB. So, I want to know

[web2py] Re: Calling controller function

2010-11-21 Thread Ishbir
I am not very sure about the first approach; but with the second approach, you are not passing the variable and regardless of that, you don't have any argument for a controller function. It should be something like- image1 = FORM (TABLE (TR(TD(INPUT(_type = submit, _value =

[web2py] Re: set session variable by javascript?

2010-11-21 Thread Ishbir
Web2py uses server side sessions; so it is not possible to do this. What you can do, however, is call a controller function which sets the session variable. On Nov 21, 1:54 pm, beroz abeer.elsa...@gmail.com wrote: Hello, How could I set value for a variable in session in javascript function?

[web2py] Calling controller function

2010-11-21 Thread beroz
Dear Sir, I got stuck in something.. I want to call a controller function _onclick of a submit field. For example : I used two ways: 1. image1 = FORM (TABLE (TR(TD(INPUT(_type = submit, _value = delete,_id=delete_button , _onclick= delete_image(id) OR: image1 = FORM (TABLE

[web2py] set session variable by javascript?

2010-11-21 Thread beroz
Hello, How could I set value for a variable in session in javascript function? Example: image1.element(_type='submit')['_onclick'] =javascript: {{session.x = 5}}

Re: [web2py] After-method Execution

2010-11-21 Thread Branko Vukelic
On Sun, Nov 21, 2010 at 11:40 AM, Ishbir ishbi...@gmail.com wrote: What I have is a download function; I'm trying to keep track of open/ closed connections. Users would be downloading big files; like 200-400MB. So, I want to know how many connections have been opened by the user and how many

Re: [web2py] very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread Branko Vukelic
On Sun, Nov 21, 2010 at 3:23 AM, Bruno Rocha rochacbr...@gmail.com wrote: examples loads google groups and google code RSS, Welcome loads Jquery from cdn.google, admin loads twitter feed and update/upgrade information. can be that. Admin will load the whole page before it gets to loading the

[web2py] Wizard generated 100 random users after each registrtion?

2010-11-21 Thread Dan
Hi, why is the new wizard generating 100 random users after someone registers a new user account? How can I disable the feature? Some sample data: 1 PatacoceSomadadumacet...@exam... 2010-11-21 12:21:08 2010-11-21 12:21:08197 diagram. ...

[web2py] Re: Wizard generated 100 random users after each registrtion?

2010-11-21 Thread Dan
I found out that the random users come from: db_wizard_populate.py -- from gluon.contrib.populate import populate if not db(db.auth_user).count(): populate(db.auth_user,100) Why is that needed? On 21 Nov., 13:11, Dan d...@imojo.de wrote: Hi, why is the new wizard

[web2py] Re: Calling controller function

2010-11-21 Thread mdipierro
image1 = FORM (TABLE (TR(TD(INPUT(_type = submit, _value = delete,_id=delete_button , _onclick=ajax('%s',[],''); jQuery(this).hide(); % (str(URL('delete_image',args=image.id))) ) Controller function- def delete_image(): id = request.args(0) db(db.image.id==id).delete()

[web2py] Re: set session variable by javascript?

2010-11-21 Thread mdipierro
and it were possible would be considered a vulnerbility. You can do image1.element(_type='submit')['_onclick'] =ajax('{{=URL('set',args=5)}}',[],'') and serverside def set(): session.x=int(request.args(0)) On Nov 21, 4:47 am, Ishbir ishbi...@gmail.com wrote: Web2py uses server side

[web2py] Re: After-method Execution

2010-11-21 Thread mdipierro
LOL @ishbir, You do not have to answer this question. Massimo On Nov 21, 5:05 am, Branko Vukelic bg.bra...@gmail.com wrote: On Sun, Nov 21, 2010 at 11:40 AM, Ishbir ishbi...@gmail.com wrote: What I have is a download function; I'm trying to keep track of open/ closed connections. Users

[web2py] Re: python-cjson! 200 times faster than Python json!

2010-11-21 Thread mdipierro
Even simplesjon has a c version that is faster than the one that ships with web2py (pure Python). On Nov 21, 2:41 am, Phyo Arkar phyo.arkarl...@gmail.com wrote: I stumble across very fast json implementation: http://pypi.python.org/pypi/python-cjson download

[web2py] Re: Wizard generated 100 random users after each registrtion?

2010-11-21 Thread mdipierro
You can disable this. There is a checkbox in the last page of the wizard. On Nov 21, 6:51 am, Dan d...@imojo.de wrote: I found out that the random users come from: db_wizard_populate.py -- from gluon.contrib.populate import populate if not db(db.auth_user).count():      

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Jason Brower
Yeah, it's a closed and controlled environment and even the most basic browser that we would be developing for can suuport these features. On Sun, 2010-11-21 at 10:45 +0100, Branko Vukelic wrote: On Sun, Nov 21, 2010 at 12:32 AM, mdipierro mdipie...@cs.depaul.edu wrote: Notice that admin is

[web2py] function

2010-11-21 Thread tan le
i have 2 function in controler/vnstoragedoc.py def check(type1,type2,type3): query1 = db.archives.symbol.like('%'+request.vars.txtSoKyHieu+'%') query2 = db.archives.key.like('%'+request.vars.txtTuKhoa+'%') query3 = db.archives.archives_type ==

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Branko Vukelic
Anyhow, Massimo, what's your schedule for 2.0? Also, does anyone want to work on the backend in the admin2? I think the most urgent first step would be to add support for switching admin interfaces when web2py is stated (at least as a command line option). That would allow us to test admin2

[web2py] Re: function

2010-11-21 Thread mdipierro
I think something like this: notice not all options are covered. def check(type1,type2,type3): query1 = db.archives.symbol.like('%'+request.vars.txtSoKyHieu+'%') query2 = db.archives.key.like('%'+request.vars.txtTuKhoa +'%') query3 =

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Branko Vukelic
Another idea: move database administration (the one that's in default app right now) into admin interface? Is there a reason why it's not part of admin? -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://www.brankovukelic.com/ Check out my portfolio:

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Branko Vukelic
Under maintenance switch. That's not a bad idea for production sites. Maybe there is a cheap trick like making an index.html file in /static and renaming it to index.html.disabled when the under maintenance switch is turned off. On Sun, Nov 21, 2010 at 7:30 PM, Luis Díaz diazluis2...@gmail.com

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Luis Díaz
other suggestions: button to temporarily disable the application mind, but which allows run on 127.0.0.1 in this way could work in the system and the visitor would see that the system is under maintenance -- Díaz Luis TSU Analisis de Sistemas Universidad de Carabobo

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread selecta
I have problems when I call the same page with multiple browsers at the same time. As soon as i close all but one browser the page loads. ... but thinking about it this should be unrelated On Nov 21, 2:50 am, Carlos carlosgali...@gmail.com wrote: Hi, Why do IE (v. 8) and Firefox (v. 3.6 with

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Jonathan Lundell
On Nov 21, 2010, at 10:38 AM, Branko Vukelic wrote: Under maintenance switch. That's not a bad idea for production sites. Maybe there is a cheap trick like making an index.html file in /static and renaming it to index.html.disabled when the under maintenance switch is turned off. This could

[web2py] Admin password change 1.88.2

2010-11-21 Thread DJ
Can't change admin password in new version. See traceback below.. -- VERSION web2py™ Version 1.88.2 (2010-10-29 23:04:43) Python Python 2.5.2: /usr/bin/python TRACEBACK Traceback (most recent call last): File /home/www-data/web2py/gluon/restricted.py, line 188, in restricted exec

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread Anthony
Same thing here (actually, I think it happens even when loading a different web2py app in another browser). Anthony On Nov 21, 2:11 pm, David Marko dma...@tiscali.cz wrote: ### I have problems when I call the same page with multiple browsers at the same time. I can see the same problem. I use

[web2py] Re: Admin password change 1.88.2

2010-11-21 Thread mdipierro
fixed in trunk now. On Nov 21, 2:16 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com wrote: I m getting the exact same error, on 1.89.4 and python 2.6.5 Apache, linux, mod_wsgi, mysql Kenneth Can't change admin password in new version. See traceback below.. -- VERSION

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Luis Díaz
other suggestions: a mini database administrator PostgreSQL / MySQL or another. I mean: one uses SQLite because it does not require any configuration or MySQL as the hosting is provided. would be great in the admin web2py have an assistant you can connect, create and delete easily PostgreSQL

Re: [web2py] Admin password change 1.88.2

2010-11-21 Thread Kenneth Lundström
I´m getting the exact same error, on 1.89.4 and python 2.6.5 Apache, linux, mod_wsgi, mysql Kenneth Can't change admin password in new version. See traceback below.. -- VERSION web2py™ Version 1.88.2 (2010-10-29 23:04:43) Python Python 2.5.2: /usr/bin/python TRACEBACK Traceback

Re: [web2py] Re: python-cjson! 200 times faster than Python json!

2010-11-21 Thread Phyo Arkar
Lol, Facepalmed I gonna look for c version of simple json. Coz seralizing a table with 80 fields is quite slow.. On 11/21/10, G. Clifford Williams g...@notadiscussion.com wrote: On Sun, Nov 21, 2010 at 05:26:32AM -0800, mdipierro spake: Even simplesjon has a c version that is faster than the

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread Phyo Arkar
Have you guys made jquery load locally instead of google's CDN ? Still happening? For me it fixed after i fixed to load jquery locally. On 11/22/10, Anthony abasta...@gmail.com wrote: Same thing here (actually, I think it happens even when loading a different web2py app in another browser).

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread Anthony
Yes, I'm running trunk, which Massimo already updated to run jQuery locally. On Nov 21, 4:16 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: Have you guys made jquery load locally instead of google's CDN ? Still happening? For me it fixed after i fixed to load jquery locally. On 11/22/10,

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread David Marko
### I have problems when I call the same page with multiple browsers at the same time. I can see the same problem. I use Chrome as primary browser. Then when I try to test the page in other browsers(FF, MSIE etc.) the page load time is very, very slow. David On 21 lis, 20:00, selecta

[web2py] Limit Related Field Dropdown List

2010-11-21 Thread Joe J
Hi All, Say I have a pet table and an owner table related to each other in a one to many relationship (one owner has many pets). Each owner can also define several pet types of their choosing. db.create_table('owner', Field('name', text)) db.create_table('pet_type',

[web2py] Re: Suggested web2py layout for iPhone/iPad?

2010-11-21 Thread Christopher Steel
You can integrate iWebkit into Web2py fairly easily. I did this a while back. I am not certain, but some of the icons in iWebkit looked a bit too good, almost, um, proprietary. I am not sure about the rest of the code, but it works just fine when integrated into Web2py. In the iWebkit demo folder

[web2py] web2py 1.89.5 is OUT

2010-11-21 Thread mdipierro
minor bug fixes, addressing some of the recently raised issues, please check it and report any open issue.

Re: [web2py] Limit Related Field Dropdown List

2010-11-21 Thread Bernardo Botella Corbí
Hi Joe, I don't know if I understood well. I think that you are trying to do a drop list, putting in it the pet_type belonging to an owner? In that case, in this thread:

[web2py] Re: web2py admin 2.0

2010-11-21 Thread blackthorne
- on the mobile view, just leave room for themes. That shall be enough... -update option for each app, so that you can see for each application if there is a new version of it and update it in a one-click button almost forgot: file manager! this would be nice.. Thank you, Best regards On Nov

[web2py] Re: Limit Related Field Dropdown List

2010-11-21 Thread Joe J
Thank you very much Bernardo. I'll have a look through that documentation and see what I can put together. Joe On Nov 21, 5:33 pm, Bernardo Botella Corbí estem...@gmail.com wrote: Hi Joe, I don't know if I understood well. I think that you are trying to do a drop list, putting in it the

[web2py] Re: unable to install application

2010-11-21 Thread Will Stevens
Are there any suggestions to get this working? Thanks, Will On Nov 19, 4:10 pm, Will Stevens williamstev...@gmail.com wrote: not initially when I download and unzip the source code.  however as soon as I run the command 'python web2py.py', the NEWINSTALL file goes away and the folder

[web2py] how do I load a database CSV dump into GAE?

2010-11-21 Thread olifante
Hi everybody, I'm having trouble finding out what is the appropriate way to load data into a web2py webapp running on GAE. I created a script that parses some files and inserts data into a local web2py instance using web2py -S myapp -M -R myscript.py, but I see no way of doing the same either for

[web2py] Re: unable to install application

2010-11-21 Thread mdipierro
It is a plugin, not an application. Are you installing it as an application from the /site page? That would be wrong. On Nov 19, 3:10 pm, Will Stevens williamstev...@gmail.com wrote: not initially when I download and unzip the source code.  however as soon as I run the command 'python

Re: [web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread Phyo Arkar
I tested , opened 20 welcome pages atonce , and also my application at once. No slow down (not trunk but i commented out google cdn jquerys). So that fixed for me. On Mon, Nov 22, 2010 at 4:15 AM, Anthony abasta...@gmail.com wrote: Yes, I'm running trunk, which Massimo already updated to run

[web2py] Re: very long wait for http://127.0.0.1:8000/ on IE and Firefox browsers

2010-11-21 Thread Anthony
On Nov 21, 9:48 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: I tested , opened 20 welcome pages atonce , and also my application at once. No slow down (not trunk but i commented out google cdn jquerys). So that fixed for me. Which OS and browser? I'm on Windows 7, and the problem is mostly

[web2py] tables created dynamically

2010-11-21 Thread mart
Hi, I need to create some tables dynamically (SQLite). Creating them is fine, but when comes time to use, well that just isn't working... I'm doing this to for some automation where I don't know in advance how many tables will be created or even what they will be called... I tried a few things,

[web2py] Re: tables created dynamically

2010-11-21 Thread mdipierro
This line if 'P4Sync' in pTable: will never work. What is it supposed to do? On Nov 21, 10:39 pm, mart msenecal...@gmail.com wrote: Hi, I need to create some tables dynamically (SQLite). Creating them is fine, but when comes time to use, well that just isn't working... I'm doing this to

[web2py] Re: tables created dynamically

2010-11-21 Thread mart
oh, sorry... So, for every individual sync (or pull) action from any given repository, i want to log which file was synced, its size, its revision number, changelist (or changeset) number, the src/dest mapping, etc... So, I would like the automation to create one table per sync task (or any

Re: [web2py] Re: web2py admin 2.0

2010-11-21 Thread Branko Vukelic
On Mon, Nov 22, 2010 at 12:53 AM, blackthorne francisco@gmail.com wrote: - on the mobile view, just leave room for themes. That shall be enough... admin2 will be rather complex, so theming it at that level will be difficult, I think. The HTML structure necessary for this type of app is