[web2py] Re: Migration issue with appadmin

2010-03-28 Thread Thadeus Burgess
Here is the correct older appadmin.html http://pastebin.com/FT632P1A -Thadeus On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess thade...@thadeusb.com wrote: I just upgraded web2py, and have ran into an issue with web2py. Using an older version of appadmin, http://pastebin.com/jSnLT2Ua

Re: [web2py] Re: googling web2py

2010-03-28 Thread Alex Fanjul
107K from Spain. alex El 28/03/2010 5:04, mr.freeze escribió: I was getting 108k in Texas but it jumped to 607k after clearing the browser cache. On Mar 27, 9:55 pm, mdipierromdipie...@cs.depaul.edu wrote: this is odd. When I do http://www.google.co.jp/search?q=web2py 1 - 10 su circa

[web2py] Re: JqGrid Plugin

2010-03-28 Thread parroit
Thank you. Yes, I can merge with it. I look at the existing jqgrid plugin files. I'll add the search feature and the parameters for columns width, names etc... I'll add a post here when I'll done with the work. Bye Andrea On 28 Mar, 03:18, mdipierro mdipie...@cs.depaul.edu wrote: I looked at

[web2py] Re: first attempt to use mysql web2py = unknown field type: INTEGER

2010-03-28 Thread DenesL
Depending on your table definitions you still have two options: 1) If your tables define a primary key on an integer field not named 'id' you can alias it: http://groups.google.com/group/web2py/msg/86838b9b792a236e 2) If your tables define multiple fields as primary key you could still use them

[web2py] Re: googling web2py

2010-03-28 Thread toan75
I was getting 657.000 in Vietnam On 28 Tháng Ba, 10:04, mr.freeze nat...@freezable.com wrote: I was getting 108k in Texas but it jumped to 607k after clearing the browser cache. On Mar 27, 9:55 pm, mdipierro mdipie...@cs.depaul.edu wrote: this is odd. When I do

Re: [web2py] googling web2py

2010-03-28 Thread Alfonso de la Guarda
Hello, 110,000 from Perú Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net http://alfonsodg.net Telef. 991935157 1024D/B23B24A4 5469 ED92 75A3 BBDB FD6B 58A5 54A1 851D B23B 24A4 On Sat, Mar 27, 2010 at 21:23, mdipierro

[web2py] Re: response.headers web2py-component-command is being cut short

2010-03-28 Thread DenesL
This makes an interesting read http://ajaxpatterns.org/On-Demand_Javascript -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to

Re: [web2py] Re: googling web2py

2010-03-28 Thread Tito Garrido
*108.000 from Brazil* On Sun, Mar 28, 2010 at 10:13 AM, Mengu whalb...@gmail.com wrote: 109K from Turkey. On 28 Mart, 15:14, Alfonso de la Guarda alfons...@gmail.com wrote: Hello, 110,000 from Perú Alfonso de la Guarda Centro Open

[web2py] Re: JqGrid Plugin

2010-03-28 Thread mdipierro
:-) On Mar 28, 4:04 am, parroit andrea.par...@ebansoftware.net wrote: Thank you. Yes, I can merge with it. I look at the existing jqgrid plugin files. I'll add the search feature and the parameters for columns width, names etc... I'll add a post here when I'll done with the work. Bye

[web2py] Re: Cache - how to prevent session object to be cached?

2010-03-28 Thread mdipierro
No. and frankly I do not understand why it behaves it this way. You are doing something I never thought of: caching a constructor instead of a function. I will check this. Massimo On Mar 28, 5:33 am, David Zejda d...@atlas.cz wrote: Please, look at the trivial controller: class Blah:     def

[web2py] Re: turnkeylinux help

2010-03-28 Thread JC11
Is there any progress on turnkey or a vmware appliance for web2py ? I have been trying - and failing to install web2py on our (old) Red Hat Linux that has a very old Python version. A vmware appliance would be ideal. Anything I can do to help ? John C. On Mar 21, 4:21 pm, Mark Breedveld

[web2py] Re: turnkeylinux help

2010-03-28 Thread mdipierro
Slow progress on my side because I have been distracted but, the instructions in this video http://www.vimeo.com/10377947 work with any ubuntu vmware appliance whether or not it is deplyed on vps.net or not. Massimo On Mar 28, 9:41 am, JC11 john.c...@gmail.com wrote: Is there any progress

[web2py] Re: JqGrid Plugin

2010-03-28 Thread ont.rif
:-) same bug as for http://groups.google.ru/group/web2py/browse_thread/thread/96877110aa87f20c/83536771ac515f8c#83536771ac515f8c I have found intresting feature for JqGrid 3.5.2 http://blogs.teamb.com/craigstuntz/2010/02/08/38548/ May be it is useful to add this option to this plugin ? On 28

[web2py] Re: Migration issue with appadmin

2010-03-28 Thread mr.freeze
It might be nice to have an option in admin to 'upgrade' (copy over) appadmin.py and appadmin.html from welcome to your app. On Mar 28, 1:33 am, Thadeus Burgess thade...@thadeusb.com wrote: Here is the correct older appadmin.html http://pastebin.com/FT632P1A -Thadeus On Sat, Mar 27, 2010

[web2py] Can't use db in InteractiveConsole

2010-03-28 Thread Matthew
I'm trying to use web2py in the interactive console, but I'm getting NameErrors when accessing 'db'. The strange thing is, just a few days ago I was able to do this. Here is what I'm running: python web2py.py -S myapp from gluon.sql import * rows = db(db.mytable.id 0) Traceback (most recent

[web2py] Re: problems using web2py ajax function

2010-03-28 Thread salbefe
Thanks, Now is clear to me. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit

[web2py] Re: Migration issue with appadmin

2010-03-28 Thread mdipierro
I agree. It could be done in two steps. 1) when welcome.w2p is built also build web2py.plugin.appadmin.w2p which contains models/appadmin.html and views/appadmin.html 2) upgrade whould be done by applying the plugin. Massimo On Mar 28, 9:59 am, mr.freeze nat...@freezable.com wrote: It might

[web2py] Re: Can't use db in InteractiveConsole

2010-03-28 Thread mdipierro
python web2py.py -S myapp -M On Mar 28, 10:05 am, Matthew matthew.g.nor...@gmail.com wrote: I'm trying to use web2py in the interactive console, but I'm getting NameErrors when accessing 'db'. The strange thing is, just a few days ago I was able to do this. Here is what I'm running: python

[web2py] Re: problems using web2py ajax function

2010-03-28 Thread mdipierro
Normally if I want to pass a constant, I put it in a hidden field and then pass the name of the hidden field. On Mar 28, 10:14 am, salbefe salb...@gmail.com wrote: Thanks, Now is clear to me. -- You received this message because you are subscribed to the Google Groups web2py-users group. To

Re: [web2py] Can't use db in InteractiveConsole

2010-03-28 Thread Jason Lotz
You don't need to run the import as web2py will automatically import the required modules. Your error comes because you haven't defined your 'db' variable. You must first define your 'db' variable which defines the connection to the database. Example: db = DAL('sqlite://database') rows =

Re: [web2py] Re: global name 'cx_Oracle' is not defined

2010-03-28 Thread Jason Lotz
Thanks Massimo!! Sure enough that was the problem. Once I removed the windows binary and ran web2py from the source version it recognized the cx_Oracle driver. Jay On 03/28/2010 01:10 PM, mdipierro wrote: The problem seems to be that web2py is not finding the module. I do not think this

Re: [web2py] Re: googling web2py

2010-03-28 Thread Tiago Almeida
110K Portugal --- On Sun, Mar 28, 2010 at 2:48 PM, Tito Garrido titogarr...@gmail.com wrote: *108.000 from Brazil* On Sun, Mar 28, 2010 at 10:13 AM, Mengu whalb...@gmail.com wrote: 109K from Turkey. On 28 Mart, 15:14, Alfonso de la Guarda alfons...@gmail.com wrote: Hello, 110,000

[web2py] Re: Migration issue with appadmin

2010-03-28 Thread mr.freeze
What about just having another link in 'admin/default/site' ? : [ EDIT | about | errors | clean | pack all | compile | uninstall | upgrade ] It could take you to a page that lets you pick things to upgrade: appadmin.py appadmin.html web2py_ajax.html base.css jquery.js etc... You could

[web2py] Re: as_list returns an isoformated time as_dict returns a datetime.time?

2010-03-28 Thread Iceberg
Did not really try it yet, just look into the source code here [1]. So there are actually three relevant places: Row.as_dict(...,datetime_to_str=False) # was datetime_to_str=True Rows.as_dict(...,datetime_to_str=True) # did not change this time Rows.as_list(...,datetime_to_str=True) # did

[web2py] Re: Can't use db in InteractiveConsole

2010-03-28 Thread Matthew
Thanks! I've added this to my notes. On Mar 28, 11:23 am, mdipierro mdipie...@cs.depaul.edu wrote: python web2py.py -S myapp  -M On Mar 28, 10:05 am, Matthew matthew.g.nor...@gmail.com wrote: I'm trying to use web2py in the interactive console, but I'm getting NameErrors when accessing

[web2py] Re: Migration issue with appadmin

2010-03-28 Thread mdipierro
That assumes welcome is installed. Also future apps may not have the same files. Backward compatibility does not mean all scaffolding apps will have the same structure. Massimo On Mar 28, 10:53 am, mr.freeze nat...@freezable.com wrote: What about just having another link in 'admin/default/site'

Re: [web2py] Re: Migration issue with appadmin

2010-03-28 Thread Thadeus Burgess
The check could be easy, just MD5 the file. It shouldn't upgrade if the file doesn't exist either. However if you are picking what to upgrade, I guess then it doesn't matter *unless you forgot!* I also would like a way to upgrade my web2py version without it updating welcome and examples apps.

[web2py] Re: zengarden anybody?

2010-03-28 Thread Yarko Tymciurak
A few points I would make (as I write this, I am aware this probably should be moved to the development list): - ez.css is no more than a layout / framing convention; - staying compatible is easy (and it provides simple layout control); - it uses a useful convention of css class nameing,

[web2py] Re: Migration issue with appadmin

2010-03-28 Thread mdipierro
I was thinking, why was appadmin never made part of admin ? Until 2 years django had one admin (loosely speaking the corresponding or web2py appadmin) for all the apps in a project. That was one the major limitations that web2py tried to overcome by making appadmin part of the apps and allow

[web2py] Re: googling web2py

2010-03-28 Thread andrej burja
109 000 from Slovenia On 28 mar., 15:48, Tito Garrido titogarr...@gmail.com wrote: *108.000 from Brazil* On Sun, Mar 28, 2010 at 10:13 AM, Mengu whalb...@gmail.com wrote: 109K from Turkey. On 28 Mart, 15:14, Alfonso de la Guarda alfons...@gmail.com wrote: Hello, 110,000 from

[web2py] Re: googling web2py

2010-03-28 Thread mdipierro
It seems to be a two state system (~100K vs ~600K). I wonder what triggers one state vs the other. I do not see a pattern. Massimo On Mar 28, 10:32 am, andrej burja andrej.bu...@gmail.com wrote: 109 000 from Slovenia On 28 mar., 15:48, Tito Garrido titogarr...@gmail.com wrote: *108.000

[web2py] Re: Web2Py Book application

2010-03-28 Thread rfx_labs
Hi Massimo any news on the (potential) release date? On 3 Mrz., 17:57, mdipierro mdipie...@cs.depaul.edu wrote: I will post it but I want to clean it up first. It was written a bit in a hurry. -- You received this message because you are subscribed to the Google Groups web2py-users group.

[web2py] Re: new on web2pyslices: aggregate search

2010-03-28 Thread Yarko Tymciurak
Nice... I did a test search on the recent question on reset_password_key --- I think this is going to be useful! 2 q / 1 c: C: Maybe updating button texts would be nice (e.g.: search web2py slices;search web2py sites) Q: Are you going to update your slices source w2p at some point?

[web2py] Re: new on web2pyslices: aggregate search

2010-03-28 Thread mr.freeze
C: Good idea, done. Q: Yes. I'll try to figure out a slick way to make the active source available at google code without exposing sensitive data. General Q: Haven't tried it but this looks promising: http://bitbucket.org/mchaput/whoosh/wiki/Home On Mar 28, 1:06 pm, Yarko Tymciurak

Re: [web2py] Re: googling web2py

2010-03-28 Thread Jonathan Lundell
On Mar 28, 2010, at 10:51 AM, mdipierro wrote: It seems to be a two state system (~100K vs ~600K). I wonder what triggers one state vs the other. I do not see a pattern. From the US, a search for web2py gives me 712,000 results, while +web2py or web2py gives 109,000. Unfortunately, Google

[web2py] Re: googling web2py

2010-03-28 Thread villas
Portugal 102K -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at

[web2py] Re: googling web2py

2010-03-28 Thread Yarko Tymciurak
I do not think so; I think there are more degrees involved - I get 109,000 in Chicago (google chrome or firefox 3.5.8) I get similar results with advanced search; I think this must have something to do with things like: available local Google server cache; local Google server default

[web2py] Re: new on web2pyslices: aggregate search

2010-03-28 Thread Yarko Tymciurak
On Mar 28, 1:27 pm, mr.freeze nat...@freezable.com wrote: C: Good idea, done. Q: Yes. I'll try to figure out a slick way to make the active source available at google code without exposing sensitive data. General Q: Haven't tried it but this looks

Re: [web2py] Re: googling web2py

2010-03-28 Thread Jonathan Lundell
On Mar 28, 2010, at 11:28 AM, Jonathan Lundell wrote: On Mar 28, 2010, at 10:51 AM, mdipierro wrote: It seems to be a two state system (~100K vs ~600K). I wonder what triggers one state vs the other. I do not see a pattern. From the US, a search for web2py gives me 712,000 results, while

[web2py] Re: web2py production deployment on vps.net (VIDEO)

2010-03-28 Thread mdipierro
good idea On Mar 24, 5:51 pm, Albert Abril albert.ab...@gmail.com wrote: Worked correctly with a 8.04 LTS clean and basic installation. Should I open a new thread about testing the script? On Wed, Mar 24, 2010 at 8:49 PM, Albert Abril albert.ab...@gmail.comwrote: I don't know if it's my

Re: [web2py] Re: new on web2pyslices: aggregate search

2010-03-28 Thread Thadeus Burgess
I have started storing most of those settings in the database, everything except the DAL connection string goes into a table called settings. I cache the select of the whole settings table indefinitely unless a value changes. This allows me to version control my application on google code

Re: [web2py] Re: googling web2py

2010-03-28 Thread Jonathan Lundell
On Mar 28, 2010, at 11:28 AM, Jonathan Lundell wrote: On Mar 28, 2010, at 10:51 AM, mdipierro wrote: It seems to be a two state system (~100K vs ~600K). I wonder what triggers one state vs the other. I do not see a pattern. From the US, a search for web2py gives me 712,000 results, while

[web2py] Re: Cache - how to prevent session object to be cached?

2010-03-28 Thread David Zejda
Hi Massimo, i touched it to cache function instead of constructor: class Blah: def sessiontime(self): return session.ctime def cache_test(): import time session.ctime = time.ctime() def blah(): return Blah() b = cache.ram('blah',blah,30) return

[web2py] Re: webserver slow, misreported

2010-03-28 Thread Michael Toomim
Any idea why there is a discrepancy between Firebug and httpserver.log? I am using postgresql. What would indicate model complexity? I have around 9 tables, but most of the requests just do single-object selects and inserts. No complex joins are in public-facing pages, but myself as an

[web2py] Re: webserver slow, misreported

2010-03-28 Thread mdipierro
On Mar 28, 3:46 pm, Michael Toomim too...@gmail.com wrote: Any idea why there is a discrepancy between Firebug and httpserver.log? httpserver.log logs the time spend in web2py, not including the time for sending and receiving the http request/response. firebug logs the the total time,

[web2py] Re: webserver slow, misreported

2010-03-28 Thread mdipierro
One more thing. You ask But a single process doing complex joins should not slow down all other simple selects and inserts, right? no, except for sqlite. sqlite serializes all requests because locks the db. That could explain the 0.20s if you have lots of queries per request, but not the 54s

[web2py] Re: googling web2py

2010-03-28 Thread Pepe
Chile: Results 1 - 10 of about 110,000 for web2py. - On Mar 28, 4:08 pm, Jonathan Lundell jlund...@pobox.com wrote: On Mar 28, 2010, at 11:28 AM, Jonathan Lundell wrote: On Mar 28, 2010, at 10:51 AM, mdipierro wrote: It seems to be a two state system (~100K vs ~600K). I wonder what

[web2py] Re: googling web2py

2010-03-28 Thread ciastek
Poland - 109000 -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group

[web2py] Re: googling web2py

2010-03-28 Thread Zphen
655,000 from Australia... On Mar 28, 12:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: When you google web2py how may hits do you get? from which country? When I do it from the US I get ~106,000. The number has been steady for one year. Before that is was much higher ~600,000. When I did

[web2py] Re: googling web2py

2010-03-28 Thread Zphen
655,000 from Australia... On Mar 28, 12:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: When you google web2py how may hits do you get? from which country? When I do it from the US I get ~106,000. The number has been steady for one year. Before that is was much higher ~600,000. When I did

[web2py] datetime and represent

2010-03-28 Thread Avik Basu
I would like to use the represent function on a datetime object, like so: from datetime import * db.define_table(adate, Field(date,datetime, represent = lambda x: x.strftime(%a %m-%d-%y) if x else 'No time' #convert datetime object to string ) ) This works when I create a form,

[web2py] Re: datetime and represent

2010-03-28 Thread mdipierro
It is possible you chaged the type of this field from 'string' to 'datetime' and because sqlite does not support migrations, you may have still string data in the datetime field. I suggest you delete those records that contain corrupted data. Massimo On Mar 28, 4:54 pm, Avik Basu

[web2py] excellent video tutorial

2010-03-28 Thread Massimo Di Pierro
I found this: http://www.youtube.com/watch?v=RVh2viuBooQ it is in Japanese, but very understandable. -- You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group,

[web2py] Re: excellent video tutorial

2010-03-28 Thread mr.freeze
Cool. Oh how I wish the web2py logo was on the splash screen when you start web2py :) On Mar 28, 5:38 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: I found this: http://www.youtube.com/watch?v=RVh2viuBooQ it is in Japanese, but very understandable. -- You received this message

Re: [web2py] For your knowledge

2010-03-28 Thread Tiago Almeida
Thanks for sharing this. :) Best regards, Tiago On Thu, Mar 25, 2010 at 4:38 AM, Thadeus Burgess thade...@thadeusb.comwrote: http://academicearth.org/courses/building-dynamic-websites -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users

[web2py] Re: datetime and represent

2010-03-28 Thread Avik Basu
I dropped all the records in the table and still get the same result. I replaced the previous represent with: represent = lambda x: type(x) which shows that the records are in fact of type datetime as opposed to string. could the issue be in the rendering of tables in appadmin? Avik On Mar

[web2py] Re: datetime and represent

2010-03-28 Thread mdipierro
I see. I think what you are seeing is due to a bug. I have fixed this bug but I do not recall if it is fixed in only in trunk or also in 1.76.5. Which web2py version do you use? Massimo On Mar 28, 6:18 pm, Avik Basu avikb...@gmail.com wrote: I dropped all the records in the table and still get

[web2py] Re: datetime and represent

2010-03-28 Thread Avik Basu
I'm still way back on 1.75.4, but can't upgrade because my IP seems to be blocked from accessing web2py.com. Avik On Mar 28, 7:32 pm, mdipierro mdipie...@cs.depaul.edu wrote: I see. I think what you are seeing is due to a bug. I have fixed this bug but I do not recall if it is fixed in only in

[web2py] Re: Fwd: web2py developers list

2010-03-28 Thread Julio
In the oven: http://www.techfuel.net/zblog/blog/view/26 On Mar 22, 12:00 pm, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: We need a web site to do this: - allow people to register as web2py developers, web2py clients,   web2py sponsors - everybody can post a profile - clients can rate

[web2py] Re: For your knowledge

2010-03-28 Thread Richard
there's a lot there - can you recommend which are worthwhile? On Mar 25, 2:38 pm, Thadeus Burgess thade...@thadeusb.com wrote: http://academicearth.org/courses/building-dynamic-websites -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users

[web2py] Re: googling web2py

2010-03-28 Thread Richard
Am also getting 655,000 from Australia. On Mar 29, 8:44 am, Zphen sluk...@gmail.com wrote: 655,000 from Australia... On Mar 28, 12:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: When you google web2py how may hits do you get? from which country? When I do it from the US I get ~106,000.

[web2py] Re: problem with migrating a sqlite db

2010-03-28 Thread Peter Etchells
Thanks for your comment, Yarko I had disabled the table references because the anki (non-web2py) database has over 20 tables, including two tables that cross-reference each other. I did not need those references for my purposes, hence the integer fields. I was able to successfully update the

[web2py] Re: problems using web2py ajax function

2010-03-28 Thread Russell
Is there a reason not to simply place the constant in the args? ajax('show_month/3',[],'test') or if you want to be explicit... ajax('show_month?month_to_show=3',[],'test') On Mar 29, 4:24 am, mdipierro mdipie...@cs.depaul.edu wrote: Normally if I want to pass a constant, I put it in a hidden

[web2py] Re: problem with migrating a sqlite db

2010-03-28 Thread Peter Etchells
finger trouble... but this update did not work: ( I may have mistyped the below, but something like it ran error-free, but no changes) dx.fields[otherfield.first()]=dict(value=db.staging[row.staging.id].English) I don't know if the negative ids were a factor - Peter E -- You received this

[web2py] Re: datetime and represent

2010-03-28 Thread mdipierro
If you run from source you can upgrade from google. Or email me your ip. On Mar 28, 7:08 pm, Avik Basu avikb...@gmail.com wrote: I'm still way back on 1.75.4, but can't upgrade because my IP seems to be blocked from accessing web2py.com. Avik On Mar 28, 7:32 pm, mdipierro

[web2py] Re: problems using web2py ajax function

2010-03-28 Thread mdipierro
I think you can. I have not tried it. Mind that you have to ecape the args. On Mar 28, 7:56 pm, Russell russell.mcmur...@gmail.com wrote: Is there a reason not to simply place the constant in the args? ajax('show_month/3',[],'test') or if you want to be explicit...

[web2py] Re: googling web2py

2010-03-28 Thread Vidul Petrov
109,000 from Bulgaria On Mar 28, 3:23 am, mdipierro mdipie...@cs.depaul.edu wrote: When you google web2py how may hits do you get? from which country? When I do it from the US I get ~106,000. The number has been steady for one year. Before that is was much higher ~600,000. When I did it