[web2py] Re: googling web2py

2010-03-28 Thread SergeyPo
107000 from Russia
107000 from Finland
same number after clearing cache.


On Mar 28, 6:04 am, "mr.freeze"  wrote:
> I was getting 108k in Texas but it jumped to 607k after clearing the
> browser cache.
>
> On Mar 27, 9:55 pm, mdipierro  wrote:
>
>
>
> > this is odd. When I do
>
> >http://www.google.co.jp/search?q=web2py
>
> > 1 - 10 su circa 606.000 per web2p
>
> > I guess this test is not significant. It does not just depend on the
> > destination country, but also on the originating country and perhaps
> > on who is doing the search. So far the number ranges from 100,000 to
> > 710,000 (the highest number I have seen, reported by Wes).
>
> > On 27 Mar, 21:11, Jason Lotz  wrote:
>
> > > From Japan I get ~107,000.
>
> > > -- Jay
>
> > > On Mar 28, 10:23 am, mdipierro  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 from India the number was about ~550,000.
>
> > > > Not that the number means anything but I am interested in building
> > > > some statistics from different countries.
>
> > > > Massimo

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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, mdipierro  wrote:
   

this is odd. When I do

http://www.google.co.jp/search?q=web2py

1 - 10 su circa 606.000 per web2p

I guess this test is not significant. It does not just depend on the
destination country, but also on the originating country and perhaps
on who is doing the search. So far the number ranges from 100,000 to
710,000 (the highest number I have seen, reported by Wes).

On 27 Mar, 21:11, Jason Lotz  wrote:

 

 From Japan I get ~107,000.
   
 

-- Jay
   
 

On Mar 28, 10:23 am, mdipierro  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 from India the number was about ~550,000.
 
 

Not that the number means anything but I am interested in building
some statistics from different countries.
 
 

Massimo
 
   


--
Alejandro Fanjul Fdez.
alex.fan...@gmail.com
www.mhproject.org

--
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> I looked at it and you did excellent work.
>
> I have one issue and one proposal.
>
> The issue is that plugin_editable_jqgrid.py exposes classes and
> methods that do not start with plugin_editable_jqgrid and that is a
> problem because can potentially conflict with other plugins.
>
> The proposal is that we merge it with the existing jqgrid plugin.
>
> Can you take a first crack at merging them?
> I will be happy to do any required cleanup work and post it.
>
> Massimo
>
> On 27 Mar, 19:38, mdipierro  wrote:
>
> > I will look at it asap. Thank you!
>
> > Massimo
>
> > On 27 Mar, 11:51, parroit  wrote:
>
> > > Hi. I've developed a plugin to use JqGrid with inline editing and json
> > > updates.
> > > I've published some help at this page:http://app.ebansoftware.net,
> > > but I think it be more useful
> > > to publish it also onhttp://www.web2py.com/plugins. What is the
> > > correct procedure
> > > to publish the plugin on that site?
>
> > > Thanks
>
> > > Andrea

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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

2010-03-28 Thread David Zejda
Please, look at the trivial controller:

class Blah:
def sessiontime(self):
return session.ctime

def cache_test():
import time
session.ctime = time.ctime()
b = cache.ram('blah',Blah,50)
return dict(cached=b.sessiontime(), current=session.ctime)

Because the time is not stored in the cached object, I would expect
equal 'cached' and 'current' value on every run.
But it seems that the session object is being stored together with
Blah somehow, so the values differ, starting with the second run for
the time for which the object is being held in cache:

cached : Sun Mar 28 12:22:43 2010
current : Sun Mar 28 12:23:10 2010

Is this behaviour intentional? I would expect to get fresh session
instead.

Regards :)
David

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 but this requires some work, as explained at bottom of
http://groups.google.com/group/web2py/msg/c9848792a8999c5f
Currently only DB2, MS SQL, Ingres and Informix are supported.

Denes.

On Mar 27, 6:31 pm, "Ben W."  wrote:
> Thanks!
>
> I got this working, but it seems I can't use my existing databases due
> to a requirement that every table have a pre-existing id field which
> is primary. :(
>
> -Ben

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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"  wrote:
> I was getting 108k in Texas but it jumped to 607k after clearing the
> browser cache.
>
> On Mar 27, 9:55 pm, mdipierro  wrote:
>
>
>
> > this is odd. When I do
>
> >http://www.google.co.jp/search?q=web2py
>
> > 1 - 10 su circa 606.000 per web2p
>
> > I guess this test is not significant. It does not just depend on the
> > destination country, but also on the originating country and perhaps
> > on who is doing the search. So far the number ranges from 100,000 to
> > 710,000 (the highest number I have seen, reported by Wes).
>
> > On 27 Mar, 21:11, Jason Lotz  wrote:
>
> > > From Japan I get ~107,000.
>
> > > -- Jay
>
> > > On Mar 28, 10:23 am, mdipierro  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 from India the number was about ~550,000.
>
> > > > Not that the number means anything but I am interested in building
> > > > some statistics from different countries.
>
> > > > Massimo

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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  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 from India the number was about ~550,000.
>
> Not that the number means anything but I am interested in building
> some statistics from different countries.
>
> Massimo
>
> --
> 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 
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: googling web2py

2010-03-28 Thread Mengu
109K from Turkey.

On 28 Mart, 15:14, Alfonso de la Guarda  wrote:
> Hello,
>
> 110,000
> from Perú
>
> 
> Alfonso de la Guarda
> Centro Open Source(COS)http://www.cos-la.nethttp://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  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 from India the number was about ~550,000.
>
> > Not that the number means anything but I am interested in building
> > some statistics from different countries.
>
> > Massimo
>
> > --
> > 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 
> > athttp://groups.google.com/group/web2py?hl=en.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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  wrote:

> 109K from Turkey.
>
> On 28 Mart, 15:14, Alfonso de la Guarda  wrote:
> > Hello,
> >
> > 110,000
> > from Perú
> >
> > 
> > Alfonso de la Guarda
> > Centro Open Source(COS)http://www.cos-la.nethttp://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 
> 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 from India the number was about ~550,000.
> >
> > > Not that the number means anything but I am interested in building
> > > some statistics from different countries.
> >
> > > Massimo
> >
> > > --
> > > 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 athttp://
> groups.google.com/group/web2py?hl=en.
>
> --
> 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
> http://groups.google.com/group/web2py?hl=en.
>
>


-- 

Linux User #387870
.
 _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: JqGrid Plugin

2010-03-28 Thread mdipierro
:-)

On Mar 28, 4:04 am, parroit  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
>
> Andrea
>
> On 28 Mar, 03:18, mdipierro  wrote:
>
> > I looked at it and you did excellent work.
>
> > I have one issue and one proposal.
>
> > The issue is that plugin_editable_jqgrid.py exposes classes and
> > methods that do not start with plugin_editable_jqgrid and that is a
> > problem because can potentially conflict with other plugins.
>
> > The proposal is that we merge it with the existing jqgrid plugin.
>
> > Can you take a first crack at merging them?
> > I will be happy to do any required cleanup work and post it.
>
> > Massimo
>
> > On 27 Mar, 19:38, mdipierro  wrote:
>
> > > I will look at it asap. Thank you!
>
> > > Massimo
>
> > > On 27 Mar, 11:51, parroit  wrote:
>
> > > > Hi. I've developed a plugin to use JqGrid with inline editing and json
> > > > updates.
> > > > I've published some help at this page:http://app.ebansoftware.net,
> > > > but I think it be more useful
> > > > to publish it also onhttp://www.web2py.com/plugins. What is the
> > > > correct procedure
> > > > to publish the plugin on that site?
>
> > > > Thanks
>
> > > > Andrea

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> Please, look at the trivial controller:
>
> class Blah:
>     def sessiontime(self):
>         return session.ctime
>
> def cache_test():
>     import time
>     session.ctime = time.ctime()
>     b = cache.ram('blah',Blah,50)
>     return dict(cached=b.sessiontime(), current=session.ctime)
>
> Because the time is not stored in the cached object, I would expect
> equal 'cached' and 'current' value on every run.
> But it seems that the session object is being stored together with
> Blah somehow, so the values differ, starting with the second run for
> the time for which the object is being held in cache:
>
> cached : Sun Mar 28 12:22:43 2010
> current : Sun Mar 28 12:23:10 2010
>
> Is this behaviour intentional? I would expect to get fresh session
> instead.
>
> Regards :)
> David

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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"  wrote:
> Testing a reply from outlook.
> Ignore this message
>
> -Oorspronkelijk bericht-
> Van: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens
> mdipierro
> Verzonden: vrijdag 12 maart 2010 19:12
> Aan: web2py-users
> Onderwerp: [web2py] Re: turnkeylinux help
>
> My interest in turnkey is that once made it will be available forvmware, 
> amazon, xen and will show up in the VPS.net list of available
> appliances. The rule is that the machine has to be built by their
> patching process.
>
> I hit a block there because my patch fails ad apt-get install a module
> that is there.
> I do not know were to go from here but I will get back at it next
> week.
>
> Massimo
>
> On Mar 12, 10:01 am, Christopher Steel  wrote:
>
>
>
>
>
> > I ran a test on a virtual machine with similar results.
>
> > If I understand what you are trying to do correctly and  that echo
> > message is valid then perhaps the script 'setup-web2py-ubuntu.sh' is
> > being run as part of the ISO patching process?
>
> > A better solution might be to put the script on the ISO being created
> > and have it run during the eventual system installation via kickstart
> > using some other mechanism.
>
> > I am currently looking for ways to automating setting up Ubuntu web2py
> > server (hosting) setups for a new Canadian non-profit.
>
> > Please let me know if I can be of further assistance in this or
> > similar activities.
>
> > Thanks,
>
> > Chris
>
> > On Mar 11, 11:15 am, mdipierro  wrote:
>
> > > keep us posted.
>
> > > I had some problems with the one I posted:
> > > 1) the apt-get install get stuck and I have to restart a few times
> > > 2) it is supposed to use the PAM user password for admin but PAM does
> > > not seem to allow the app to login as root
> > > 3) I am using the LAPP appliance and phpPgAdmin does not appear to be
> > > running.
>
> > > On Mar 11, 9:40 am, Mark Breedveld  wrote:
>
> > > > I have an Turnkey instance ready and try it as soon as possible.
>
> > > > greetings,
>
> > > > Mark,
>
> > > > On 11 mrt, 16:07, Massimo Di Pierro  wrote:
>
> > > > > Try this
>
> > > > >  web2py_patch.zip
> > > > > 3KWeergevenDownloaden
>
> --
> 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 
> athttp://groups.google.com/group/web2py?hl=en.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> 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"  wrote:
>
> > Testing a reply from outlook.
> > Ignore this message
>
> > -Oorspronkelijk bericht-
> > Van: web2py@googlegroups.com [mailto:web...@googlegroups.com] Namens
> > mdipierro
> > Verzonden: vrijdag 12 maart 2010 19:12
> > Aan: web2py-users
> > Onderwerp: [web2py] Re: turnkeylinux help
>
> > My interest in turnkey is that once made it will be available forvmware, 
> > amazon, xen and will show up in the VPS.net list of available
> > appliances. The rule is that the machine has to be built by their
> > patching process.
>
> > I hit a block there because my patch fails ad apt-get install a module
> > that is there.
> > I do not know were to go from here but I will get back at it next
> > week.
>
> > Massimo
>
> > On Mar 12, 10:01 am, Christopher Steel  wrote:
>
> > > I ran a test on a virtual machine with similar results.
>
> > > If I understand what you are trying to do correctly and  that echo
> > > message is valid then perhaps the script 'setup-web2py-ubuntu.sh' is
> > > being run as part of the ISO patching process?
>
> > > A better solution might be to put the script on the ISO being created
> > > and have it run during the eventual system installation via kickstart
> > > using some other mechanism.
>
> > > I am currently looking for ways to automating setting up Ubuntu web2py
> > > server (hosting) setups for a new Canadian non-profit.
>
> > > Please let me know if I can be of further assistance in this or
> > > similar activities.
>
> > > Thanks,
>
> > > Chris
>
> > > On Mar 11, 11:15 am, mdipierro  wrote:
>
> > > > keep us posted.
>
> > > > I had some problems with the one I posted:
> > > > 1) the apt-get install get stuck and I have to restart a few times
> > > > 2) it is supposed to use the PAM user password for admin but PAM does
> > > > not seem to allow the app to login as root
> > > > 3) I am using the LAPP appliance and phpPgAdmin does not appear to be
> > > > running.
>
> > > > On Mar 11, 9:40 am, Mark Breedveld  wrote:
>
> > > > > I have an Turnkey instance ready and try it as soon as possible.
>
> > > > > greetings,
>
> > > > > Mark,
>
> > > > > On 11 mrt, 16:07, Massimo Di Pierro  wrote:
>
> > > > > > Try this
>
> > > > > >  web2py_patch.zip
> > > > > > 3KWeergevenDownloaden
>
> > --
> > 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 
> > athttp://groups.google.com/group/web2py?hl=en.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 мар, 21:35, mdipierro  wrote:
> :-)
>
> On Mar 28, 4:04 am, parroit  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
>
> > Andrea
>
> > On 28 Mar, 03:18, mdipierro  wrote:
>
> > > I looked at it and you did excellent work.
>
> > > I have one issue and one proposal.
>
> > > The issue is that plugin_editable_jqgrid.py exposes classes and
> > > methods that do not start with plugin_editable_jqgrid and that is a
> > > problem because can potentially conflict with other plugins.
>
> > > The proposal is that we merge it with the existing jqgrid plugin.
>
> > > Can you take a first crack at merging them?
> > > I will be happy to do any required cleanup work and post it.
>
> > > Massimo
>
> > > On 27 Mar, 19:38, mdipierro  wrote:
>
> > > > I will look at it asap. Thank you!
>
> > > > Massimo
>
> > > > On 27 Mar, 11:51, parroit  wrote:
>
> > > > > Hi. I've developed a plugin to use JqGrid with inline editing and json
> > > > > updates.
> > > > > I've published some help at this page:http://app.ebansoftware.net,
> > > > > but I think it be more useful
> > > > > to publish it also onhttp://www.web2py.com/plugins. What is the
> > > > > correct procedure
> > > > > to publish the plugin on that site?
>
> > > > > Thanks
>
> > > > > Andrea

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> Here is the correct older appadmin.html
>
> http://pastebin.com/FT632P1A
>
> -Thadeus
>
> On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess  
> wrote:
> > I just upgraded web2py, and have ran into an issue with web2py.
>
> > Using an older version of appadmin,http://pastebin.com/jSnLT2Ua
>
> > Traceback (most recent call last):
> >  File "/home/thadeusb/web2py/gluon/restricted.py", line 173, in restricted
> >    exec ccode in environment
> >  File "/home/thadeusb/web2py/applications/dolls/views/appadmin.html",
> > line 68, in 
> >    {{fieldname=table._primarykey[0]}}
> > IndexError: list index out of range
>
> > Upgrading to the latest appadmin fixes this.http://pastebin.com/MFVvyXrW
>
> > -Thadeus

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 call last):
  File "", line 1, in 
NameError: name 'db' is not defined

Any reason the console would not be able to find 'db' now? I did not
change anything on my system.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 this group at 
http://groups.google.com/group/web2py?hl=en.



[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"  wrote:
> 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  wrote:
>
> > Here is the correct older appadmin.html
>
> >http://pastebin.com/FT632P1A
>
> > -Thadeus
>
> > On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess  
> > wrote:
> > > I just upgraded web2py, and have ran into an issue with web2py.
>
> > > Using an older version of appadmin,http://pastebin.com/jSnLT2Ua
>
> > > Traceback (most recent call last):
> > >  File "/home/thadeusb/web2py/gluon/restricted.py", line 173, in restricted
> > >    exec ccode in environment
> > >  File "/home/thadeusb/web2py/applications/dolls/views/appadmin.html",
> > > line 68, in 
> > >    {{fieldname=table._primarykey[0]}}
> > > IndexError: list index out of range
>
> > > Upgrading to the latest appadmin fixes this.http://pastebin.com/MFVvyXrW
>
> > > -Thadeus

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  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.py -S myapp>>> from gluon.sql import *
> >>> rows = db(db.mytable.id > 0)
>
> Traceback (most recent call last):
>   File "", line 1, in 
> NameError: name 'db' is not defined
>
> Any reason the console would not be able to find 'db' now? I did not
> change anything on my system.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> 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 this group at 
http://groups.google.com/group/web2py?hl=en.



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 = db(db.mytable.id > 0)


--Jay



On 03/29/2010 12:05 AM, Matthew 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.py -S myapp
   

from gluon.sql import *
rows = db(db.mytable.id>  0)
 

Traceback (most recent call last):
   File "", line 1, in
NameError: name 'db' is not defined

Any reason the console would not be able to find 'db' now? I did not
change anything on my system.

   


--
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 
http://groups.google.com/group/web2py?hl=en.



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 has anything to do with versions.

Are you using the source version of web2py? If not, the windows binary
distribution of web2py comes with its own python interpreter and it
will not see modules you installed in the "other" python.

Massimo

On 27 Mar, 22:50, Jason Lotz  wrote:
   

The only problem is that python interpreter itself seems to recognize
the cx_Oracle driver. I am able to make a connection in the Python
Shell. I only get the error when trying to connect using web2py DAL in
the Interactive Shell.

Is there any version compatibilities issue?

Windows 2003 Server
Python v2.5
cx_Oracle v5.0.3-10g-win32-py2.5
Oracle v10g
web2py v1.76.5

Should I try a lower version of cx_Oracle or web2py?

--Jay

On Mar 28, 9:41 am, mdipierro  wrote:

 

I suggest you email the creators of cx_Oracle. You should not need to
install it under web2py/site-packages. If it is normally installed
under Python, web2py should be able t use it.
   
 

On 27 Mar, 13:07, Jason Lotz  wrote:
   
 

I have tried to build and install from source but I get another error.
 
 

  >python setup.py build
running build
running build_ext
building 'cx_Oracle' extension
error: Unable to find vcvarsall.bat
 
 

You said "...installing it into your python's site-packages.".  I have
only installed the cx_Oracle binary but if I look in
'C:\Python26\Lib\site-packages' it appears to have already been
installed as the cx_Oracle.pyd exists here. Just for a wild shot I
copied this file to the ~\web2py\site-packages but that made no difference.
 
 

What am I doing wrong or missing?
 
 

--
Jay
 
 

On 03/28/2010 02:17 AM, Thadeus Burgess wrote:
 
 

I think that it means to run the source version of cx_oracle not the
binary version. This would entail downloading the source of cx_Oracle
and installing it into your python's site-packages.
   
 

-Thadeus
   
 

On Sat, Mar 27, 2010 at 10:51 AM, Jason Lotzwrote:
   
 

I am trying to connect to an established oracle database. Working in
Windows I downloaded and installed cx_Oracle. In the Python Shell I am
able to make a connection.
 
 

db = DAL('oracle://user/passw...@tns')
   
 

Traceback (most recent call last):
File  "", line 1, in
File  "gluon/sql.py", line 3783, in DAL
File  "gluon/sql.py", line 966, in __init__
File  "gluon/sql.py", line 829, in _pool_connection
File  "gluon/sql.py", line 967, in
NameError: global name 'cx_Oracle' is not defined
 
 

I read that I need to run web2py from the cx_oracle source. I'm not
sure how to 'run from source'. Maybe there is someone that could point
me in the right direction.
 
 

Thnx,
Jay
 
 

--
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 
athttp://groups.google.com/group/web2py?hl=en.
 
   


--
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 
http://groups.google.com/group/web2py?hl=en.



Re: [web2py] Re: googling web2py

2010-03-28 Thread Tiago Almeida
110K Portugal
---

On Sun, Mar 28, 2010 at 2:48 PM, Tito Garrido  wrote:

> *108.000 from Brazil*
>
>
> On Sun, Mar 28, 2010 at 10:13 AM, Mengu  wrote:
>
>> 109K from Turkey.
>>
>> On 28 Mart, 15:14, Alfonso de la Guarda  wrote:
>> > Hello,
>> >
>> > 110,000
>> > from Perú
>> >
>> > 
>> > Alfonso de la Guarda
>> > Centro Open Source(COS)http://www.cos-la.nethttp://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 
>> 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 from India the number was about ~550,000.
>> >
>> > > Not that the number means anything but I am interested in building
>> > > some statistics from different countries.
>> >
>> > > Massimo
>> >
>> > > --
>> > > 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 athttp://
>> groups.google.com/group/web2py?hl=en.
>>
>> --
>> 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
>> http://groups.google.com/group/web2py?hl=en.
>>
>>
>
>
> --
>
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___
>
>  --
> 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
> http://groups.google.com/group/web2py?hl=en.
>

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 even get fancy and detect if the files are different.


On Mar 28, 10:23 am, mdipierro  wrote:
> 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"  wrote:
>
> > 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  wrote:
>
> > > Here is the correct older appadmin.html
>
> > >http://pastebin.com/FT632P1A
>
> > > -Thadeus
>
> > > On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess  
> > > wrote:
> > > > I just upgraded web2py, and have ran into an issue with web2py.
>
> > > > Using an older version of appadmin,http://pastebin.com/jSnLT2Ua
>
> > > > Traceback (most recent call last):
> > > >  File "/home/thadeusb/web2py/gluon/restricted.py", line 173, in 
> > > > restricted
> > > >    exec ccode in environment
> > > >  File "/home/thadeusb/web2py/applications/dolls/views/appadmin.html",
> > > > line 68, in 
> > > >    {{fieldname=table._primarykey[0]}}
> > > > IndexError: list index out of range
>
> > > > Upgrading to the latest appadmin fixes this.http://pastebin.com/MFVvyXrW
>
> > > > -Thadeus
>
>

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 not change this time

IMO, as long as:
  a. row.as_dict() is instead used internally (Well, Tito uses it
anyway, but he is happy with the change.)
  b. Most people use Rows.as_dict() and Rows.as_list(), and their
default datetime_to_str=True are not changed.

then this modification is fine ... for me. I don't know what others
think. Generally speaking, it is not a necessary change since users
already has a datetime_to_str flag to toggle. So, count me neutral.

Regards,
Iceberg

[1]:
http://code.google.com/p/web2py/source/diff?spec=svn5beee338c7dfa1fdbf259f987f5a32460c02a553&r=5beee338c7dfa1fdbf259f987f5a32460c02a553&format=side&path=/gluon/sql.py

On Mar26, 7:21am, mdipierro  wrote:
> I just made some changes to sql.py in trunk that does what you say.
> The main purpose it for testing it and see what other people have to
> say.
>
> I have to changes:
> 1) as_dict now behaves by default as as_list (i.e datetime is
> converted to string by default)
> 2) when rows and records are stored in a session, datetime is NOT
> serialized into a string
>
> This may be seen by some as not backward compatible and this behavior
> was not documented anyway. Yet, I want to hear other people opinions
> and want if this breaks people applications.
>
> Massimo
>
> On Mar 25, 5:59 pm, Tito Garrido  wrote:
>
>
>
> > What about as_dict(datetime_to_str=True)?
>
> > On Thu, Mar 25, 2010 at 7:33 PM, mdipierro  wrote:
> > > On a second though, this cannot be changed, because it will break web
> > > services example and therefore backward compatibility. @service.xmlrpc
> > > for example cannot serialize datetime.
>
> > > Anyway you can do
>
> > > ...select().as_list(datetime_to_str=False)
>
> > > On Mar 25, 4:58 pm, Tito Garrido  wrote:
> > > > I prefer the serialized data on as_dict result :)
>
> > > > On Thu, Mar 25, 2010 at 6:36 PM, mdipierro 
> > > wrote:
> > > > > That's how it is. There are historical reasons for it.
>
> > > > > select().as_dict(...) was designed to return a representation that
> > > > > could be serialized by simplejson and other serializers. simplejson
> > > > > cannot serialize date/datetime/time objects. This is no longer the
> > > > > case since I patched simplejson.
>
> > > > > row.as_dict() is instead used internally to compare two records.
>
> > > > > I think we can change one or the other and make them consistent. What
> > > > > do people think?
>
> > > > > Massimo
>
> > > > > On Mar 25, 4:29 pm, Tito Garrido  wrote:
> > > > > > as_list on a select returns something like:
>
> > > > > > [{'id': 11, 'time': '08:00:00'}]
>
> > > > > > using as_dict on a record returns:
>
> > > > > > [{'id': 11, 'horario': datetime.time(8, 0)}]
>
> > > > > > Is that expected?
>
> > > > > > Regards,
>
> > > > > > Tito

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> python web2py.py -S myapp  -M
>
> On Mar 28, 10:05 am, Matthew  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.py -S myapp>>> from gluon.sql import *
> > >>> rows = db(db.mytable.id > 0)
>
> > Traceback (most recent call last):
> >   File "", line 1, in 
> > NameError: name 'db' is not defined
>
> > Any reason the console would not be able to find 'db' now? I did not
> > change anything on my system.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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"  wrote:
> 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 even get fancy and detect if the files are different.
>
> On Mar 28, 10:23 am, mdipierro  wrote:
>
> > 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"  wrote:
>
> > > 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  wrote:
>
> > > > Here is the correct older appadmin.html
>
> > > >http://pastebin.com/FT632P1A
>
> > > > -Thadeus
>
> > > > On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess 
> > > >  wrote:
> > > > > I just upgraded web2py, and have ran into an issue with web2py.
>
> > > > > Using an older version of appadmin,http://pastebin.com/jSnLT2Ua
>
> > > > > Traceback (most recent call last):
> > > > >  File "/home/thadeusb/web2py/gluon/restricted.py", line 173, in 
> > > > > restricted
> > > > >    exec ccode in environment
> > > > >  File "/home/thadeusb/web2py/applications/dolls/views/appadmin.html",
> > > > > line 68, in 
> > > > >    {{fieldname=table._primarykey[0]}}
> > > > > IndexError: list index out of range
>
> > > > > Upgrading to the latest appadmin fixes 
> > > > > this.http://pastebin.com/MFVvyXrW
>
> > > > > -Thadeus

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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.

I was thinking, why was appadmin never made part of "admin" ?

-Thadeus





On Sun, Mar 28, 2010 at 9:53 AM, mr.freeze  wrote:
> 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 even get fancy and detect if the files are different.
>
>
> On Mar 28, 10:23 am, mdipierro  wrote:
>> 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"  wrote:
>>
>> > 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  wrote:
>>
>> > > Here is the correct older appadmin.html
>>
>> > >http://pastebin.com/FT632P1A
>>
>> > > -Thadeus
>>
>> > > On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess 
>> > >  wrote:
>> > > > I just upgraded web2py, and have ran into an issue with web2py.
>>
>> > > > Using an older version of appadmin,http://pastebin.com/jSnLT2Ua
>>
>> > > > Traceback (most recent call last):
>> > > >  File "/home/thadeusb/web2py/gluon/restricted.py", line 173, in 
>> > > > restricted
>> > > >    exec ccode in environment
>> > > >  File "/home/thadeusb/web2py/applications/dolls/views/appadmin.html",
>> > > > line 68, in 
>> > > >    {{fieldname=table._primarykey[0]}}
>> > > > IndexError: list index out of range
>>
>> > > > Upgrading to the latest appadmin fixes 
>> > > > this.http://pastebin.com/MFVvyXrW
>>
>> > > > -Thadeus
>>
>>
>
> --
> 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 
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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, namely:  -
,  e.g.:  "ez-wr" -
  - we should stick with that, ie. something like  "w2p" for all
web2py named css classes and id selectors;
- note: the major difference between
  - class selectors (.something) and
  - id selectors (#something) is id selectors can link to a
part of a page, and javascript uses id selectors;

I'm not sure specifically what Massimo meant by "ez.css and jquery.ui
naming conventions";  we should get specific about this.

ez has the concept of
- wrappers, (ez-wr, ez-mr)
- style containers (i.e. layout containers)
- content containers (i.e. ez-box)
- sizing elements;

and more...

jquery has at least these conventions:
- http://jqueryui.com/docs/Theming/API
- http://wiki.jqueryui.com/Position

Note that ThemeRoller is a way to apply to PARTS of a user layout,
e.g.:

- font settings;
- corner radius;
- header;
- toolbar;
- content;
- clicables;
- highlight;
- errors;
- modal;
- drop shadoes;

By combining ez (positioning) and jquery-ui (and staying consistent w/
themeroller), we should be able to build-up a web2py-unique packaging,
with potentially useful extensions (e.g. for form layout and theming).

This seems, to me, to be a very promising direction.

- Yarko
Noteab

On Mar 27, 7:44 pm, mdipierro  wrote:
> I like the idea. It would be ideal if you could do it using ez.css and
> jquery.ui naming conventions.
>
> Massimo
>
> On 27 Mar, 15:23, Christopher Steel  wrote:
>
> > The Zengarden css code is not "open source" but we can easily create
> > our own. I am just finishing up a css based theme for a client that
> > uses div's and flow with a two columns (basically the same appearance
> > as the current web2py default layout). I would be more than happy to
> > create on using the current web2py names, images and so forth and can
> > license it as we like.
>
> > We could include it as a documented option and give it a name like
> > base-2c-flow.css or base-tableless.css
> > Let me know soon cause I am moving on to non css stuff in the next few
> > days.
>
> > Cheers,
>
> > Christopher Steel.
>
> > On Mar 25, 5:33 am, Benigno  wrote:
>
> > > @mdmcginn: I do think that having a proven flexible div setup that
> > > allows for so many different options, is precisely what you need on
> > > the original layout. What Zengarden does, is prove the flexibility of
> > > CSS but that flexibility is nothing if your div structure is not
> > > correctly thought out and matured.
>
> > > On the minus side, however, and this is my personal opinion, I think
> > > that most Zengarden designs, are mostly oriented towards blogging,
> > > news/magazine, or marketing presentations, and not so much about
> > > enterprise applications. (This might be that I have missed the correct
> > > layouts). However, I have the same opinion about the other layout
> > > plugin.
>
> > > Cheers,
> > > Benigno.
> > > On Mar 24, 10:23 am, mdmcginn  wrote:> CSS 
> > > is great, much better than table-based web design, and
> > > > csszengarden deserves a lot of credit for demonstrating that. But it
> > > > is just a proof of concept. As you noted, their basic HTML is full of
> > > > empty divs into which designers can insert fancy images, so it's not a
> > > > good base for templates.
>
> > > > On Mar 22, 9:14 am, Wes James  wrote:
>
> > > > > On Sat, Mar 20, 2010 at 7:27 PM, mdipierro  
> > > > > wrote:
> > > > > > Just for fun:
>
> > > > > >  http://web2py.com/zengarden
>
> > > > > > then click on the [zengarden] link under the menu, under the "index"
> > > > > > link. You can change the skin per user, per session.
> > > > > > This is a bare bone welcome app with the layout
>
> > > > > It says to click on link at top right - on firefox/mac os x.6.2 it
> > > > > shows up on top-left.
>
> > > > > -wes

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 customization per-app. Eventually Django
did the same and every app can have its own admin (appadmin).

Massimo

>
> -Thadeus
>
> On Sun, Mar 28, 2010 at 9:53 AM, mr.freeze  wrote:
> > 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 even get fancy and detect if the files are different.
>
> > On Mar 28, 10:23 am, mdipierro  wrote:
> >> 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"  wrote:
>
> >> > 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  wrote:
>
> >> > > Here is the correct older appadmin.html
>
> >> > >http://pastebin.com/FT632P1A
>
> >> > > -Thadeus
>
> >> > > On Sat, Mar 27, 2010 at 11:35 PM, Thadeus Burgess 
> >> > >  wrote:
> >> > > > I just upgraded web2py, and have ran into an issue with web2py.
>
> >> > > > Using an older version of appadmin,http://pastebin.com/jSnLT2Ua
>
> >> > > > Traceback (most recent call last):
> >> > > >  File "/home/thadeusb/web2py/gluon/restricted.py", line 173, in 
> >> > > > restricted
> >> > > >    exec ccode in environment
> >> > > >  File "/home/thadeusb/web2py/applications/dolls/views/appadmin.html",
> >> > > > line 68, in 
> >> > > >    {{fieldname=table._primarykey[0]}}
> >> > > > IndexError: list index out of range
>
> >> > > > Upgrading to the latest appadmin fixes 
> >> > > > this.http://pastebin.com/MFVvyXrW
>
> >> > > > -Thadeus
>
> > --
> > 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 
> > athttp://groups.google.com/group/web2py?hl=en.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: googling web2py

2010-03-28 Thread andrej burja
109 000 from Slovenia

On 28 mar., 15:48, Tito Garrido  wrote:
> *108.000 from Brazil*
>
>
>
> On Sun, Mar 28, 2010 at 10:13 AM, Mengu  wrote:
> > 109K from Turkey.
>
> > On 28 Mart, 15:14, Alfonso de la Guarda  wrote:
> > > Hello,
>
> > > 110,000
> > > from Perú
>
> > > 
> > > Alfonso de la Guarda
> > > Centro Open Source(COS)http://www.cos-la.nethttp://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 
> > 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 from India the number was about ~550,000.
>
> > > > Not that the number means anything but I am interested in building
> > > > some statistics from different countries.
>
> > > > Massimo
>
> > > > --
> > > > 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 athttp://
> > groups.google.com/group/web2py?hl=en.
>
> > --
> > 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
> >http://groups.google.com/group/web2py?hl=en.
>
> --
>
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> 109 000 from Slovenia
>
> On 28 mar., 15:48, Tito Garrido  wrote:
>
> > *108.000 from Brazil*
>
> > On Sun, Mar 28, 2010 at 10:13 AM, Mengu  wrote:
> > > 109K from Turkey.
>
> > > On 28 Mart, 15:14, Alfonso de la Guarda  wrote:
> > > > Hello,
>
> > > > 110,000
> > > > from Perú
>
> > > > 
> > > > Alfonso de la Guarda
> > > > Centro Open Source(COS)http://www.cos-la.nethttp://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 
> > > 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 from India the number was about ~550,000.
>
> > > > > Not that the number means anything but I am interested in building
> > > > > some statistics from different countries.
>
> > > > > Massimo
>
> > > > > --
> > > > > 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 athttp://
> > > groups.google.com/group/web2py?hl=en.
>
> > > --
> > > 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
> > >http://groups.google.com/group/web2py?hl=en.
>
> > --
>
> > Linux User #387870
> > .
> >  _/_õ|__|
> > ..º[ .-.___.-._| . . . .
> > .__( o)__( o).:___

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  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.
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 
http://groups.google.com/group/web2py?hl=en.



[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?

General Q:
Anyone have suggestions for intranet / private search engines of this
sort (i.e. locally hosted)?

Regards,
- Yarko


On Mar 27, 8:53 pm, "mr.freeze"  wrote:
> Also, if there are other sites that might be helpful to search, let me
> know. Feel free to visit any sponsored links too :)
>
> On Mar 27, 7:29 pm, "mr.freeze"  wrote:
>
> > In an effort to alleviate my own search frustrations, I have added a
> > google powered search to web2pyslices.com that searches these sites:
>
> > web2pyslices.com
> > web2py.com (including the wiki)
> > groups.google.com/group/web2py
>
> > Hopefully it will help people find answers quickly.
>
> > -Nathan

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 
wrote:
> 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?
>
> General Q:
> Anyone have suggestions for intranet / private search engines of this
> sort (i.e. locally hosted)?
>
> Regards,
> - Yarko
>
> On Mar 27, 8:53 pm, "mr.freeze"  wrote:
>
> > Also, if there are other sites that might be helpful to search, let me
> > know. Feel free to visit any sponsored links too :)
>
> > On Mar 27, 7:29 pm, "mr.freeze"  wrote:
>
> > > In an effort to alleviate my own search frustrations, I have added a
> > > google powered search to web2pyslices.com that searches these sites:
>
> > > web2pyslices.com
> > > web2py.com (including the wiki)
> > > groups.google.com/group/web2py
>
> > > Hopefully it will help people find answers quickly.
>
> > > -Nathan
>
>

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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 won't deliver more than the first 1,000 results, and I 
don't know now to figure out the difference between the two result sets.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 
http://groups.google.com/group/web2py?hl=en.



[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 configurations
(which could be configured differently per region);   local Google CPU
cycle settings / availability (which _might_ be affected by flushing
your cache / cookies)  I wouldn't be surprised if you search the
same topic frequently, Google modifies how / what areas it searches
for you, and adapts CPU allocation for said search... not to limit so
much, as to give alternate results (if possible) It's all about
strategy for service delivery (I will guess).

Here's some evidence to this effect (I'm in Chicago area):

Firefox: Clear "Everything" from recent history" - 607,000 results (in
0.17seconds);
--- clearing "everything from history" and cookies, on Google Chrome
(i.e. a webkit based browser) does not have this effect (still 109,00)

Repeat: (same);

Google Chrome:  109,000 in 0.18 seconds;
Expand "Show Options"
Select "Blogs": 3,530 results in 0.21 seconds

A fifth of a second seems to be the allocation for Chicago / user

(continuing):

select  past year:  1,200
select all, then past year: 119,000
all, anytime:  109,000
Not yet visited:  175,000

 and so on...

You can see - as you modify the search criteria from a user
perspective, you are making some mix of changes which are not
transparent to you in the server-end search mechanisms.

This _is_ interesting (but I am pretty sure has nothiing to do w/
web2py, per se, but rather some peek at something about google local
search engine configurations-per-search).

Fun!
- Yarko



On Mar 28, 12:51 pm, 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.
>
> Massimo
>
> On Mar 28, 10:32 am, andrej burja  wrote:
>
> > 109 000 from Slovenia
>
> > On 28 mar., 15:48, Tito Garrido  wrote:
>
> > > *108.000 from Brazil*
>
> > > On Sun, Mar 28, 2010 at 10:13 AM, Mengu  wrote:
> > > > 109K from Turkey.
>
> > > > On 28 Mart, 15:14, Alfonso de la Guarda  wrote:
> > > > > Hello,
>
> > > > > 110,000
> > > > > from Perú
>
> > > > > 
> > > > > Alfonso de la Guarda
> > > > > Centro Open Source(COS)http://www.cos-la.nethttp://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 
> > > > 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 from India the number was about ~550,000.
>
> > > > > > Not that the number means anything but I am interested in building
> > > > > > some statistics from different countries.
>
> > > > > > Massimo
>
> > > > > > --
> > > > > > 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 athttp://
> > > > groups.google.com/group/web2py?hl=en.
>
> > > > --
> > > > 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
> > > >http://groups.google.com/group/web2py?hl=en.
>
> > > --
>
> > > Linux User #387870
> > > .
> > >  _/_õ|__|
> > > ..º[ .-.___.-._| . . . .
> > > .__( o)__( o).:___

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: new on web2pyslices: aggregate search

2010-03-28 Thread Yarko Tymciurak
On Mar 28, 1:27 pm, "mr.freeze"  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 
> promising:http://bitbucket.org/mchaput/whoosh/wiki/Home

:-)

You're awesome, Nathan!
I'll check out that link.

Re: figure out:   In PyCOn registration, we put private data in models/
0_private.py --- and I pushed a "template" version of this, where the
settings would fail, i.e.:

DAL_URI='put your db connection string here'

I've just modified how I do that, to be more explicit for ordering of
config - I no longer use "0.py" --- but rather a scheme like this:

0development_config.py

--- for testing, local use;   basically, I (myself) set ONE variable
here:   DEV_TEST  (for development and test);  if this file doesn't
exist (it doesn't for deployment), my next file tests for the var, and
sets it to FALSE if it doesn't exist.   Then, things like CAPTCHA and
email for registration verification can use alternate logic based on
setting of DEV_TEST  (this also makes for pretty readable code).

1private_config.py

That's all the stuff that I would not want to divulge.  Much like
routes_example.py,   I have a '1example_private_config.py'  with all
the strings that will fail if you don't set them for your site - it's
a little bit of a trick to put "example" first in the name (e before
p), but then you can copy this to 1private_config.py (and leave the
example file), and configure your heart away - it will work (because
of loading order); you will figure out to not use the example file in
your deployment.

The only thing I haven't figured out a nicer way of doing (and it
needs to be in private_config) is this at the top of the private file

try: DEV_TEST
except: DEV_TEST=False

It seems to be the only reliable way to do this (oh well - good
enough, with caching).

Then - what used to be 0.py (the config stuff, and app defs to run
first - this is what Massimo likes to call it), I have named as:

2config.py

for no other reason than to control the ordering of this stuff.

Hope that is helpful.

Regards,
- Yarko

>
> On Mar 28, 1:06 pm, Yarko Tymciurak 
> wrote:
>
> > 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?
>
> > General Q:
> > Anyone have suggestions for intranet / private search engines of this
> > sort (i.e. locally hosted)?
>
> > Regards,
> > - Yarko
>
> > On Mar 27, 8:53 pm, "mr.freeze"  wrote:
>
> > > Also, if there are other sites that might be helpful to search, let me
> > > know. Feel free to visit any sponsored links too :)
>
> > > On Mar 27, 7:29 pm, "mr.freeze"  wrote:
>
> > > > In an effort to alleviate my own search frustrations, I have added a
> > > > google powered search to web2pyslices.com that searches these sites:
>
> > > > web2pyslices.com
> > > > web2py.com (including the wiki)
> > > > groups.google.com/group/web2py
>
> > > > Hopefully it will help people find answers quickly.
>
> > > > -Nathan

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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 or 
> "web2py" gives 109,000.
> 
> Unfortunately, Google won't deliver more than the first 1,000 results, and I 
> don't know now to figure out the difference between the two result sets.

Speaking of Google & web2py:

http://www.google.com/search?q=web2py&hl=en&lr=&safe=off&sa=X&tbo=1&tbs=ww:1&ei=6qWvS-DrDpCStgPejsH-Cw&oi=tool&resnum=2&ct=tlink&ved=0CC8QpwU

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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

2010-03-28 Thread mdipierro
good idea

On Mar 24, 5:51 pm, Albert Abril  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 wrote:
>
> > I don't know if it's my fault, but the 'web2py ubuntu setup' script failed
> > on a basic installation of ubuntu 9.10 at the vps.net
>
> > (http://web2py.googlecode.com/hg/scripts/setup-web2py-ubuntu.sh)
>
> >  * Restarting web server apache2
> >  * We failed to correctly shutdown apache, so we're now killing all running
> > apache processes. This is almost certainly suboptimal, so please make sure
> > your system is working as you'd expect now!
> >  ... waiting .Syntax error on line 6 of
> > /etc/apache2/sites-enabled/000-default:
> > Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a
> > module not included in the server configuration
> >    ...fail!
> > admin password: 
> > done!
>
> > More info about 000-default:
>
> > r...@vps:~# cat /etc/apache2/sites-enabled/000-default
>
> > NameVirtualHost *:80
> > NameVirtualHost *:443
>
> > 
> >   WSGIDaemonProcess web2py user=www-data group=www-data
> >   WSGIProcessGroup web2py
> >   WSGIScriptAlias / /home/www-data/web2py/wsgihandler.py
>
> >            ()
>
> > I want to try it with cherokee too, my "native" webserver :)
>
> > On Wed, Mar 24, 2010 at 8:20 PM, Albert Abril wrote:
>
> >> Purchased one month for testing.
> >> I'll give my impressions, at the moments, great.
>
> >> On Wed, Mar 24, 2010 at 1:51 AM, Álvaro Justen [Turicas] <
> >> alvarojus...@gmail.com> wrote:
>
> >>> On Tue, Mar 23, 2010 at 12:49, mdipierro 
> >>> wrote:
> >>> > The video:
>
> >>> >    http://vimeo.com/10377947
>
> >>> > Please use this link below to sign up for vps.net.
>
> >>> >  http://www.vps.net/?bid=190&aid=CD3792&opt=
>
> >>> > If you want to use vps.net, by using the link to register you will be
> >>> > making a zero cost donation.
>
> >>> Cool, thanks!
>
> >>> I'm working on some ways to deploy apps when web2py environment is
> >>> just working on the server. Things like:
> >>> 0- I push from my Mercurial local repo to my server
> >>> 1- My server run all tests in my app (yes, TDD[1] and continuous
> >>> integration[2] are very important).
> >>> 2- If all tests returned OK it updates the app that is in production,
> >>> do database migrations (note that we generally use migrate=False for
> >>> production environments) etc.
>
> >>> [1]http://en.wikipedia.org/wiki/Test-driven_development
> >>> [2]http://en.wikipedia.org/wiki/Continuous_integration
>
> >>> > --
> >>> > 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
> >>>http://groups.google.com/group/web2py?hl=en.
>
> >>> --
> >>> Álvaro Justen - Turicas
> >>>  http://blog.justen.eng.br/
> >>>  21 9898-0141
>
> >>> --
> >>> 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
> >>>http://groups.google.com/group/web2py?hl=en.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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 (excluding the 0_config.py which only
contains the dal connection string) file without worries.

Nice find... Whoosh looks sweet!

-Thadeus





On Sun, Mar 28, 2010 at 12:53 PM, Yarko Tymciurak
 wrote:
> On Mar 28, 1:27 pm, "mr.freeze"  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 
>> promising:http://bitbucket.org/mchaput/whoosh/wiki/Home
>
> :-)
>
> You're awesome, Nathan!
> I'll check out that link.
>
> Re: figure out:   In PyCOn registration, we put private data in models/
> 0_private.py --- and I pushed a "template" version of this, where the
> settings would fail, i.e.:
>
> DAL_URI='put your db connection string here'
>
> I've just modified how I do that, to be more explicit for ordering of
> config - I no longer use "0.py" --- but rather a scheme like this:
>
> 0development_config.py
>
> --- for testing, local use;   basically, I (myself) set ONE variable
> here:   DEV_TEST  (for development and test);  if this file doesn't
> exist (it doesn't for deployment), my next file tests for the var, and
> sets it to FALSE if it doesn't exist.   Then, things like CAPTCHA and
> email for registration verification can use alternate logic based on
> setting of DEV_TEST  (this also makes for pretty readable code).
>
> 1private_config.py
>
> That's all the stuff that I would not want to divulge.  Much like
> routes_example.py,   I have a '1example_private_config.py'  with all
> the strings that will fail if you don't set them for your site - it's
> a little bit of a trick to put "example" first in the name (e before
> p), but then you can copy this to 1private_config.py (and leave the
> example file), and configure your heart away - it will work (because
> of loading order); you will figure out to not use the example file in
> your deployment.
>
> The only thing I haven't figured out a nicer way of doing (and it
> needs to be in private_config) is this at the top of the private file
>
> try: DEV_TEST
> except: DEV_TEST=False
>
> It seems to be the only reliable way to do this (oh well - good
> enough, with caching).
>
> Then - what used to be 0.py (the config stuff, and app defs to run
> first - this is what Massimo likes to call it), I have named as:
>
> 2config.py
>
> for no other reason than to control the ordering of this stuff.
>
> Hope that is helpful.
>
> Regards,
> - Yarko
>
>>
>> On Mar 28, 1:06 pm, Yarko Tymciurak 
>> wrote:
>>
>> > 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?
>>
>> > General Q:
>> > Anyone have suggestions for intranet / private search engines of this
>> > sort (i.e. locally hosted)?
>>
>> > Regards,
>> > - Yarko
>>
>> > On Mar 27, 8:53 pm, "mr.freeze"  wrote:
>>
>> > > Also, if there are other sites that might be helpful to search, let me
>> > > know. Feel free to visit any sponsored links too :)
>>
>> > > On Mar 27, 7:29 pm, "mr.freeze"  wrote:
>>
>> > > > In an effort to alleviate my own search frustrations, I have added a
>> > > > google powered search to web2pyslices.com that searches these sites:
>>
>> > > > web2pyslices.com
>> > > > web2py.com (including the wiki)
>> > > > groups.google.com/group/web2py
>>
>> > > > Hopefully it will help people find answers quickly.
>>
>> > > > -Nathan
>
> --
> 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 
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
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 
http://groups.google.com/group/web2py?hl=en.



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 or 
> "web2py" gives 109,000.
> 
> Unfortunately, Google won't deliver more than the first 1,000 results, and I 
> don't know now to figure out the difference between the two result sets.

Also, searching for any of those variations with SafeSearch on gives me 106,000 
hits. So those of you getting low counts might want to check that.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 dict(cached=b.sessiontime(), current=session.ctime)

and result is the same.

David

On Mar 28, 4:39 pm, mdipierro  wrote:
> 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

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 administrator periodically load a page that does big
joins.  But a single process doing complex joins should not slow down
all other simple selects and inserts, right?

On Mar 27, 6:48 am, mdipierro  wrote:
> Mind that if you use sqlite there is no concurrency. Still these
> numbers are very low.
> Are your models very complex?
>
> On 27 Mar, 00:06, Michael Toomim  wrote:
>
>
>
> > I'm using web2py+rocket to serve jobs on mechanical turk. The server
> > probably gets a hit per second or so by workers on mechanical turk
> > using it.
>
> > When I have no users, everything is fast. But in active use, I notice
> > that web pages often load reay slow in my web browser, but the
> > httpserver.log file reports only small times.
>
> > For instance, I just loaded a page that httpserver.log said took
> > 0.20 seconds, but Firebug said took 54.21 seconds. That's a big
> > difference. Any idea what's going on? I guess I'll have to try apache?

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: webserver slow, misreported

2010-03-28 Thread mdipierro


On Mar 28, 3:46 pm, Michael Toomim  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, including time spend by the web
server for communication.

> 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 administrator periodically load a page that does big
> joins.  But a single process doing complex joins should not slow down
> all other simple selects and inserts, right?

In your case there are two problems (and I do not know what causes
them):
1) web2py is taking  0.20seconds to process a response. That is more
than 10 times what it should be.
2) the communication between the web server and the browser takes very
very long time.

Is the server on localhost? If not this could be a network issue.

> On Mar 27, 6:48 am, mdipierro  wrote:
>
> > Mind that if you use sqlite there is no concurrency. Still these
> > numbers are very low.
> > Are your models very complex?
>
> > On 27 Mar, 00:06, Michael Toomim  wrote:
>
> > > I'm using web2py+rocket to serve jobs on mechanical turk. The server
> > > probably gets a hit per second or so by workers on mechanical turk
> > > using it.
>
> > > When I have no users, everything is fast. But in active use, I notice
> > > that web pages often load reay slow in my web browser, but the
> > > httpserver.log file reports only small times.
>
> > > For instance, I just loaded a page that httpserver.log said took
> > > 0.20 seconds, but Firebug said took 54.21 seconds. That's a big
> > > difference. Any idea what's going on? I guess I'll have to try apache?

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 for the server.

On Mar 28, 4:22 pm, mdipierro  wrote:
> On Mar 28, 3:46 pm, Michael Toomim  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, including time spend by the web
> server for communication.
>
> > 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 administrator periodically load a page that does big
> > joins.  But a single process doing complex joins should not slow down
> > all other simple selects and inserts, right?
>
> In your case there are two problems (and I do not know what causes
> them):
> 1) web2py is taking  0.20seconds to process a response. That is more
> than 10 times what it should be.
> 2) the communication between the web server and the browser takes very
> very long time.
>
> Is the server on localhost? If not this could be a network issue.
>
> > On Mar 27, 6:48 am, mdipierro  wrote:
>
> > > Mind that if you use sqlite there is no concurrency. Still these
> > > numbers are very low.
> > > Are your models very complex?
>
> > > On 27 Mar, 00:06, Michael Toomim  wrote:
>
> > > > I'm using web2py+rocket to serve jobs on mechanical turk. The server
> > > > probably gets a hit per second or so by workers on mechanical turk
> > > > using it.
>
> > > > When I have no users, everything is fast. But in active use, I notice
> > > > that web pages often load reay slow in my web browser, but the
> > > > httpserver.log file reports only small times.
>
> > > > For instance, I just loaded a page that httpserver.log said took
> > > > 0.20 seconds, but Firebug said took 54.21 seconds. That's a big
> > > > difference. Any idea what's going on? I guess I'll have to try apache?

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  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
> >> 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 won't deliver more than the first 1,000 results, and 
> > I don't know now to figure out the difference between the two result sets.
>
> Also, searching for any of those variations with SafeSearch on gives me 
> 106,000 hits. So those of you getting low counts might want to check that.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: googling web2py

2010-03-28 Thread Zphen
655,000 from Australia...

On Mar 28, 12:23 pm, mdipierro  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 from India the number was about ~550,000.
>
> Not that the number means anything but I am interested in building
> some statistics from different countries.
>
> Massimo

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: googling web2py

2010-03-28 Thread Zphen
655,000 from Australia...

On Mar 28, 12:23 pm, mdipierro  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 from India the number was about ~550,000.
>
> Not that the number means anything but I am interested in building
> some statistics from different countries.
>
> Massimo

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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, however when i use appadmin it gives
the following error:

Traceback (most recent call last):
  File "gluon/restricted.py", line 173, in restricted
  File "/Applications/web2py.app/Contents/Resources/applications/
FWv7_7/views/appadmin.html", line 196, in 
  File "gluon/sqlhtml.py", line 1103, in __init__
  File "gluon/sql.py", line 2676, in formatter
  File "gluon/validators.py", line 2006, in formatter
AttributeError: 'str' object has no attribute 'strftime'

Avik

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> 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, however when i use appadmin it gives
> the following error:
>
> Traceback (most recent call last):
>   File "gluon/restricted.py", line 173, in restricted
>   File "/Applications/web2py.app/Contents/Resources/applications/
> FWv7_7/views/appadmin.html", line 196, in 
>   File "gluon/sqlhtml.py", line 1103, in __init__
>   File "gluon/sql.py", line 2676, in formatter
>   File "gluon/validators.py", line 2006, in formatter
> AttributeError: 'str' object has no attribute 'strftime'
>
> Avik

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> 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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.



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 wrote:

> http://academicearth.org/courses/building-dynamic-websites
>
> -Thadeus
>
> --
> 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
> http://groups.google.com/group/web2py?hl=en.
>
>

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 28, 6:02 pm, mdipierro  wrote:
> 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  wrote:
>
>
>
> > 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, however when i use appadmin it gives
> > the following error:
>
> > Traceback (most recent call last):
> >   File "gluon/restricted.py", line 173, in restricted
> >   File "/Applications/web2py.app/Contents/Resources/applications/
> > FWv7_7/views/appadmin.html", line 196, in 
> >   File "gluon/sqlhtml.py", line 1103, in __init__
> >   File "gluon/sql.py", line 2676, in formatter
> >   File "gluon/validators.py", line 2006, in formatter
> > AttributeError: 'str' object has no attribute 'strftime'
>
> > Avik

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> 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 28, 6:02 pm, mdipierro  wrote:
>
> > 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  wrote:
>
> > > 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, however when i use appadmin it gives
> > > the following error:
>
> > > Traceback (most recent call last):
> > >   File "gluon/restricted.py", line 173, in restricted
> > >   File "/Applications/web2py.app/Contents/Resources/applications/
> > > FWv7_7/views/appadmin.html", line 196, in 
> > >   File "gluon/sqlhtml.py", line 1103, in __init__
> > >   File "gluon/sql.py", line 2676, in formatter
> > >   File "gluon/validators.py", line 2006, in formatter
> > > AttributeError: 'str' object has no attribute 'strftime'
>
> > > Avik

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  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 trunk or also in
> 1.76.5. Which web2py version do you use?
>
> Massimo
>
> On Mar 28, 6:18 pm, Avik Basu  wrote:
>
>
>
> > 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 28, 6:02 pm, mdipierro  wrote:
>
> > > 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  wrote:
>
> > > > 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, however when i use appadmin it gives
> > > > the following error:
>
> > > > Traceback (most recent call last):
> > > >   File "gluon/restricted.py", line 173, in restricted
> > > >   File "/Applications/web2py.app/Contents/Resources/applications/
> > > > FWv7_7/views/appadmin.html", line 196, in 
> > > >   File "gluon/sqlhtml.py", line 1103, in __init__
> > > >   File "gluon/sql.py", line 2676, in formatter
> > > >   File "gluon/validators.py", line 2006, in formatter
> > > > AttributeError: 'str' object has no attribute 'strftime'
>
> > > > Avik

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 
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 the developers
> - developers can rate other developers (is this a good idea?)
> - clients can look for developers
> - developers can connect to sponsors to develop their pet projects
>
> I can host it. Can you help develop it?
>
> Begin forwarded message:
>
>
>
> > From: Massimo Di Pierro 
> > Date: March 22, 2010 1:49:47 PM CDT
> > To: Álvaro Justen 
> > Cc: Massimo Di Pierro 
> > Subject: Re: web2py developers list
>
> > On Mar 18, 2010, at 4:18 PM, Álvaro Justen wrote:
>
> >> Hi Massimo,
> >> I'm not at Peta5 but I give class about web2py and want to be paid to
> >> develop some projects in web2py. Well, I want a way to people find  
> >> me.
> >> What about having a list in the official site about "people who can  
> >> be
> >> paid to develop apps using web2py"? I think many other people can get
> >> some work with this - not just the companies that are listed (in my
> >> case, I don't own a company and don't want to get jobs passing to the
> >> company I work for - I want just the customer contact me directly).
>
> > Yes. We need that. Asap. It must be simple allow users to post
> > profiles, have some kind of feedback mechanism and be good looking.
> > Shall we make one together? I can host it.

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> http://academicearth.org/courses/building-dynamic-websites
>
> -Thadeus

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: googling web2py

2010-03-28 Thread Richard
Am also getting 655,000 from Australia.


On Mar 29, 8:44 am, Zphen  wrote:
> 655,000 from Australia...
>
> On Mar 28, 12:23 pm, mdipierro  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 from India the number was about ~550,000.
>
> > Not that the number means anything but I am interested in building
> > some statistics from different countries.
>
> > Massimo

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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 'fields' table from web2py
without any changes to the table definition above, once I finally
figured out what I needed to do. The factId field, for example, worked
fine, even with the negative values.
The anki application continued to work ok after the update, so that
was good, too.

The only problem I did have was that this did not work (no errors,
just no update):

but this did:
 
dx(dx.fields.id==otherfield.first()).update(value=db.staging[row.staging.id].English)

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  wrote:
> 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  wrote:
>
> > 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 this group at 
http://groups.google.com/group/web2py?hl=en.



[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 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 
http://groups.google.com/group/web2py?hl=en.



[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  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  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 trunk or also in
> > 1.76.5. Which web2py version do you use?
>
> > Massimo
>
> > On Mar 28, 6:18 pm, Avik Basu  wrote:
>
> > > 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 28, 6:02 pm, mdipierro  wrote:
>
> > > > 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  wrote:
>
> > > > > 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, however when i use appadmin it gives
> > > > > the following error:
>
> > > > > Traceback (most recent call last):
> > > > >   File "gluon/restricted.py", line 173, in restricted
> > > > >   File "/Applications/web2py.app/Contents/Resources/applications/
> > > > > FWv7_7/views/appadmin.html", line 196, in 
> > > > >   File "gluon/sqlhtml.py", line 1103, in __init__
> > > > >   File "gluon/sql.py", line 2676, in formatter
> > > > >   File "gluon/validators.py", line 2006, in formatter
> > > > > AttributeError: 'str' object has no attribute 'strftime'
>
> > > > > Avik

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[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  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...
> ajax('show_month?month_to_show=3',[],'test')
>
> On Mar 29, 4:24 am, mdipierro  wrote:
>
> > 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  wrote:
>
> > > 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 this group at 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: googling web2py

2010-03-28 Thread Vidul Petrov
109,000 from Bulgaria


On Mar 28, 3:23 am, mdipierro  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 from India the number was about ~550,000.
>
> Not that the number means anything but I am interested in building
> some statistics from different countries.
>
> Massimo

-- 
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 
http://groups.google.com/group/web2py?hl=en.



[web2py] Re: For your knowledge

2010-03-28 Thread weheh
Good stuff, Thadeus. Thanks.

-- 
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 
http://groups.google.com/group/web2py?hl=en.