[web2py] Re: upgrading appengine has broken web2py

2013-04-11 Thread Carl
If I remove the file (and its .pyc) then I get a web2py "Ticket issued: unknown" I'll try upgrading again. On Friday, 12 April 2013 02:58:27 UTC+1, Massimo Di Pierro wrote: > > What if you delete that file? > > On Thursday, 11 April 2013 12:31:15 UTC-5, Carl wrote: >> >> With an update to appe

[web2py] Re: Either this is a bug ... or I am!

2013-04-11 Thread t_glezakos
Please remove this post I have already posted it Τη Παρασκευή, 12 Απριλίου 2013 9:36:26 π.μ. UTC+3, ο χρήστης t_gle...@yahoo.com έγραψε: > > #Created a new application 'charges' which utilizes MySQL Server with the > following: > #At the model file (produce_files.py): > > db.define_table('owner'

[web2py] Either this is a bug ... or I am!

2013-04-11 Thread t_glezakos
#Created a new application 'charges' which utilizes MySQL Server with the following: #At the model file (produce_files.py): db.define_table('owner', Field('name','string'), Field('address','string'), format='%(name)s' ) db.define_ta

[web2py] Re: The MENU helper and "id"

2013-04-11 Thread at
Thank you Alan for the tip. On Friday, 12 April 2013 00:50:23 UTC+5, Alan Etkin wrote: > > > all you have to do is menu.elements('li') > > Yes, I know, it's just that I had no idea that the MENU helper didn't > support server-side DOM in the same way as the other helpers. Perhaps it > can be enh

[web2py] Re: The MENU helper and "id"

2013-04-11 Thread at
Thanks a lot anthony! I've tried the following approach and it's working. Best Regards Anthony wrote: > > > Another approach is with response.menu itself. Items in the menu can be > LI() elements rather than tuples, so you can define your own custom LI's. > For example, instead of: > > respons

[web2py] Re: "Query Not Supported" on GAE

2013-04-11 Thread Massimo Di Pierro
GAE does not support searching inside text fields. You have to build a query explicitly. You can use == but not contains. On Thursday, 11 April 2013 21:45:02 UTC-5, Lio wrote: > > Hi everyone, > > I used web2py to create an app and host it on gae. I have problem of > search function of sqlform.g

[web2py] "Query Not Supported" on GAE

2013-04-11 Thread Lio
Hi everyone, I used web2py to create an app and host it on gae. I have problem of search function of sqlform.grid. The search works ok in web2py environment but in gae launcher and gae host it doesn't work. Whatever i put in the search box it always shows no record and a message on the right si

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread David Ripplinger
I found the message from the u.read(). It is an html message: --- ERROR The requested URL could not be retrieved -- The

[web2py] Re: would like to assign sha1 to new users to support couchdb 1.2

2013-04-11 Thread Massimo Di Pierro
I do not understand what you want to do. On Thursday, 11 April 2013 18:55:04 UTC-5, James Northrup wrote: > > Hi couchdb 1.3 supports pbkdf2 but I'm working with couchdb 1.2 which > uses sha1 and salt. im using the DAL for couchdb as well. > > in the simplest possible app where do i place the c

[web2py] Re: Broken links on web2py.com downloads page?

2013-04-11 Thread Massimo Di Pierro
I had the problem today. Do not sure what happened. it fixed itself. Something wrong with the host werver. Static files are served directly, not by web2py. On Thursday, 11 April 2013 13:59:31 UTC-5, Michael Ellis wrote: > > Working now for me, too. Ditto on the thanks! > > On Thursday, April 11

[web2py] Re: upgrading appengine has broken web2py

2013-04-11 Thread Massimo Di Pierro
What if you delete that file? On Thursday, 11 April 2013 12:31:15 UTC-5, Carl wrote: > > With an update to appengine, all is still fine when running web2py locally. > but if I run dev_appserver then on start-up I get the following kicked out > at the console... > > File "F:\wp\TestEnvoy\web2py\g

[web2py] Re: This must be a bug (or I am one!!!)

2013-04-11 Thread Anthony
The only field you listed in "fields" is db.owner.name, which belongs only to the db.owner table. So, when you display a db.dog table, no fields have been specified, so nothing to display. I'm not sure, but I think you can list db.dog fields in the "fields" list as well -- try that and see if it

[web2py] Re: How to create a "doesn't belong" query, is it possible?

2013-04-11 Thread Alan Etkin
Is that the correct syntax? select() returns a Rows object, and I'm not sure that operation is supported, I tried it in a shell and it throws: TypeError: bad operand type for unary ~: 'Rows' This instead returns the complement of the record set: >>> db(~db.log.severity.belongs((1, 2))).select

[web2py] This must be a bug (or I am one!!!)

2013-04-11 Thread t_glezakos
I have created a new application named 'charges' utilizing MySQL database server. At the model (produce_tables.py): db.define_table('owner' ,Field('name','string'), ,Field('address','string') ,format='%(name)s' ) db.define_table('do

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread Alan Etkin
> > Here's the traceback ... > > File "/home/davidrip/web2py/gluon/contrib/stripe.py", line 46, in charge > > According to the simplejson error, the u object pulled from the url is returning mangled json input (or not json at all). Maybe you could examine the u.read() output of line 46 in st

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread David Ripplinger
Here's the traceback: Traceback (most recent call last): File "/home/davidrip/web2py/gluon/restricted.py", line 212, in restricted exec ccode in environment File "/home/davidrip/web2py/applications/budget1/controllers/default.py"

[web2py] would like to assign sha1 to new users to support couchdb 1.2

2013-04-11 Thread James Northrup
Hi couchdb 1.3 supports pbkdf2 but I'm working with couchdb 1.2 which uses sha1 and salt. im using the DAL for couchdb as well. in the simplest possible app where do i place the config to specify sha1 and default salt ? -- --- You received this message because you are subscribed to the Goo

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread Alan Etkin
> I get the error "No JSON object could be decoded" Can you post the traceback (if any)? Since 2.0, there have been some small changes in the way web2py handles JSON, for example importing serializers. I'm almost sure that the stripe recipe predates them. -- --- You received this message bec

[web2py] Re: some features I implemented

2013-04-11 Thread Alan Etkin
> RTable builds a kind of spreadsheet from any table. The columns are html input for fields of type string or number, selects for > references or when the options are limited, and so on. Unless I'm missing something, that's exactly what web2py/contrib/spreadsheet.py does. It seems that some web

[web2py] Re: some features I implemented

2013-04-11 Thread Anthony
I'm getting an Invalid Login error with the login you provided. On Thursday, April 11, 2013 5:58:29 PM UTC-4, pa...@cancamusa.net wrote: > > Hello: > > I've written an application for database management with some features > that might interest you: > > - RTable builds a kind of spreadsheet from

[web2py] New Application Wizard - in table auth_user, username field missing even if shown in field list

2013-04-11 Thread lenik85
I want to create a simple login, based on username and password(my first experience with web2py). I found this example: from gluon.tools import Auth auth = Auth(db) auth.define_tables(username=True, signature=False, migrate=True) auth_table=auth.settings.table_user auth_table.username.requires =

[web2py] Re: web2py and paradox databases

2013-04-11 Thread Niphlod
this site comes to the rescue very often http://www.connectionstrings.com/paradox#intersolv-3-11-odbc you can use the connection string just after mssql:// (e.g. mssql://{theconnectionstringhere}) if it has the same t-sql support . As for seeking "official" support within web2py, I fear tha

[web2py] Re: scheduler on webfaction

2013-04-11 Thread Jake Lowen
Simultaneously with Niphlod's reply also came this from webfaction customer support: You can use the nohup command at the start of this command to make it immunte to hangups, like when you are exiting your ssh session. http://linux.die.net/man/1/nohup Or you can use disown to disassociate the

[web2py] web2py and paradox databases

2013-04-11 Thread David S
Today I discovered I'll need to read from a paradox database ( http://en.wikipedia.org/wiki/Paradox_%28database%29) and pull some information from it into my application. I cannot change the data source to SQL or another format as doing that would require a complete hardware overhaul to replace

Re: [web2py] iOS + web2py

2013-04-11 Thread Jonathan Lundell
On 11 Apr 2013, at 12:27 PM, David Marko wrote: > > What do you use for creating iOS application? Do you use xcode directly or > some framework like Titanium? Xcode directly, all native code. I could see using something like Titanium if the app weren't my main product and I also needed it on

[web2py] Re: left join unexpected Nones

2013-04-11 Thread Cliff Kachinske
In what table is the user_id column? Have you tried your raw sql in your database client? On Thursday, April 11, 2013 11:56:34 AM UTC-4, Niphlod wrote: > > can you move that *AND user_id = 3* in the where condition ? > > On Thursday, April 11, 2013 5:19:15 PM UTC+2, Fabiano Faver wrote: >> >> >

[web2py] Re: The MENU helper and "id"

2013-04-11 Thread Alan Etkin
> all you have to do is menu.elements('li') Yes, I know, it's just that I had no idea that the MENU helper didn't support server-side DOM in the same way as the other helpers. Perhaps it can be enhanced to accept LI/UL HTML attributes. -- --- You received this message because you are subscri

[web2py] Re: iOS + web2py

2013-04-11 Thread David Marko
What do you use for creating iOS application? Do you use xcode directly or some framework like Titanium? -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to w

[web2py] Re: gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread David Ripplinger
Update: I just downloaded web2py onto my local machine and ran it with the gluon.contrib.stripe code successfully. So it seems that my error is specific to running it on pythonanywhere. On Thursday, April 11, 2013 1:55:49 PM UTC-4, David Ripplinger wrote: > > Just to see if I could get it to wor

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Niphlod
yep, I wasn't feeling "blamed" "in a bad way", just wanting to share why those comments were there. If with all "enabled" you still have PageSpeed reportings that we can fix, by all means post them here. -- --- You received this message because you are subscribed to the Google Groups "web2

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Marco Túlio Cícero de M . Porto
not blaming you Niphlod. I simply loved the script and the changes made on it... Everything run as expected... I'm just trying to find out what I can do to improve my server response time and performance. At this point I'm pretty much convinced that there's something really weird with the applicat

[web2py] Re: Broken links on web2py.com downloads page?

2013-04-11 Thread Michael Ellis
Working now for me, too. Ditto on the thanks! On Thursday, April 11, 2013 2:54:55 PM UTC-4, David Ripplinger wrote: > > I just tried it again and it is working now (at least the win version for > normal users). If somebody did something to fix it, thank you. > > On Thursday, April 11, 2013 2:47:

[web2py] Re: Broken links on web2py.com downloads page?

2013-04-11 Thread David Ripplinger
I just tried it again and it is working now (at least the win version for normal users). If somebody did something to fix it, thank you. On Thursday, April 11, 2013 2:47:44 PM UTC-4, David Ripplinger wrote: > > Me too. Please somebody fix this. > > On Thursday, April 11, 2013 2:33:59 PM UTC-4, Mi

[web2py] Re: Broken links on web2py.com downloads page?

2013-04-11 Thread David Ripplinger
Me too. Please somebody fix this. On Thursday, April 11, 2013 2:33:59 PM UTC-4, Michael Ellis wrote: > > Just tried downloading web2py from web2py.com and repeatedly got > > 502 Bad Gateway. > > Tried from 2 different machines, including the one from which I'm sending > this post. > -- --- Y

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Niphlod
note: I'm the one to blame for the latest incarnation of the setup-web2py-nginx-uwsgi-ubuntu.sh script. If you used it the there's a clear note on the gzip section (both on pages and static files) ... - on the minimizing assets, web2py provides a runtime helper, though usually you'd want to do

[web2py] Re: ZeroMQ in web2py

2013-04-11 Thread Arnon Marcus
On Thursday, April 11, 2013 10:57:44 AM UTC-7, Derek wrote: > > TCP is only the transport - you still have your application-specific > protocols that you'd need to write. If your logstash gets a message like > 'addlog "i like pizza" 07-11-2011' it doesn't know whether 'i like pizza' > is an ap

[web2py] Broken links on web2py.com downloads page?

2013-04-11 Thread Michael Ellis
Just tried downloading web2py from web2py.com and repeatedly got 502 Bad Gateway. Tried from 2 different machines, including the one from which I'm sending this post. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from

[web2py] Re: ZeroMQ in web2py

2013-04-11 Thread Derek
TCP is only the transport - you still have your application-specific protocols that you'd need to write. If your logstash gets a message like 'addlog "i like pizza" 07-11-2011' it doesn't know whether 'i like pizza' is an application, a status, or a priority level. So ZeroMQ isn't going to make

[web2py] gluon.contrib.stripe not working: No JSON object could be decoded

2013-04-11 Thread David Ripplinger
Just to see if I could get it to work, I tried the simple example of using Stripe found here in the online book. Even for the default welcome app, with the code added to the index controller, I get the error "No JSON object could be deco

[web2py] Re: firebase anybody

2013-04-11 Thread Derek
Yup, it's very cool. On Thursday, April 11, 2013 9:34:55 AM UTC-7, Massimo Di Pierro wrote: > > Somebody pointed me to this: > >https://www.firebase.com > > Looks very interesting service. > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" g

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Marco Túlio Cícero de M . Porto
also, about PageSpeed Insights, it tells me the following: - High priority. These suggestions represent the largest potential performance wins for the least development effort. You should address these items first: Improve server response time

[web2py] upgrading appengine has broken web2py

2013-04-11 Thread Carl
With an update to appengine, all is still fine when running web2py locally. but if I run dev_appserver then on start-up I get the following kicked out at the console... File "F:\wp\TestEnvoy\web2py\gluon\contrib\gql.py", line 5, in from gluon.dal import DAL, Field, Table, Query, Set, Expres

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Marco Túlio Cícero de M . Porto
on nginx.conf, all compression was commented by default (although it was enabled on another files - gzip.conf and gzip_static.conf). I changed that, but I haven't seen much of a change on load time (despite the fact that PageSpeed Insight ranked better the page). Still checking. 2013/4/11 Marc

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Marco Túlio Cícero de M . Porto
sounds nginx is not gzip compressing static files, such as css and js. Is that normal behavior ? 2013/4/11 Marco Túlio Cícero de M. Porto > I'll double check that then... thanks for your help. > > > 2013/4/11 LightDot > >> You're absolutely correct. 6 seconds or even db timeouts an just a few

[web2py] firebase anybody

2013-04-11 Thread Massimo Di Pierro
Somebody pointed me to this: https://www.firebase.com Looks very interesting service. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr.

[web2py] Re: iOS + web2py

2013-04-11 Thread Christian Foster Howes
The backend for starmakerstudios.com and the various applications distributed by StarMaker Interactive are primarily run by web2py on GAE. In addition to the things Jonathan lists in his message, i love the support of this community - finding bugs, submitting patches, and generally keeping me

[web2py] Re: How to display field containing html tags in viewer using the {{=}}python instruction?

2013-04-11 Thread Anthony
Are you saying that "myfield" is some HTML text stored in a database, and you want to insert the HTML in a view? Note, by default, web2py escapes all content written to views -- this is a security measure to prevent malicious code from running. You can prevent the escaping by wrapping in the XML

[web2py] Re: left join unexpected Nones

2013-04-11 Thread Niphlod
can you move that *AND user_id = 3* in the where condition ? On Thursday, April 11, 2013 5:19:15 PM UTC+2, Fabiano Faver wrote: > > > niphlod I'm having a problem with left with AND. > > this is the sql I want to work: > SELECT * > FROM permissao_grupo > LEFT JOIN auth_membership ON auth_membersh

[web2py] Re: routes in windows service not working??

2013-04-11 Thread Stephen Tanner
I Think I tracked down the issue. In the windows service, it just imports the HttpServer class from main, and then creates one using the options.py for its settings. However, when starting a web2py not as a service, it makes a call to main.py In gluon.main.py we can see that rewrite.load is i

Re: [web2py] Re: readable and sqlform fields arguments

2013-04-11 Thread António Ramos
This could be noted in the book. 2013/4/11 Anthony > Yes, it assumes any fields put in the fields list are desired in the form. > If you don't include a fields list, it will include all fields except those > that are neither readable nor writable. > > Anthony > > > On Thursday, April 11, 2013

[web2py] Re: readable and sqlform fields arguments

2013-04-11 Thread Anthony
Yes, it assumes any fields put in the fields list are desired in the form. If you don't include a fields list, it will include all fields except those that are neither readable nor writable. Anthony On Thursday, April 11, 2013 10:43:15 AM UTC-4, Ramos wrote: > > Hello > i noticed that if i have

[web2py] Re: Strange Plugin behaviour

2013-04-11 Thread Anthony
> > Update: Changing > from gluon import * > from globals import Storage, Response > to > from gluon import * > from gluon.globals import Storage, Response > AND restart web2py solve the "import" problem in a plugin. > Restarting is not limited to fixing "import" problems -- it is needed to pi

[web2py] Re: Form hidden field

2013-04-11 Thread Anthony
> > Is there i way that i could make my gps_x and gps_y fields read-only so > field are rendered as form.element('input[name=gps_x]').update(_readonly=True) or Field('gps_x', ..., widget=lambda f, v: SQLFORM.widgets.double.widget(f, v,_readonly =True)) Anthony -- --- You received this

[web2py] Re: ZeroMQ in web2py

2013-04-11 Thread Arnon Marcus
I thought about it, but I would have hopes someone with some experience with web2py internals and perhapse with zmq would rise to the challange... I wouldn't know even where to beging doing something like this myself.. -- --- You received this message because you are subscribed to the Google

[web2py] Re: Form hidden field

2013-04-11 Thread Anthony
You can also set the zoom field's readable and writable attributes to False and instead construct a separate hidden field storing the value: SQLFORM(..., hidden=dict(zoom=[the value])) Anthony On Thursday, April 11, 2013 11:00:41 AM UTC-4, Domagoj Kovač wrote: > > I managed to do it with: > > {

[web2py] Re: left join unexpected Nones

2013-04-11 Thread Fabiano Faver
niphlod I'm having a problem with left with AND. this is the sql I want to work: SELECT * FROM permissao_grupo LEFT JOIN auth_membership ON auth_membership.id_permissao_grupo = permissao_grupo.id AND user_id =3 WHERE permissao_grupo.id_grupo =5 this is what i tried until now: db((db.permissao_g

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Marco Túlio Cícero de M . Porto
I'll double check that then... thanks for your help. 2013/4/11 LightDot > You're absolutely correct. 6 seconds or even db timeouts an just a few > connections mean that something is wrong. It's either much more connections > than it seems or there is a problem in the code or even OS. > > Ricard

[web2py] Re: The MENU helper and "id"

2013-04-11 Thread Anthony
> ul = menu.element("ul") > items = ul.elements("li") > for item in items: > item.atttributes["_id"] = > > Won't work -- the MENU() helper doesn't generate the UL's and LI's until it is serialized. Also, note that .element('ul') returns only the first UL element. To get all the LI elements

[web2py] Re: The MENU helper and "id"

2013-04-11 Thread Anthony
I'm not sure there's an easy way. The MENU() helper doesn't generate the nested UL/LI's until it is actually serialized in the view, so using the server-side DOM is tricky. You can force the serialization and then convert back to a nested helper object using TAG as follows: menu = TAG(MENU(resp

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread Marco Túlio Cícero de M . Porto
2013/4/11 LightDot > Are you using db connection pooling and do you cache your queries? That > could help. > > Connection pooling was web2py default (0), wich means not being used. What would be a good value ? About caching queries, no, wasn't doing that either. I'll try to check if this helps

[web2py] Re: Form hidden field

2013-04-11 Thread Domagoj Kovač
I managed to do it with: {{form.custom.widget.zoom["_hidden"] = "hidden"}} On Thursday, April 11, 2013 4:46:44 PM UTC+2, Domagoj Kovač wrote: > > Hi, > > i have a problem. > > This is my table definition. > > db.define_table('locations', > Field('name', 'string', >

[web2py] Re: Strange Plugin behaviour

2013-04-11 Thread Matteo Luperto
Update: Changing from gluon import * from globals import Storage, Response to from gluon import * from gluon.globals import Storage, Response AND restart web2py solve the "import" problem in a plugin. Il giorno mercoledì 10 aprile 2013 16:49:08 UTC+2, Matteo Luperto ha scritto: > > Dear web2py

[web2py] Form hidden field

2013-04-11 Thread Domagoj Kovač
Hi, i have a problem. This is my table definition. db.define_table('locations', Field('name', 'string', required=True, requires=IS_NOT_EMPTY(), label=LABEL(T("Naziv"), _for="locations_name")), Field('par

[web2py] readable and sqlform fields arguments

2013-04-11 Thread António Ramos
Hello i noticed that if i have db.table1.field1.readable=db.table1.field1.writable=False in my db.py and im my controller if i use sqlform(fields=[...,field1,] i see my field in the form and can edit it. The fact that i put my field in the fields list makes it readable & writable? Thank you An

Re: [web2py] Server performance (cpu/memory)

2013-04-11 Thread LightDot
You're absolutely correct. 6 seconds or even db timeouts an just a few connections mean that something is wrong. It's either much more connections than it seems or there is a problem in the code or even OS. Ricardo made a valid observation in regards to rogue bots. This problem is more wide spr

[web2py] Re: left join unexpected Nones

2013-04-11 Thread Niphlod
the whole point of left= is to trigger a LEFT OUTER JOIN that by design reports ALL the elements of the left table and only the elements that matches of the right table If you don't want this functionality then left= is not good for your usecase On Thursday, April 11, 2013 4:23:12 PM UTC+2,

Re: [web2py] Re: Routing to different web2py apps in pythonanywhere

2013-04-11 Thread Jim Steil
Here is the code in routes.py that got it working for me. routers = dict( # base router BASE=dict( default_application='welcome', domains={'www.app1.com':'app1', 'www.app2.org':'app2'} ), ) On Thu, Apr 11, 2013 at 8:07 AM, Cenk Yıldız wrote: > Hello

[web2py] left join unexpected Nones

2013-04-11 Thread Annet
I have the following code: rows=db(db.node.computedSubClass!=SC_CONSUMER).select(db.node.ALL,db.groups.ALL,left=db.groups.on((db.node.id==db.groups.nodeID)&(db.groups.type!=RELATEDNAMES))) I'd hoped that this would exclude groups of type RELATEDNAMES of rows, however, the code sets all fields of

[web2py] Re: The MENU helper and "id"

2013-04-11 Thread Alan Etkin
> > Can somebody assist how can we define "id"s for sub-menu items? > This should work: ul = menu.element("ul") items = ul.elements("li") for item in items: item.atttributes["_id"] = BTW: with trunk, the following returns an empty list (the menu is not empty): >>> menuitems = menu.eleme

[web2py] Re: Web2py and Webfaction

2013-04-11 Thread KH Cheng
I've done a more recent write-up here. Webfaction has evolved quite a bit. The process of running web2py has gotten much simpler. http://comsul.blogspot.com/2013/03/web2py-on-webfaction.html -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group

[web2py] How to display field containing html tags in viewer using the {{=}}python instruction?

2013-04-11 Thread Serge Bourgeois
My question is certainly trivial, but I cannot find any answer on the web... I try to display a field (let's say myfield)containing html tags in viewer using {{=myfield}}. Example of content:

[web2py] Re: Routing to different web2py apps in pythonanywhere

Hello, I'd like to do the same thing with you, but I did not totally understand what to do in routes.py. Seems like I should modify routes_in and routes_out? Did you manage? Cenk On Friday, February 8, 2013 8:31:36 PM UTC+1, Jim S wrote: > > Thanks Massimo. Since I'm wsgi illiterate I'll try

Re: [web2py] Server performance (cpu/memory)

6 seconds on a db connection (or query, btw) seems unlikely on this scale, even if it's true that most of the development platform (read, your home pc) are now faster than the various VPS lying around, when you coded that particular page you probably noticed a huge loading time in the first

Re: [web2py] Server performance (cpu/memory)

Are you using db connection pooling and do you cache your queries? That could help. On Thursday, April 11, 2013 2:45:41 PM UTC+2, Marco Tulio wrote: > > about 50 to 90% ... > but I see that this is not a problem because of how fast the server > usually answers, this seems to be a problem when t

[web2py] Re: The MENU helper and "id"

Hello, Is it possible to define ids of s if we are using MENU helper / response.menu? On Thursday, 11 April 2013 14:47:00 UTC+5, at wrote: > > > Can somebody assist how can we define "id"s for sub-menu items? > > Thanks > > -- --- You received this message because you are subscribed to th

[web2py] Re: Strange Plugin behaviour

prova Il giorno mercoledì 10 aprile 2013 16:49:08 UTC+2, Matteo Luperto ha scritto: > > Dear web2py users, > I am novice web2py user and I've recently started developing my first real > project. > Unfortunately I'm having some issues: > >- The plugin-controller code is not update when modif

[web2py] Re: MySQL insert on table with_alias causing error

Please move on to a more recent version. What you have is very old. It is backward compatible. On Thursday, 11 April 2013 01:36:48 UTC-5, chris_g wrote: > > > I am running web2py.2.0.9 and I get an error on doing INSERTS with MySQL > if I define a table with an Alias. > > Apparently the DAL will

Re: [web2py] Re: any good open courses with web2py?

the largest open source project I've seen in web2py is movuca, you can check out https://github.com/rochacbruno/Movuca is a social network demo: www.foxter.co 2013/4/11 jjg0 > The killer web app tutorial claims to be for people with no prior > programming skills, is it strange to throw so muc

[web2py] Re: ZeroMQ in web2py

Sounds to me like you have a couple of real life situations you need solutions for. So the best thing to do is start coding. If you're unsure about how to tackle the web2py integration, I'm sure people will provide comments once you present your specific ideas or code drafts. If you start out i

[web2py] Re: Strange Plugin behaviour

I think you're actually running the Mac binary, right? Have you tried running from source on the Mac? Also, the plugin file in question is a *module*, not a controller. By default, changes in module files are not picked up automatically -- if you'd like to do that (not recommended in production

Re: [web2py] Server performance (cpu/memory)

about 50 to 90% ... but I see that this is not a problem because of how fast the server usually answers, this seems to be a problem when the page takes more time to load a single page. and it takes around 6 secs to load a page that checks the database. If I open 5 pages at the same time, it's poss

[web2py] Re: any good open courses with web2py?

The killer web app tutorial claims to be for people with no prior programming skills, is it strange to throw so much emphasis on testing in a course for people who have never programmed? I'm not sure if it is worth taking the time to get selenium working and learn how to use it, or if I should

[web2py] Re: any good open courses with web2py?

we're working on having a better recommended (and documented, and simple) way to run tests. Until recently I didn't think about tests at all: this speeded up greatly the productivity but on the long run a lot of time has been "wasted" on worrying too much if, e.g., I can upgrade web2py (or for

[web2py] Re: any good open courses with web2py?

I tried the killer web app tutorial a while back but could never get selenium working. Do people use this? Is it normal to put so much emphasis on writing these tests first when working on a site? On Saturday, April 6, 2013 11:04:19 AM UTC-4, samuel bonilla wrote: > > > link2 : http://killer

[web2py] Re: impersonate any user

Even worse, the impersonate action is never logged in the auth_event. It seems that in the impersonate definition (tools.py), the self.log_event is not reached, due to the callback above it, which is a redirect_after_login .. It seems like a bug to me. if onaccept: form = Stora

Re: [web2py] Pyfpdf - How to fit long data descriptions in the table with proper text wrapping in rows/columns

PDF paths are hard, so we tried some practical solutions. See this appreport. https://github.com/lucasdavila/web2py-appreport After long searching found something that can permanently solve these problems that fpdf, pisa, geraldo bring us in doing pdf. I think you, as I found the solution. {{}}'

[web2py] Re: Strange Plugin behaviour

I've tried to replicate both errors in a simple example; 1. I've downloaded a fresh version of web2py (4.2.6 -stable). 2. New simple application. 3. Added 2 plugins from here : MPTT and Tree Crud 4. Added a simple controller to test these p

[web2py] Re: ZeroMQ in web2py

> I have no idea what you are trying to say there. > > I am saying that there is an explosion of solutions for every conceivable challenge, and the problem is that they are all islands-onto-themselves - there is no standard way for application to communicate with each other, and ZeoMQ could s

[web2py] The MENU helper and "id"

Can somebody assist how can we define "id"s for sub-menu items? Thanks -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.c

[web2py] catching server exception in client GWT code

Probably a small # of developers in this situation... I'm using web2py on the server and GWT on the client. I'd like to throw an exception in my web2py server code and catch and handle in in my client GWT code. So far, when I catch an exception, GWT only reports a generic "500" status code whe

[web2py] Preorder tree traversal

HI, i saw there was a discussion about preorder tree traversal https://groups.google.com/forum/?fromgroups=#!topic/web2py/Bw792rYt_nM. The thing that i don't understand is how to display this data in a form in a select dropdown. I think i must use SQLForm.factory but i am not sure if i must cr

[web2py] Pyfpdf - How to fit long data descriptions in the table with proper text wrapping in rows/columns

Hi All, I am having a few problems with my code to generate proper PDF reports. Basically I have the same problems with reportlab so i am giving pyfpdf a try - *Problems:* 1. Long text (example *description *in below code) does not fit in the boundaries. It does not wrap to next

[web2py] Re: Default login script

I found it: auth.settings.login_url = URL('user', args='login') On Thursday, April 11, 2013 9:35:09 AM UTC+2, Domagoj Kovač wrote: > > Hi, > > is there anyway that i could change default login script. So when session > expires user is logged out and redirected to page i provide. > -- --- Yo

[web2py] Default login script

Hi, is there anyway that i could change default login script. So when session expires user is logged out and redirected to page i provide. -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving