Re: [web2py] Custom attributes in

2012-04-18 Thread Jon Molesa
Thank you very much Bruno. *On Sun, Apr 15, 2012 at 12:10:02AM -0300 Bruno Rocha wrote: > Date: Sun, 15 Apr 2012 00:10:02 -0300 > From: Bruno Rocha > Subject: Re: [web2py] Custom attributes in > To: web2py@googlegroups.com > >DIV(, **{"_data-role": "something"}) > >[1]http://zer

[web2py] E-Form

2012-04-18 Thread IVINH
Hi all, I want to develop e-form applications by web2py. You have any experience please share me. I found this link, it says on the features I need: http://www.ibm.com/developerworks/data/library/techarticle/dm-0904db2electronicforms/ Thank you very much.

[web2py] Re: display a list of the database entries

2012-04-18 Thread BlueShadow
Thanks guys. I want to display them in the left sidebar (which is in my layout). That would mean I have to give each function the list of the articles? or is there a diffrent way?

[web2py] Re: heroku, web2py and gunicorn

2012-04-18 Thread Rahul
I tried with the latest code in trunk - There seems to be some issue. It ignores -s or --server= parameters. it always starts rocket server. Please see the logs below. *-bash-3.2$ python anyserver.py -s gunicorn* starting gunicorn on 127.0.0.1:8000... Usage: anyserver.py [options] anyserver.py

[web2py] Re: heroku, web2py and gunicorn

2012-04-18 Thread Rahul
Also tried this on Win7 with web2py from trunk, it gives me below issue - Simply trying to start web2py using anyserver and gunicorn on default port (no command line options called). So we have 2 issues one reported earlier on centos and other on win7(this issue). Let me know if i am missing so

[web2py] Re: heroku, web2py and gunicorn

2012-04-18 Thread David Marko
* fcntl* is related to UNIX. As I know gunicorn is not intended to work on Windows because of internal design. David Dne středa, 18. dubna 2012 10:34:53 UTC+2 Rahul napsal(a): > > Also tried this on Win7 with web2py from trunk, it gives me below issue - > Simply trying to start web2py using an

[web2py] AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread Johann Spies
I have the following function in a module. When I comment out the 'links' it works without a problem, but with the links active I get the error in the subject line: def artikels(query = None): db = current.db if not query: query = db.akb_articles.id > 0

[web2py] memory 210% (was Re: CPU 210%)

2012-04-18 Thread Gour
On Wed, 18 Apr 2012 08:54:29 +0200 "Roberto De Ioris" wrote: > By the way, it is pretty strange you found 'threading' support a > uwsgi-blocker as very few (maybe 3-4, uWSGI included) production-grade > WSGI servers seriously supports them (with mod_wsgi having the better > implementation for sur

[web2py] Re: heroku, web2py and gunicorn

2012-04-18 Thread Rahul
Thanks! David. So I'll continue testing on CentOs then.. Lets see what Massimo has to say for the issue /error reported earlier. Thanks, Rahul D On Wednesday, April 18, 2012 2:29:08 PM UTC+5:30, David Marko wrote: > > * fcntl* is related to UNIX. As I know gunicorn is not intended to work > on

Re: [web2py] memory 210% (was Re: CPU 210%)

2012-04-18 Thread Roberto De Ioris
Il giorno 18/apr/2012, alle ore 11:11, Gour ha scritto: > On Wed, 18 Apr 2012 08:54:29 +0200 > "Roberto De Ioris" wrote: > >> By the way, it is pretty strange you found 'threading' support a >> uwsgi-blocker as very few (maybe 3-4, uWSGI included) production-grade >> WSGI servers seriously supp

[web2py] Re: memory 210% (was Re: CPU 210%)

2012-04-18 Thread Gour
On Wed, 18 Apr 2012 11:29:09 +0200 Roberto De Ioris wrote: > I am the one you are already talking about it on irc :) Ohh, you're the uwsgi author? I thought you're using 'unbit' nick. :-) > By the way uWSGI is for sure the one consuming less memory (in > relation to features you get) in the gr

Re: [web2py] Re: memory 210% (was Re: CPU 210%)

2012-04-18 Thread Vasile Ermicioi
from my experience, uwsgi uses less memory than gunicorn, I managed to use uwsgi on webfaction when they provided only 80Mb RAM (now they provide 256Mb)

[web2py] Please help me to understand the use of components and ajax in this case

2012-04-18 Thread Johann Spies
When the details of the journal is viewed, there is a button inviting the viewer to click in order to show articles published by this journal. I want then a grid to appear below the journal details. If I just put a {{=LOAD('default', 'joernaalartikels.load', ajax=True)}}')}}', in the view the

[web2py] Re: memory 210%

2012-04-18 Thread Gour
On Wed, 18 Apr 2012 13:01:31 +0300 Vasile Ermicioi wrote: > from my experience, uwsgi uses less memory than gunicorn, Thank you. > I managed to use uwsgi on webfaction when they provided only 80Mb RAM > (now they provide 256Mb) I was using webfaction before migrating to djangohosting.ch which

[web2py] official book vs web2py cookbook

2012-04-18 Thread Gour
How does web2py development cookbook compare with the official 'book'? Is official one supposed to be the 1st one read when learning web2py followed by development book or they can be read in parallel? Sincerely, Gour -- What is night for all beings is the time of awakening for the self-contr

Re: [web2py] official book vs web2py cookbook

2012-04-18 Thread Johann Spies
On 18 April 2012 12:25, Gour wrote: > How does web2py development cookbook compare with the official 'book'? > > Is official one supposed to be the 1st one read when learning web2py > followed by development book or they can be read in parallel? > > You can read them in parallel. The Cookbook ad

[web2py] Re: display a list of the database entries

2012-04-18 Thread BlueShadow
Oh well it was actually pretty easy. Thanks guys

[web2py] Error with mssql database : Field is a reserved SQL word

2012-04-18 Thread Khalil KHAMLICHI
Hi, I am trying to create an interface to sort of manage the database of a windows software (a very common need actually), this database is under Microsoft SQL Server 2008 Express Edition, and one of its mean tables has a field called 'Order' which is a reserved word in SQL language, and using thi

[web2py] Re: IS_TIME(format='%H:%M') unexpected keyword argument format

2012-04-18 Thread villas
Hi Annet, Yes, take a look at the code in gluon/validators.py Best Regards, D On Wednesday, 18 April 2012 07:04:46 UTC+1, Annet wrote: > > Hi Villas, > > Thanks for your reply. > > IS_TIME() does not format but understands the following formats >> >> > I thought maybe in line with IS_DATE(f

Re: [web2py] Error with mssql database : Field is a reserved SQL word

2012-04-18 Thread OTTIH ARINZE
Sometimes you need words to make identification of your columns easier and unfortunately, some of these words may be reserved words. However, you could put such words in square brackets and use them as column names so you could put such as [Order] instead of just 'Order' - Original Message

[web2py] Dart - New Google Language

2012-04-18 Thread villas
I was interested to see this. http://www.dartlang.org/ I've always dreaded the idea of developing in JS which seems to be the way that things are heading, but maybe Dart will evolve into something much better?

Re: [web2py] Error with mssql database : Field is a reserved SQL word

2012-04-18 Thread Khalil KHAMLICHI
Well since the DAL handles all the exchange with database . . . How can I add squares and where?

Re: [web2py] Re: routes.py

2012-04-18 Thread Jonathan Lundell
On Apr 17, 2012, at 11:58 PM, IVINH wrote: > Thank you, but I can use the syntax as: 'domain.com': 'domain.com:8000' to > redirect with routes.py? No. Web2py (and its router) can't do anything until they receive the packet. If they listen on port 8000 and the browser sends the request to port 80

Re: [web2py] Dart - New Google Language

2012-04-18 Thread Michele Comitini
looking at the syntax it seems a step back compared to coffescript or any python to js translator... mic Il 18 aprile 2012 14:56, villas ha scritto: > I was interested to see this. > http://www.dartlang.org/ > I've always dreaded the idea of developing in JS which seems to be the way > that thi

[web2py] Re: heroku, web2py and gunicorn

2012-04-18 Thread Massimo Di Pierro
I experience the same issue but I have a different diagnoses. It is not ignoring -s (although it says it does). In fact it is calling the gunicorn method. The problem is that it fails when when creating an instance of the gunicorn server and I do not know way. In stead of going into the server

Re: [web2py] Dart - New Google Language

2012-04-18 Thread Khalil KHAMLICHI
I would rather invest in pure JavaScript and HTML5, there would be a lot of demands for those languages (in thier pure state not thru a translator) as the future is bringing them into the desktop and the smartphone as NATIVE applications, On Wed, Apr 18, 2012 at 1:43 PM, Michele Comitini < michel

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
LOL sorry I didn't mean programming threads, I mean't form threads, meaning people posting comments in forms about issues. I can see how that was miss understood. Honestly I am kind of liking the idea behind event based servers more then thread based. On Tue, Apr 17, 2012 at 11:54 PM, Roberto De I

[web2py] Re: Please help me to understand the use of components and ajax in this case

2012-04-18 Thread simon
the onclick needs to be "ajax.; return false;" On Wednesday, 18 April 2012 11:13:34 UTC+1, Johann Spies wrote: > > When the details of the journal is viewed, there is a button inviting the > viewer to click in order to show articles published by this journal. > > I want then a grid to app

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
Are you storing sessions in db or FS? http://zerp.ly/rochacbruno Em 18/04/2012 02:18, "Bruce Wade" escreveu: > Yeah, I am not sure how well web2py can handle load but I am going to find > out pretty fast. I finished setting up a load balancer today, going to have > 3 servers under it running ngi

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
Currently FS On Wed, Apr 18, 2012 at 7:22 AM, Bruno Rocha wrote: > Are you storing sessions in db or FS? > > http://zerp.ly/rochacbruno > Em 18/04/2012 02:18, "Bruce Wade" escreveu: > > Yeah, I am not sure how well web2py can handle load but I am going to find >> out pretty fast. I finished set

Re: [web2py] Re: Database design

2012-04-18 Thread Chris Rowson
Thanks for confirming this for me, this did seem to be the most sensible way to approach the problem :-) Chris On Wed, Apr 18, 2012 at 1:04 AM, simon wrote: > You can do this with a single form. At the top of the controller set > readable=false, writable=false for the fields you do not want on

[web2py] Re: Please help me to understand the use of components and ajax in this case

2012-04-18 Thread Anthony
> > In the Controller: > > wys_artikels = FORM(INPUT(_type='submit', > _value = T('Click to view articles'), > _onclick = "ajax('joernaalartikels', [], > 'artikels')")) > > > And in the view: > > {{=wys_artikels}} > > > > > A click o

[web2py] Re: AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread Anthony
Your links function calls URL with r=request -- is request defined as a string somewhere in the module before that function? On Wednesday, April 18, 2012 5:09:06 AM UTC-4, Johann Spies wrote: > > I have the following function in a module. When I comment out the 'links' > it works without a prob

Re: [web2py] Error with mssql database : Field is a reserved SQL word

2012-04-18 Thread Khalil KHAMLICHI
looks like its a DAL issue, The DAL need to include the [ ] by default around column names, I also tested using " " around the columns and it works too. Hopefully Massimo you will look at this, in the meantime I will try to hack my way in the source files. here is a code I tested outside w2p :

Re: [web2py] Dart - New Google Language

2012-04-18 Thread Bruce Wade
I agree 100% with Khalil. pure JavaScript and HTML5 + Canvas + webgl is where the future is going to shine. On Wed, Apr 18, 2012 at 6:59 AM, Khalil KHAMLICHI < khamlichi.kha...@gmail.com> wrote: > I would rather invest in pure JavaScript and HTML5, there would be a lot > of demands for those lang

Re: [web2py] Re: customized edit for using .smartgrid

2012-04-18 Thread Jim Steil
Massimo I updated from trunk today and now I'm getting the following traceback: Traceback(most recent call last): File"C:\dev\web2py\gluon\restricted.py",line205,inrestricted execccodeinenvironment File"C:/dev/web2py/applications/InfoCenter/controllers/applications.py"

[web2py] Re: Digitally signed URLs

2012-04-18 Thread Sanjeet Roy
you have to use this its working fine :- def one(): KEY = 'mykey' return dict(link=URL('two', vars=dict(a=123), hmac_key=KEY)) def two(): if not URL.verify(hmac_key=KEY): raise HTTP(403) # do something return locals() On Sunday, April 15, 2012 7:33:00 AM UTC+5:30, pyhead

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
I recommend you to store sessions on db or cache like memcached, redis... If you are going to run in a load balance, sessions in disk will be a problem. On Wed, Apr 18, 2012 at 11:32 AM, Bruce Wade wrote: > Currently FS > > > On Wed, Apr 18, 2012 at 7:22 AM, Bruno Rocha wrote: > >> Are you stori

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
There are directions for this on book http://web2py.com/books/default/chapter/29/4#session Store session on db or set separate=True On Wed, Apr 18, 2012 at 1:36 PM, Bruno Rocha wrote: > I recommend you to store sessions on db or cache like memcached, redis... > If you are going to run in a load

[web2py] annoying behaviour with computed fields

2012-04-18 Thread simon
I have a person table with date of birth and a compute field for age. I want my form to show date of birth (writable) and age (read only). When the form is accepted I reread the table and create a new SQLFORM with the new age. However I cannot get this to work. - On a SQLFORM the age does n

Re: [web2py] Dart - New Google Language

2012-04-18 Thread villas
Naturally JS is extremely popular -- as far as client-side programming does, it's more or less the only show in town. But what about server-side? At the moment we have to use things like python, which is great and IMO much better than JS. However, I don't think python will ever cross over

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
uwsgi is sure not as easy to get working correctly as apache is. Keep getting the following: 2012/04/18 10:44:49 [error] 23686#0: *8454 upstream prematurely closed connection while reading response header from upstream, client: 173.180.212.86, server: youadstage, request: "GET / HTTP/1.1", upstream

[web2py] Re: AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread simon
There is no "r" parameter for URL. Not sure what you are trying to pass. You already specify the controller and function. On Wednesday, 18 April 2012 10:09:06 UTC+1, Johann Spies wrote: > > I have the following function in a module. When I comment out the 'links' > it works without a problem, b

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
Ok got it running, restarted uwsgi not sure what the issue was. However following the guides I my static content isn't being loaded: http://50.116.6.124 On Wed, Apr 18, 2012 at 10:46 AM, Bruce Wade wrote: > uwsgi is sure not as easy to get working correctly as apache is. Keep > getting the foll

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
Got it work had to change the static path in the config to remove ~* On Wed, Apr 18, 2012 at 11:00 AM, Bruce Wade wrote: > Ok got it running, restarted uwsgi not sure what the issue was. > > However following the guides I my static content isn't being loaded: > http://50.116.6.124 > > > On Wed,

Re: [web2py] CPU 210%

2012-04-18 Thread Roberto De Ioris
> Ok got it running, restarted uwsgi not sure what the issue was. > > However following the guides I my static content isn't being loaded: > http://50.116.6.124 The error you got earlier, happens when you do not read the body of the request (for example when you have POST data, but you do not re

Re: [web2py] Dart - New Google Language

2012-04-18 Thread mikech
Isn't that the goal of Node.js? I agree Dart is an interesting language, I'm currently following it. It does seem with efforts like Node.js and Meteor that JS is advancing on both the server and client. On Wednesday, April 18, 2012 10:35:34 AM UTC-7, villas wrote: > > Naturally JS is extremely

Re: [web2py] Content-type header for HTTP exception incorrectly set ?

2012-04-18 Thread Joseph Piron
Happy to help. Indeed content should also, for now I json.dumps things.. Just a question, where is the tracker ? This one seems ... not functional ? http://code.google.com/p/web2py-issuetracker/updates/list Br. On 16 Apr 2012, at 16:19, Jonathan Lundell wrote: > On Apr 16, 2012, at 7:02 AM, Ma

[web2py] Re: AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread Anthony
On Wednesday, April 18, 2012 1:56:08 PM UTC-4, simon wrote: > > There is no "r" parameter for URL. Not sure what you are trying to pass. > You already specify the controller and function. Yes, there is an "r" argument to URL -- it takes a request object and reads the current application, contro

[web2py] Re: AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread simon
So there is. That is handy. Not mentioned in the book! On Wednesday, 18 April 2012 19:53:40 UTC+1, Anthony wrote: > > On Wednesday, April 18, 2012 1:56:08 PM UTC-4, simon wrote: >> >> There is no "r" parameter for URL. Not sure what you are trying to pass. >> You already specify the controller an

Re: [web2py] Dart - New Google Language

2012-04-18 Thread mikech
By the way O'Reilly has a free book on Dart at: http://shop.oreilly.com/product/0636920025887.do On Wednesday, April 18, 2012 11:11:55 AM UTC-7, mikech wrote: > > Isn't that the goal of Node.js? I agree Dart is an interesting language, > I'm currently following it. It does seem with efforts

[web2py] Re: AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread Anthony
On Wednesday, April 18, 2012 3:11:39 PM UTC-4, simon wrote: > > So there is. That is handy. Not mentioned in the book! > In most cases, it's not necessary -- when you exclude "r", it defaults to current.request. Anthony

[web2py] Using _before_insert to implement subsecond precision?

2012-04-18 Thread nick name
I was away for two weeks and finally caught up with the git updates and the mailing list; what a pleasant surprise! The before/after infrastructure is a joy. It is simple and elegant, much faster and more effective than the monkeypatching I submitted, AND with auditing implemented on top of it.

Re: [web2py] Re: Database design

2012-04-18 Thread Chris Rowson
I've put this into the controller to test this out: def create_newbuild(): #newbuild and resale properties share the same table. #the extraneous fields are rendered non-writable by the below db.property.land.writable = False db.property.reference_number.writable = False db.prop

[web2py] Uploaded files path discovery

2012-04-18 Thread rdodev
So, as per documentation, the default upload file location is: web2py\applications\application_name\uploads however, I'd like to avoid hard-coding this path since the app might be deployed in different environs and relative paths don't seem to work (i.e. '../uploads/' + file_name') . So from a c

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
Thanks for the explanation the error was strange because first I was getting permission connecting to the database error I updated that then I got that error. Oh well it is all working now. 2 systems (1 apache, 1 nginx + uwsgi) on a load balancer going to add a 3rd nginx + uwsgi -- Regards, Bruce

Re: [web2py] Uploaded files path discovery

2012-04-18 Thread Khalil KHAMLICHI
for every field you can specify the upload folder, uploadfolder=os.path.join(request.folder,'uploads'), also "request.folder" might be what you re looking for. from http://web2py.com/books/default/chapter/29/6 Field(name, 'string', length=None, default=None, required=False, requires='',

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
I am about to give up on uwsgi. Everything was working, and I pulled the latest code now it doesn't work, but my other server with the same code works. On Wed, Apr 18, 2012 at 2:40 PM, Bruce Wade wrote: > Thanks for the explanation the error was strange because first I was > getting permission c

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
After changing sessions to use the database instead of the FS I can no longer use uwsgi On Wed, Apr 18, 2012 at 3:17 PM, Bruce Wade wrote: > I am about to give up on uwsgi. Everything was working, and I pulled the > latest code now it doesn't work, but my other server with the same code > works.

[web2py] Memory leak in standalone DAL (issue #731), can you please help test?

2012-04-18 Thread nick name
I can reproduce this problem on both Linux and Windows (have no access to a Mac), and Massimo cannot reproduce this on his Mac. Perhaps something is borked about all my python installations (some site-packages I use or something). Can you help test? Just go into the web2py directory, and start

[web2py] web2py logging to firePHP using firepy?

2012-04-18 Thread JimK
Has anyone figured out how to get logging to firePHP using firepy for web2py? A bit of web searching shows that someone figured it out a while back but his script no longer exists for download. This would really be useful for debugging.

Re: [web2py] CPU 210%

2012-04-18 Thread Bruno Rocha
why? On Wed, Apr 18, 2012 at 7:24 PM, Bruce Wade wrote: > After changing sessions to use the database instead of the FS I can no > longer use uwsgi > > > On Wed, Apr 18, 2012 at 3:17 PM, Bruce Wade wrote: > >> I am about to give up on uwsgi. Everything was working, and I pulled the >> latest co

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
Why I have no idea, there were not errors in any of the logs, the site would just not load. However the apache one loaded without a problem. as soon as I put it to use the FS again it work. On Wed, Apr 18, 2012 at 4:02 PM, Bruno Rocha wrote: > why? > > > On Wed, Apr 18, 2012 at 7:24 PM, Bruce Wa

[web2py] Postgres expers -- interesting design issue

2012-04-18 Thread Cliff
There are two tables, as follows: db.define_table('A', Field('name')) db.define_table('B', Field('name'), Field('id_from_table_a)) Also there are two applications. One, called 'both_a_and_b', uses both tables and uses 'table_a_id' as a foreign key in table B. The other, called 'table_b_only

[web2py] Re: Memory leak in standalone DAL (issue #731), can you please help test?

2012-04-18 Thread Anthony
I can confirm the same behavior with this script on both Ubuntu 12.04 and Windows 7 -- both running Python 2.7 and web2py trunk. Anthony On Wednesday, April 18, 2012 6:41:22 PM UTC-4, nick name wrote: > > I can reproduce this problem on both Linux and Windows (have no access to > a Mac), and Ma

Re: [web2py] Re: Database design

2012-04-18 Thread Anthony
db.property.property_type.writable = False Anthony On Wednesday, April 18, 2012 4:32:02 PM UTC-4, leftcase wrote: > > I've put this into the controller to test this out: > > def create_newbuild(): > #newbuild and resale properties share the same table. > #the extraneous fields are rendere

[web2py] jsonrpc and db insert - do jsonrpc protect database insert?

2012-04-18 Thread Memorysaver
I really appreciate that web2py has a wonderful jsonrpc server, but I have a question about implementing a safe remote database insertion. According to http://json-rpc.org/ 's specification, jsonrpc has a strict rpc protocol to ensure the transaction. However, I don't understand the behavior

Re: [web2py] Dart - New Google Language

2012-04-18 Thread villas
I don't know too much about node.js but I was dismissing it on the basis that JS was fundamentally a light-weight language. I may be wrong about that and the way it will evolve. For now, I have it in the next pigeon hole to php. I long for the time that I will be able to program in a prope

[web2py] WARNING:web2py:Mail.send failure:'module' object has no attribute 'SMTP_SSL'

2012-04-18 Thread weheh
mail.settings.ssl = True mail.settings.tls = True mail.settings.login = True mail.settings.server = 'server:port' # your SMTP server mail.settings.login = 'login:password' # your credentials mail.settings.sender = 'm...@server.com' # your email This is an SSL mail server. When I try to send an

Re: [web2py] Error with mssql database : Field is a reserved SQL word

2012-04-18 Thread Massimo Di Pierro
At this point we do not support table names and field names that are keywords in SQL. In fact the DAL has a parameter DAL(..., check_reserved=True) that will check for you and will prevent you from using the field name "order". The check is normally disabled for speed. On Wednesday, 18 April

Re: [web2py] Re: customized edit for using .smartgrid

2012-04-18 Thread Massimo Di Pierro
Thanks for checking this. I made one more change to trunk that should fix it. Please try it again. BTW. make sure you use grid and not smartgrid. On Wednesday, 18 April 2012 11:25:07 UTC-5, Jim S wrote: > > Massimo > > I updated from trunk today and now I'm getting the following traceback: > >

[web2py] Re: Memory leak in standalone DAL (issue #731), can you please help test?

2012-04-18 Thread Massimo Di Pierro
In order to isolate the problem, let's check if this is a sqlite:memory issue. Can you reproduce the problem with sqlite://storage.db ? On Wednesday, 18 April 2012 17:41:22 UTC-5, nick name wrote: > > I can reproduce this problem on both Linux and Windows (have no access to > a Mac), and Massimo

[web2py] Re: AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread Cliff
Should that not be current.request? On Wednesday, April 18, 2012 5:09:06 AM UTC-4, Johann Spies wrote: > > I have the following function in a module. When I comment out the 'links' > it works without a problem, but with the links active I get the error in > the subject line: > > def artikels(qu

[web2py] Re: Web2py templates for HamlPY

2012-04-18 Thread Michael Toomim
This is cool! how do we use it? On Sunday, January 9, 2011 5:07:28 PM UTC-8, Dane wrote: > > Hey all, thought you might be interested to know that I just patched a > project HamlPy, a library for converting a pythonic haml-like syntax > to django templates/html, to work with web2py templates. >

[web2py] Re: Digitally signed URLs

2012-04-18 Thread pyhead
Thanks Niphlod, adding request works! The book should be corrected.

[web2py] Error on web2py book

2012-04-18 Thread Cody Goodman
Going through the web2py book, and noticed an error on this page: http://web2py.com/books/default/chapter/29/3 def find_by(keyword): "finds pages that contain keyword for XML-RPC" return db(db.page.title.contains(keyword).select().as_list() should be: def find_by(keyword): "fi

[web2py] pure css skins?

2012-04-18 Thread Massimo Di Pierro
Are you aware of any template/layout/skin system based on one and the same html but different CSS/images? Something like zengarden. It is ok if it is PHP based as long as it is possible to convert one php file into HTML and re-use the CSS.

Re: [web2py] Web2py templates for HamlPY

2012-04-18 Thread Bruno Rocha
Excellent! Can you write a short recipe in http://www.web2pyslices.com explaining how to use that? Thank you! Bruno. On Sun, Jan 9, 2011 at 11:07 PM, Dane wrote: > Hey all, thought you might be interested to know that I just patched a > project HamlPy, a library for converting a pythonic haml

[web2py] Re: WARNING:web2py:Mail.send failure:'module' object has no attribute 'SMTP_SSL'

2012-04-18 Thread weheh
After looking at web2py Mail code, it looks like mail.settings.ssl and mail.settings.tls are mutually exclusive? So I set mail.settings.ssl = False. Still didn't work. --- After much further testing, I'm concluding that the problem is with the mail server not being configured properly. I tried

Re: [web2py] CPU 210%

2012-04-18 Thread Bruce Wade
Any ideas what would cause the system to stop working without errors when using database sessions? On Wed, Apr 18, 2012 at 4:08 PM, Bruce Wade wrote: > Why I have no idea, there were not errors in any of the logs, the site > would just not load. However the apache one loaded without a problem. a

Re: [web2py] CPU 210%

2012-04-18 Thread Roberto De Ioris
> Any ideas what would cause the system to stop working without errors when > using database sessions? > I suggest you to start with a uWSGI config resembling mod_wsgi: --lazy --enable-threads Should be enough, and start with a single process (and a single thread). If it works (and it should),

[web2py] Re: CPU 210%

2012-04-18 Thread pbreit
What's your site? YourAdWorld? What's causing the problems, the web site or serving the ads?

Re: [web2py] Error with mssql database : Field is a reserved SQL word

2012-04-18 Thread Khalil KHAMLICHI
I ended up removing this field from my models, since they can accept defaults at db level, so everyone of my inserts works now. The problem comes from the fact that the 3d party db was designed wrongly, I might not face this problem again for years but wouldnt it be wonderful if theDAL was able to

Re: [web2py] Re: CPU 210%

2012-04-18 Thread Bruce Wade
youadworld.com isn't the web2py version yet, http://96.126.99.73 is :D Just loading the page was causing problems, when sessions in database it will just load and load then shows the page that nginx will show if uwsgi isn't loaded buy required. Checking all the log files and there were no errors.

Re: [web2py] Re: CPU 210%

2012-04-18 Thread Bruce Wade
isn't loaded but*** required On Wed, Apr 18, 2012 at 11:00 PM, Bruce Wade wrote: > youadworld.com isn't the web2py version yet, http://96.126.99.73 is :D > > Just loading the page was causing problems, when sessions in database it > will just load and load then shows the page that nginx will

Re: [web2py] Web2py templates for HamlPY

2012-04-18 Thread Khalil KHAMLICHI
Doez this means i have to indent my html and javascript with python code? Just to not use {{pass}}, man thats a lot of work.

Re: [web2py] Re: Please help me to understand the use of components and ajax in this case

2012-04-18 Thread Johann Spies
On 18 April 2012 17:00, Anthony wrote: > > Three problems: > > Thanks Anthony and Simon. I have seen the 'return false' in the Web2py book but this was the first time I have seen an explanation on why that has to be so. Anthony, your explanation helped me a lot while I am busy learning how to

[web2py] can't find logging message in gae admin console

2012-04-18 Thread castanets
Hi, I deployed a web2py app on gae. for logging, *.copied "logging.example.conf" and renamed it to "logging.conf" *.added myapp to [loggers] [loggers] keys=root,rocket,markdown,web2py,rewrite,app,welcome,myapp *.added [logger_myapp] [logger_myapp] level=WARNING qualname=web2py.app.myapp handlers=

Re: [web2py] Re: AttributeError: 'str' object has no attribute 'application'

2012-04-18 Thread Johann Spies
On 19 April 2012 04:26, Cliff wrote: > Should that not be current.request? > > Yes! Thanks Cliff. Well spotted. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)