[web2py] Re: Redis cache and session

2012-11-29 Thread rif
Yes, the support for redis depend on python-redishttps://github.com/andymccurdy/redis-pypackage for python. -rif joi, 29 noiembrie 2012, 02:06:00 UTC+2, Ralo Tannahill a scris: I have tried to make some tests using redis to store cache and sessions but there is no module redis. I am using

Re: [web2py] Re: nginx+uwsgi and ubuntu 12.10

2012-11-29 Thread Johann Spies
On 28 November 2012 22:16, Richard Vézina ml.richard.vez...@gmail.comwrote: BUMP! I have tried uwsgi/nginx several times on different Debian computers. Although I had some success, it just happened that somtimes errors occured. I found it very difficult to debug and gave up on it. I am back

[web2py] Re: How to use the insert method of python list in web2py

2012-11-29 Thread Niphlod
web2py executes python code. If you can do it in the shell, you can do the same thing in web2py. Be careful to check the variable types, probably in your app something is a little different from your shell environment. BTW, why don't you just a = '348' a = int(a) / 100 ? On Thursday,

[web2py] Re: Hide form and erase input

2012-11-29 Thread Niphlod
$(:input) ? On Thursday, November 29, 2012 2:29:46 AM UTC+1, Daniele wrote: Hello all :) I have a db.define_table that defines a particular role and all its fields. One of the fields is a boolean, which will display as a checkbox in the SQLFORM. What I'd like to do is hide ALL the

RE: [web2py] Re: Database deadlocks when using SQL Server

2012-11-29 Thread Boerma, Remco
Hi Hiphlod, Thanks for your response. I wasn't saying do everything without transactions, because you can explicitly start a transaction if I'm not mistaken. But for the built in CAS functionality it doesn't work when using implicit transactions. If you explicitly use a transaction and

Re: [web2py] Re: unable to send e-mail postfix

2012-11-29 Thread Niphlod
web2py uses smtplib, which uses something like telnet under the hood. Technology to talk to a mail server is always the same, no matter what language you use. On Thursday, November 29, 2012 12:20:34 AM UTC+1, keiser1080 wrote: Good idea I will try a other instance (if i have the necessary

[web2py] Re: Web2py doesn't refresh code after changes

2012-11-29 Thread Niphlod
code in controllers, code in models or code in external modules ? On Wednesday, November 28, 2012 10:44:44 PM UTC+1, yes I can wrote: I am trying to use web2py as a wrapper for a several scripts in a low traffic environment. When I change code used by web2py, web2py continues to run the old

[web2py] Re: web2py static folder

2012-11-29 Thread Niphlod
instead of using URL('static', 'css/mycss.css') you use http://cnd.cloudfront.com/whatever/mycss.css On Wednesday, November 28, 2012 10:33:39 PM UTC+1, elyase wrote: What is the way to go if one wants to distribute the static content via Cloudfront CDN? I use Openshift and mod_proxy is

[web2py] Re: Unable to send emails (mail.send) from server

2012-11-29 Thread Aurelijus Useckas
External smtp, gmail --

[web2py] Re: How to use the insert method of python list in web2py

2012-11-29 Thread Joe Barnhart
Hmmm... That would give 3 since Python 2.x keeps the calculation as integer (it won't coerce it to a float). He could do a=int(a)/100.0 But that puts it into a floating point value, and rounding sometimes gives surprising and unexpected results. I am a fan of divmod. How about:

[web2py] dashboard using bootstrap

2012-11-29 Thread Manuele Pesenti
Hi! I would like to build some dashboard pages using bootstrap scaffolding utilities. The dashboard has to contain graph (I use highcharts) and tables... Is there something more I need for bootstrap except what I find in web2py static js libs? Thankyou very mutch Manuele --

Re: [web2py] Re: How to use the insert method of python list in web2py

2012-11-29 Thread Manuele Pesenti
Il 29/11/12 10:49, Joe Barnhart ha scritto: Hmmm... That would give 3 since Python 2.x keeps the calculation as integer (it won't coerce it to a float). He could do a=int(a)/100.0 But that puts it into a floating point value, and rounding sometimes gives surprising and unexpected results.

[web2py] Re: web3py?

2012-11-29 Thread peter
In my experience, and what I have seen from following the threads, the norm is for questions to be answered very well and very quickly. One of the many pleasures of using Web2py is the responsiveness of the users group. There might be the odd exception to this, but this is unusual I believe. So

[web2py] Re: Lazy table bug in define table?

2012-11-29 Thread Joe Barnhart
Oh yes, I am missing entire freight trains of stuff... Here is what I understand now: def __getattr__(self, key): if ogetattr(self,'_lazy_tables') and \ key in ogetattr(self,'_LAZY_TABLES'): tablename, fields, args = self._LAZY_TABLES.pop(key)

Re: [web2py] Re: Database deadlocks when using SQL Server

2012-11-29 Thread Niphlod
Thanks for your response. I wasn’t saying “do everything without transactions”, because you can explicitly start a transaction if I’m not mistaken. But for the built in CAS functionality it doesn’t work when using implicit transactions. If you explicitly use a transaction and therefor

[web2py] Re: The book updates and status

2012-11-29 Thread Kostas M
I have bought the (printed) web2py book (editions 3rd and 4th) from Lulu, and my note is that the black white printouts are much less attractive from the web css book layout. The coloring helps understanding the syntax as well. I wish the printed book could look as nice as the web version... I

[web2py] MARKMIN line break

2012-11-29 Thread Dirk Krause
Hi, sorry if this was answered elsewhere but I couldn't find it: I found no consistent answer how to add single line breaks ('br /') as opposed to paragraphs ('p') into MARKMIN. This is what I found so far: (1) the 'purest' Markdown doesn't allow line breaks at all (found in stackoverflow) (2)

Re: [web2py] Re: How to use the insert method of python list in web2py

2012-11-29 Thread Joe Barnhart
Bzzzt! Thanks for playing! You get 3.0 for your result. (I'm not a python genius but I keep an interpreter handy just to type in stuff and see what I get.) round(int(348)/100,3) 3.0 In your example, you rounded the result AFTER the integer division of 348/100. But the result of the

[web2py] Re: MARKMIN line break

2012-11-29 Thread villas
Use this: [[NEWLINE]] On Thursday, November 29, 2012 11:04:56 AM UTC, Dirk Krause wrote: Hi, sorry if this was answered elsewhere but I couldn't find it: I found no consistent answer how to add single line breaks ('br /') as opposed to paragraphs ('p') into MARKMIN. This is what I found

[web2py] Proposal: create namespaces for translation system

2012-11-29 Thread Daniel González
Hi everyone I post a reply in the web3py thread in this mailing list asking for a site where make a wishlist, but thinking about what I would want in web3py, I realized that I needed in web2py already so I have make a patch for the actual translation system in the gluon/languages.py file. One of

[web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread carlo
No error with web2py 1.9.4. With 2.2.1 I got this with Python 2.5 and Python 2.6 Traceback (most recent call last): File C:\Python25\web2py\gluon\restricted.py, line 212, in restricted exec ccode in environment File C:/Python25/web2py/applications/Hcontrol/controllers/default.py

[SOLVED] Re: [web2py] Re: How to use the insert method of python list in web2py

2012-11-29 Thread Relsi Hur
I was so fixed in the string format, that I was ignoring the basic math! =/ Thanks to everyone for the tips!! This solve very well: %i.%02i % divmod(348,100) Em quinta-feira, 29 de novembro de 2012 09h12min39s UTC-2, Joe Barnhart escreveu: Bzzzt! Thanks for playing! You get 3.0 for

[web2py] Re: Hide form and erase input

2012-11-29 Thread Daniele
Hmm, that gets rid of the input boxes but not of the fieldnames as well. I guess I'll have to do it manually for each field. On Thursday, November 29, 2012 9:40:29 AM UTC, Niphlod wrote: $(:input) ? On Thursday, November 29, 2012 2:29:46 AM UTC+1, Daniele wrote: Hello all :) I have a

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread José Luis Redrejo Rodríguez
Hi Carlo I'm using fpdf without any problem, so I guess the reason is in some of the data you're passing to fpdf. The code of the controller would be needed to can lend you a hand. Regards 2012/11/29 carlo syseng...@gmail.com No error with web2py 1.9.4. With 2.2.1 I got this with Python 2.5

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread carlo
Thank you José, this is strange because with 1.9.4 I have no problem. This is the core part of the function: in the html view I have a link to generate the pdf. ## Before I create a table for html rendering if request.extension==pdf: import os from gluon.contrib.pyfpdf import

[web2py] Re: Unable to send emails (mail.send) from server

2012-11-29 Thread Mark
If McAfee is running on the server, McAfee blocked the emails sending from web2py, which isn't on the whitelist of McAfee. Try to change web2py.exe into apache.exe On Wednesday, November 28, 2012 10:20:55 AM UTC-5, Aurelijus Useckas wrote: Hey, strange situation. Would apreciate your help...

[web2py] Re: Web2py doesn't refresh code after changes

2012-11-29 Thread Anthony
Assuming this is an imported module, you can add the following to a model file: from gluon.custom_import import track_changes; track_changes(True) See http://web2py.com/books/default/chapter/29/04#Accessing-the-API-from-Python-modules . Anthony On Wednesday, November 28, 2012 4:44:44 PM

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread carlo
Found: it seems a problem with 32 bit png files. When converted to 24 bit, pdf rendering was ok. Thank you. Il giorno giovedì 29 novembre 2012 13:45:08 UTC+1, José Luis Redrejo Rodríguez ha scritto: Hi Carlo I'm using fpdf without any problem, so I guess the reason is in some of the data

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread Niphlod
uhm, seemed a different problem: according to http://docs.python.org/2/library/re.html the flags parameter was added only in python 2.7 On Thursday, November 29, 2012 2:55:48 PM UTC+1, carlo wrote: Found: it seems a problem with 32 bit png files. When converted to 24 bit, pdf rendering was

[web2py] Re: Hide form and erase input

2012-11-29 Thread Niphlod
fieldnames as in labels ? On Thursday, November 29, 2012 1:45:22 PM UTC+1, Daniele wrote: Hmm, that gets rid of the input boxes but not of the fieldnames as well. I guess I'll have to do it manually for each field. On Thursday, November 29, 2012 9:40:29 AM UTC, Niphlod wrote: $(:input)

[web2py] Re: web3py?

2012-11-29 Thread Jim S
+1 to what Peter said. On Thursday, November 29, 2012 4:06:30 AM UTC-6, peter wrote: In my experience, and what I have seen from following the threads, the norm is for questions to be answered very well and very quickly. One of the many pleasures of using Web2py is the responsiveness of the

[web2py] SQLFORM.grid and classes on GAE

2012-11-29 Thread Gian Luca Decurtins
Hi all Given the following model (polymodel location - location_outdoor location_indoor) on GAE: define_table('location', Field('name', 'string'), Field('active', 'boolean'), polymodel = True) define_table('location_outdoor', db.location, Field('country', 'string'),

[web2py] Re: Frustration With @reboot Cron

2012-11-29 Thread Magnitus
I'd be curious to know if the lack of feedback on this thread so far is due to the devs being incredibly busy or web2py lacking a genuine working mechanism to execute scripts that have access to the models at startup only. I've tried a lot of permutations for setting a script at the start with

[web2py] Re: MARKMIN line break

2012-11-29 Thread Dirk Krause
ok, thank you. I am only wondering why there is a special tag '[[NEWLINE]] when there is already a one-to-one token for it - the single page break itself. This can be parsed with re.sub(r'([^\n])\n([^\n])', r'\1[[NEWLINE]]\n\2', s) (full example here:

[web2py] Uncouple the Default Registration/Login/Logout Mechanism From Form/Email

2012-11-29 Thread Magnitus
Sincere apologies for poking holes at this beautiful framework, but while I'm in here, I have another issue I encountered while using the framework. I'm only expressing hurdles I've encountered while using the framework in the hope that it can give the devs some insights on how the framework

[web2py] Re: python.org redesign proposals

2012-11-29 Thread Massimo Di Pierro
I agree On Wednesday, 28 November 2012 20:26:47 UTC-6, pbreit wrote: Pretty nice: http://jessenoller.com/2012/11/28/the-great-python-org-redesign/ --

[web2py] Re: Proposal: create namespaces for translation system

2012-11-29 Thread Massimo Di Pierro
Opened an issue and will review it today On Thursday, 29 November 2012 06:17:22 UTC-6, demetrio wrote: Hi everyone I post a reply in the web3py thread in this mailing list asking for a site where make a wishlist, but thinking about what I would want in web3py, I realized that I needed in

[web2py] Re: Frustration With @reboot Cron

2012-11-29 Thread Massimo Di Pierro
I apologize for the lack of responsiveness. Some of us have been busy attending with PyCon Argentina and PyCon Brazil. Everything you propose is sensible. cron @reboot should work but other users have reported problems with it. I believe there is an open ticket about it. I will look at this

[web2py] Re: MARKMIN line break

2012-11-29 Thread Massimo Di Pierro
The idea was to insert explicit newlines inside tags like H1, H2, etc. On Thursday, 29 November 2012 08:52:24 UTC-6, Dirk Krause wrote: ok, thank you. I am only wondering why there is a special tag '[[NEWLINE]] when there is already a one-to-one token for it - the single page break itself.

[web2py] Re: A better way to do this?

2012-11-29 Thread Rod Watkins
See, I knew there had to be something better. It just felt wrong, but I've only been learning python for a few months. Thanks so much. That's so much more elegant. On Wednesday, November 28, 2012 11:05:22 AM UTC-8, Massimo Di Pierro wrote: tags = ', '.join(t.name for t in

[web2py] uwsgi and post-buffering

2012-11-29 Thread ccadmin
Hi all, this is my first post here so allow me to give my compliments to Mr. Di Pierro and all the people that works on this wonderful project. I do not have a big experience in web programming, i came from offline :) programming and triyng to add value to the products of my software house with

[web2py] Transactions in Web2Py over Google App Engine.

2012-11-29 Thread José Manuel López Muñoz
I'm making a room reservation system in Web2Py over Google App Engine. When a user is booking a Room the system must be sure that this room is really available and no one else have reserved it just a moment before. To be sure I make a query to see if the room is available, then I make the

[web2py] Problems installing web2py in a virtualenv in Windows 7

2012-11-29 Thread Bernardo G.
I'm new to Python and I'm trying to install web2py in a virtualenv. I'm running a 32 bit python 2.7.3 installation on a 64 bit Windows 7. From what I read, this should be the process: - install virtualenv (done) - create the virtualenv (done) - install pywin32 in that env (I've read

[web2py] Re: Uncouple the Default Registration/Login/Logout Mechanism From Form/Email

2012-11-29 Thread Massimo Di Pierro
1) good point. We have the following functions but they are not documented: def get_or_create_user(self, keys, update_fields=['email']): def login_bare(self, username, password) 2) you can use auth.define_tables(username=True) so that email is not used for login. The problem is that you still

[web2py] Re: Transactions in Web2Py over Google App Engine.

2012-11-29 Thread Massimo Di Pierro
GAE does not support transactions across multiple tables. You can put your dal code into a function as in def mydblogic(*args): db.insertdb().updatedb(0.select and run it with from google.appengine.ext import db as gae gae.run_in_transaction(mydblogic, *args) On

[web2py] Re: Problems installing web2py in a virtualenv in Windows 7

2012-11-29 Thread Massimo Di Pierro
Not sure this is your problem but the pypi installer for web2py is probably broken and anyway very old. We do not usually install web2py. We just unzip it. On Thursday, 29 November 2012 08:21:30 UTC-6, Bernardo G. wrote: I'm new to Python and I'm trying to install web2py in a virtualenv. I'm

Re: [web2py] uwsgi and post-buffering

2012-11-29 Thread Roberto De Ioris
Hi all, this is my first post here so allow me to give my compliments to Mr. Di Pierro and all the people that works on this wonderful project. I do not have a big experience in web programming, i came from offline :) programming and triyng to add value to the products of my software house

[web2py] web2py on Heroku

2012-11-29 Thread Massimo Di Pierro
FYI (from web2py-developers) Hello everybody, At PyCon Argentina I met Craig Kerstiens from Heroku. He explained to me how heroku works and we were able to make web2py work on heroku. This is still experimental and I will continue tweak it but you may want to give it a try and share your

Re: [web2py] Re: Frustration With @reboot Cron

2012-11-29 Thread Jonathan Lundell
On 29 Nov 2012, at 6:41 AM, Magnitus eric_vallee2...@yahoo.ca wrote: I'd be curious to know if the lack of feedback on this thread so far is due to the devs being incredibly busy or web2py lacking a genuine working mechanism to execute scripts that have access to the models at startup only.

Re: [web2py] Uncouple the Default Registration/Login/Logout Mechanism From Form/Email

2012-11-29 Thread Jonathan Lundell
On 29 Nov 2012, at 7:09 AM, Magnitus eric_vallee2...@yahoo.ca wrote: Sincere apologies for poking holes at this beautiful framework, but while I'm in here, I have another issue I encountered while using the framework. I'm only expressing hurdles I've encountered while using the framework in

[web2py] Re: Uncouple the Default Registration/Login/Logout Mechanism From Form/Email

2012-11-29 Thread Anthony
On Thursday, November 29, 2012 10:34:13 AM UTC-5, Massimo Di Pierro wrote: 1) good point. We have the following functions but they are not documented: def get_or_create_user(self, keys, update_fields=['email']): def login_bare(self, username, password) login_bare() is documented:

[web2py] Re: Hide form and erase input

2012-11-29 Thread Anthony
Maybe you could put all the fields inside a div and then hide/show the whole div. Anthony On Thursday, November 29, 2012 7:45:22 AM UTC-5, Daniele wrote: Hmm, that gets rid of the input boxes but not of the fieldnames as well. I guess I'll have to do it manually for each field. On

[web2py] Re: Hide form and erase input

2012-11-29 Thread Daniele
I could do that. Would I need to add the div directly in the controller or the view? My controller looks something like this now: def mypage(): form = SQLFORM(db.mytable) return dict(form=form) I guess there should be a way to edit the SQLFORM to add an extra div? Thanks guys On

Re: [web2py] dashboard using bootstrap

2012-11-29 Thread Richard Vézina
http://www.highcharts.com/ Is pretty nice! Do you know something similar that is open source? Richard On Thu, Nov 29, 2012 at 4:58 AM, Manuele Pesenti manuele.pese...@gmail.comwrote: highcharts --

[web2py] Re: MARKMIN line break

2012-11-29 Thread Dirk Krause
I see, and thank you. Now we already have a database full of text without the 'newline' tag and I have two options: (1) traverse through the database and applying foresaid regex to all text fields or (2) hack the regex somewhere into the code. I just tried (2) and it seems to be working; I

[web2py] Re: web2py on Heroku

2012-11-29 Thread Dirk Krause
From my attempts to get apps running on Heroku (a few experiments with nodejs) people expect to create and edit the requirements and the procfile anyways. The procedure is also described in Herokus Tutorialshttps://devcenter.heroku.com/articles/python, so one needs to understand the concept

[web2py] Login not working after moving to 2.2.1

2012-11-29 Thread Geo
Hello All, I have an application running on Web2py source (windows) 1.99.7 (2012-03-04 22:12:08) stable, with the following auth settings from gluon.tools import Auth, Crud, Service, PluginManager, prettydate auth = Auth(db, hmac_key=Auth.get_or_create_key()) crud, service, plugins = Crud(db),

Re: [web2py] dashboard using bootstrap

2012-11-29 Thread Dirk Krause
Check http://d3js.org/ and http://raphaeljs.com/ Also there is http://paperjs.org/ and esp http://processingjs.org/ There is a good overview here: http://coding.smashingmagazine.com/2012/02/22/web-drawing-throwdown-paper-processing-raphael/ Am Donnerstag, 29. November 2012 17:24:43 UTC+1

[web2py] Re: Hide form and erase input

2012-11-29 Thread Anthony
The easiest way is probably via a custom form: http://web2py.com/books/default/chapter/29/07#Custom-forms. Another option -- each table row or div containing a field input has an id that starts with [tablename]_, so you could use a jQuery selector like: jQuery('[id^=tutor_]').hide() That will

Re: [web2py] dashboard using bootstrap

2012-11-29 Thread Richard Vézina
I found this list : http://alternativeto.net/software/highcharts/ Thanks Dirk Richard On Thu, Nov 29, 2012 at 11:39 AM, Dirk Krause dir...@googlemail.com wrote: Check http://d3js.org/ and http://raphaeljs.com/ Also there is http://paperjs.org/ and esp http://processingjs.org/ There is a

Re: [web2py] uwsgi and post-buffering

2012-11-29 Thread ccadmin
Ah ok! so if i care for a connection then i must read the body otherwise no problem rejecting thanks a lot Roberto and compliments for your work Giovanni V. Il giorno giovedì 29 novembre 2012 16:40:27 UTC+1, Roberto De Ioris ha scritto: Hi all, this is my first post here so allow me to

Re: [web2py] Re: web3py?

2012-11-29 Thread LightDot
Some valid and interesting questions can get unanswered, slip below the radar, that's bound to happen everywhere. I have a feeling that web2py community is very active when compared to some others, taking the number of members into account. It would be interesting to put some numbers behind this

[web2py] Re: MARKMIN line break

2012-11-29 Thread Massimo Di Pierro
Why do you want the newline at all? If you have \n\n in your text, it will be used to brak p.../p. You can just add space after /p with css. On Thursday, 29 November 2012 10:27:12 UTC-6, Dirk Krause wrote: I see, and thank you. Now we already have a database full of text without the

[web2py] Re: web2py on Heroku

2012-11-29 Thread Massimo Di Pierro
Can you help with that documentation? On Thursday, 29 November 2012 10:35:44 UTC-6, Dirk Krause wrote: From my attempts to get apps running on Heroku (a few experiments with nodejs) people expect to create and edit the requirements and the procfile anyways. The procedure is also described

[web2py] Re: Login not working after moving to 2.2.1

2012-11-29 Thread Massimo Di Pierro
What do you mean by the following actions have no result. I do not think the problem here is 1.997 vs 2.2.1. I think the problem is more the configuration of the email server. On Thursday, 29 November 2012 10:38:02 UTC-6, Geo wrote: Hello All, I have an application running on Web2py source

[web2py] Re: web2py on Heroku

2012-11-29 Thread Dirk Krause
Sure. I could take what you wrote down there, test it on Heroku, verify that nothing was forgotten, beef it up a little bit and put it - where? A pull request on Github? Is the documentation a git? Am Donnerstag, 29. November 2012 17:52:22 UTC+1 schrieb Massimo Di Pierro: Can you help with

[web2py] Re: MARKMIN line break

2012-11-29 Thread Dirk Krause
I learned from my editor that there is a huge difference between a paragraph and a line break. This also documented on a different thread here - people writing texts need both. Am Donnerstag, 29. November 2012 17:51:45 UTC+1 schrieb Massimo Di Pierro: Why do you want the newline at all? If

Re: [web2py] Re: Frustration With @reboot Cron

2012-11-29 Thread Magnitus
There are a couple of issues. One is: what do you mean by startup? It's fairly well defined if you're running web2py with Rocket as the server, but in a wsgi environment, especially one that might have multiple processes, it's a lot less clear. Yes and no. Obviously, a task that needs to run

[web2py] Re: SQLFORM.grid and classes on GAE

2012-11-29 Thread howesc
i have not used polymodels so i can't answer the last question.but about that last one, when you access the GAE datastore viewer (as provided by GAE), what is the name of the table/model that is stored there? does it store location_indoor and location_outdoor, or just location with

[web2py] case insensitive email problems

2012-11-29 Thread Mark
I do following for case insensitive email login (on 2.2.1): def login_email_lower(form): form.vars.email = form.vars.email.lower() return form auth.settings.login_onvalidation = login_email_lower auth.settings.register_onvalidation = login_email_lower auth.settings.profile_onvalidation =

[web2py] Re: De-normalizing data to run on GAE

2012-11-29 Thread howesc
in your particular example, i often define a field like: Field('client_code', 'string', required=True, requires=IS_IN_DB(db, 'client.code', '%(code)s')) that does the lookup for the dropdown, but stores the string in the new table. if you will be doing this lots of times then you should

[web2py] Re: Uncouple the Default Registration/Login/Logout Mechanism From Form/Email

2012-11-29 Thread Magnitus
Please open a ticket for improvement and list APIs you would want to have. I will probably add them. I'll take a look at what posters have described so far and if I find that the functionality is still lacking, I'll add a ticket for it. 2) you can use auth.define_tables(username=True) so that

Re: [web2py] Re: Frustration With @reboot Cron

2012-11-29 Thread Jonathan Lundell
On 29 Nov 2012, at 10:22 AM, Magnitus eric_vallee2...@yahoo.ca wrote: There are a couple of issues. One is: what do you mean by startup? It's fairly well defined if you're running web2py with Rocket as the server, but in a wsgi environment, especially one that might have multiple processes,

[web2py] Re: web2py on Heroku

2012-11-29 Thread Massimo Di Pierro
Yes, the book is on github (https://github.com/mdipierro/web2py-book) On Thursday, 29 November 2012 10:56:37 UTC-6, Dirk Krause wrote: Sure. I could take what you wrote down there, test it on Heroku, verify that nothing was forgotten, beef it up a little bit and put it - where? A pull

Re: [web2py] Re: nginx+uwsgi and ubuntu 12.10

2012-11-29 Thread Adnan Smajlovic
linode/uwsgi/nginx/mariadb/ubuntu 12.04 works great for me... actually very happy with linode thanks to Bruno's review and Niphlod's advise. Next week will start switching the traffic... On Thu, Nov 29, 2012 at 3:33 AM, Johann Spies johann.sp...@gmail.comwrote: On 28 November 2012 22:16,

Re: [web2py] Re: nginx+uwsgi and ubuntu 12.10

2012-11-29 Thread Richard Vézina
I need 12.10 because Redmine is broken in 12.04. Now web2py and Redmine works together nicely with apache, but unfortunetly uwsgi not working in 12.10 I try a few thing without success, I will try again in the coming days. Richard On Thu, Nov 29, 2012 at 2:55 PM, Adnan Smajlovic

Re: [web2py] dashboard using bootstrap

2012-11-29 Thread Manuele Pesenti
Il 29/11/12 17:24, Richard Vézina ha scritto: http://www.highcharts.com/ Is pretty nice! Do you know something similar that is open source? Richard At the moment I haven't found nothing enough good... I'll be glad if someone can notify me :) M. --

Re: [web2py] dashboard using bootstrap

2012-11-29 Thread Paolo Caruccio
other alternatives: https://github.com/HumbleSoftware/Flotr2 http://canvasxpress.org/ http://jsxgraph.uni-bayreuth.de/wp/ I like and use, in combination with web2py, Flot http://www.flotcharts.org/ Il giorno giovedì 29 novembre 2012 21:19:15 UTC+1, Manuele ha scritto: Il 29/11/12 17:24,

[web2py] Re: Web2py doesn't refresh code after changes

2012-11-29 Thread Anthony
Yes, modules do not automatically update -- only models, controllers, and views. Did you not see this: https://groups.google.com/d/msg/web2py/eYk7WsjWV_Y/n9_SIZYjU_4J? Anthony On Thursday, November 29, 2012 4:32:35 PM UTC-5, yes I can wrote: In my controller scripts I have import statements,

[web2py] importing issues

2012-11-29 Thread Maggs
I recently upgraded to web2py 2.2.1 from 1.99. I have an external set of modules that I am importing into my application. Since I updated to 2.2.1 I am getting errors saying that the module does not have the attribute 'function'. To explain further, I have an external set of modules under the

[web2py] Re: Download the book as local app?

2012-11-29 Thread thinkwell
Thanks, Massimo, this is great! On Wednesday, November 28, 2012 2:26:19 PM UTC-5, Massimo Di Pierro wrote: Yes. Install web2py and then install the book from https://github.com/mdipierro/web2py-book it is just a web2py app. On Wednesday, 28 November 2012 05:45:39 UTC-6, Thomas Wimmer

Re: [web2py] Fpdf error with python 2.6 and web2py 2.2.1

2012-11-29 Thread Mariano Reingart
Yes, re.sub(..., flags=) is a parameter since python 2.7 For older python, flags can be embeded, re.DOTALL becomes '(?s)': color += re.sub('(.).',lambda m: m.group(1),line, flags=re.DOTALL) could be replaced by: color += re.sub('(?s)(.).',lambda m: m.group(1),line) If this works, fpdf.py

[web2py] Re: Multiple submit buttons using selectable in SQLFORM.grid

2012-11-29 Thread Wes Hall
Any luck with this? On Tuesday, September 4, 2012 3:02:07 AM UTC-4, Johan Börjesson wrote: I am using selectable in SQLFORM.grid to create checkboxes and a submit button, it's working fine. But I would like to have two submit buttons where each button calls a different function, depending

[web2py] Re: De-normalizing data to run on GAE

2012-11-29 Thread Andy W
Thanks for the quick reply howesc. Just for the record, your suggested: Field('client_code', 'string', required=True, requires=IS_IN_DB(db, 'client.code', '%(code)s')) did not work. It needed a minor change to: Field('client_code', 'string', required=True, requires=IS_IN_DB(db, *

Re: [web2py] Re: Self-joins not working.

2012-11-29 Thread Luc Chase
Thanks for the suggestion. I had tried something similar but got an error and even with this I have an referrering to the unexpected use of 'format'. type 'exceptions.TypeError' __init__() got an unexpected keyword argument 'format'VERSIONweb2py™(2, 2, 1, datetime.datetime(2012, 10, 21, 16,