Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Adnan Smajlovic
Will run more tests in the morning on a brand new application, since I can't see anything wrong (connection string duplication) in code right now. Unfortunately, can't roll back this functionality now, so will have to figure it out quickly. Thanks for help Massimo and Niphlod. On Thu, Oct 4, 2012

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
I dont understand, I asked how I can access individual records in the grid? On Friday, October 5, 2012 4:31:34 AM UTC+1, Massimo Di Pierro wrote: > > Using your code: > > def admin(): > grid = SQLFORM.grid(db.auth_user, onupdate = messenger) > return locals() > > def messenger(form): >

[web2py] Re: Problem with securing sessions

2012-10-04 Thread Yarin
Massimo- quick fix: *session.forget()* must be *current.session.forget()*, otherwise throws error On Thursday, October 4, 2012 8:11:23 AM UTC-4, Yarin wrote: > > Great- I've updated/simplified my other recommendations on > SSLas we

[web2py] Re: System cannot find path specified

2012-10-04 Thread Massimo Di Pierro
I do not have that line. You have an old version of languages.py. That problem may have been fixed already. Can you try the latest trunk and see what you get? On Thursday, 4 October 2012 22:20:32 UTC-5, Bill Thayer wrote: > > Thank you Massimo. > > Today I have a very similar error and I do have

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Massimo Di Pierro
Using your code: def admin(): grid = SQLFORM.grid(db.auth_user, onupdate = messenger) return locals() def messenger(form): # use form.record or form.vars # < mail.send(to="email", subject="welcome to icop", message="bla bla") On Thursday, 4 October 2012 22:16:17 UTC-5, Pystar

[web2py] Re: Error importing csv during setup with testrunner.py

2012-10-04 Thread Massimo Di Pierro
I create an empty app test2 and moved your models in there. I commented the Ajax plugin lines since I do not have it. Than I tried: $ python web2py.py -S test2 -M -N >>> db.import_from_csv_file(open('test_fixture.csv','rb')) The first time it failed because there are records which violate

[web2py] Re: System cannot find path specified

2012-10-04 Thread Bill Thayer
Thank you Massimo. Today I have a very similar error and I do have C:\web2py as the first value in my PYTHONPATH environment variable. Python 2.7.3 (default, Apr 10 2012, 23:31:26) [MSC v.1500 32 bit (Intel)]on win 32 Type "help", "copyright", "credits" or "license" for more information. >>> imp

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
Hi, I need some clarification on the grid, how do I access the contents on the grid and target a function at that record? I want to send a mail to every user whenever I update their records gotten from the SQLFORM.grid(db.auth_user). How do I do that? On Friday, October 5, 2012 3:44:02 AM UTC

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
Thanks Max, It works. On Friday, October 5, 2012 3:59:34 AM UTC+1, Pystar wrote: > > is a grid also a form object? I tried your method but still no luck. > > On Friday, October 5, 2012 3:44:02 AM UTC+1, Massimo Di Pierro wrote: >> >> >> def messenger(): >> mail.send(to="email", subject="welcom

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
is a grid also a form object? I tried your method but still no luck. On Friday, October 5, 2012 3:44:02 AM UTC+1, Massimo Di Pierro wrote: > > > def messenger(): > mail.send(to="email", subject="welcome to icop", message="bla bla") > > should be > > def messenger(form): > mail.send(to="ema

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Massimo Di Pierro
def messenger(): mail.send(to="email", subject="welcome to icop", message="bla bla") should be def messenger(form): mail.send(to="email", subject="welcome to icop", message="bla bla") yet. This should raise a ticket. I tried and (with the change) it works for me. Try adding a print st

Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Massimo Di Pierro
No. this should not be a problem. This is only be a problem if any two have the same connection string. On Thursday, 4 October 2012 21:10:58 UTC-5, Adi wrote: > > I'm using 6 connections at the same time, 3 go to different databases on > the same server, and 3 to totally different servers. Each

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
def admin(): grid = SQLFORM.grid(db.auth_user, onupdate = messenger) return locals() def messenger(): mail.send(to="email", subject="welcome to icop", message="bla bla") its not working as expected. i.e. on updating the records in the grid, no message is sent to the user. rather it s

Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Adnan Smajlovic
I'm using 6 connections at the same time, 3 go to different databases on the same server, and 3 to totally different servers. Each connection has a different name db = DAL('mysql://crm:password@localhost:3307/CRM',migrate_enabled=True) db_us = DAL('mysql://web_US:password@localhost:3307/DataUS',m

[web2py] Re: None existent page bug on 2.0.x (trunk) + GAE

2012-10-04 Thread Matt
Excellent! Just tested and working as expected. Thanks Massimo. On Friday, October 5, 2012 2:38:29 PM UTC+13, Massimo Di Pierro wrote: > > fixed in trunk > > On Thursday, 4 October 2012 19:48:40 UTC-5, Matt wrote: >> >> Hi there, >> >> If I request a non existent page such as: >> >> http://localh

[web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Massimo Di Pierro
This error can arise in two cases: - you are using an a recent trunk version (not the latest) which has a bug - you are using the latest trunk (no bug) but you have a duplicated connection in your code: db = DAL() db = DAL() perhaps in different model files. Previous web2py did not check

Re: [web2py] Re: web2py book on github

2012-10-04 Thread Massimo Di Pierro
You can email me a patch On Thursday, 4 October 2012 20:02:25 UTC-5, Richard wrote: > > Hello, > > I translate the 08.markmin chapter, I will need help to upload de change > with Git, I don't know Git that much and Github neither. I will try to > follow Github howto, but if anyone can provide qu

[web2py] Re: None existent page bug on 2.0.x (trunk) + GAE

2012-10-04 Thread Massimo Di Pierro
fixed in trunk On Thursday, 4 October 2012 19:48:40 UTC-5, Matt wrote: > > Hi there, > > If I request a non existent page such as: > > http://localhost:8000/shgjghj > > On 2.0.x (trunk) GAE I get an error: > > ERROR2012-10-05 00:42:34,849 dev_appserver.py:3018] Exception > encountered handlin

[web2py] Re: App Compile / Command Line

2012-10-04 Thread Massimo Di Pierro
Fixed in trunk. Please check the outcome. On Thursday, 4 October 2012 07:09:51 UTC-5, Massimo Di Pierro wrote: > > I opened a ticket about this. Will try resolve it today. > > On Wednesday, 3 October 2012 22:59:37 UTC-5, lyn2py wrote: >> >> I compile app very often to move it to production, and I

[web2py] [OFF-TOPIC] Recipe for keeping Google Code & GitHub in sync

2012-10-04 Thread Tim Michelsen
Hello, I have a question that I would need for another project: What approach do you use to keep Google Code & GitHub in sync? Do you use post-commit hooks or is it done automatically by GitHub? or do you have even yet another script that runs on cron basis and does this? I would really appreci

Re: [web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Adnan Smajlovic
Still the same problem: Traceback (most recent call last): File "/opt/web-apps/web2py/gluon/scheduler.py", line 203, in executor _env = env(a=a,c=c,import_models=True) File "/opt/web-apps/web2py/gluon/shell.py", line 134, in env sys.exit(1) SystemExit: 1 Is there any line of code that

Re: [web2py] Re: web2py book on github

2012-10-04 Thread Richard Vézina
Hello, I translate the 08.markmin chapter, I will need help to upload de change with Git, I don't know Git that much and Github neither. I will try to follow Github howto, but if anyone can provide quick and dirty tutorial I will appreciate. I plan tu upload the 08 chapter I translated next week

Re: [web2py] formwizard with 2 tables : - not working ! .. please help !

2012-10-04 Thread Don_X
Hello Massimo, I think I am onto something ! I have modified my model as follows : defaultfoto = [ 'defaultuser.png','defaultplayer.png','defaultcoach.png'] defaultuserpics = { 0:IMG(_src=URL('static','images/'+ defaultfoto[0])), 1:IMG(_src=URL('static','images/'+ default

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread villas
Nicely written article. However, the pre-processors seem like a great way of extending existing framework code. I'm thinking Bootswatch (with Less). BTW, he uses some great quotes. Love this one ... * “Everyone knows that debugging is twice as hard as writing a program in the first place. S

[web2py] None existent page bug on 2.0.x (trunk) + GAE

2012-10-04 Thread Matt
Hi there, If I request a non existent page such as: http://localhost:8000/shgjghj On 2.0.x (trunk) GAE I get an error: ERROR2012-10-05 00:42:34,849 dev_appserver.py:3018] Exception encountered handling request Traceback (most recent call last): File "/Applications/GoogleAppEngineLaunche

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread Paolo Caruccio
I completely agree with everything Niphlod said in his message. Based on my experience, the css file is only a dress for a pre-existing structure in html. Not surprisingly, Niphlod mentioned "zengarden", namely a html template having css selectors already set, to be dressed. In fact, the CSS fram

[web2py] Re: request.vars returning as Nonetype

2012-10-04 Thread Anthony
Are you sure checkout_date_in and checkout_date_out are being submitted and that those are the correct variable names? Also, if you want to redirect, just call redirect(...), don't return a dict with a redirect call in it. Anthony On Thursday, October 4, 2012 12:39:14 PM UTC-4, Andrew Evans wr

Re: [web2py] Re: Speed of operations with Storage object vs plain dictionary

2012-10-04 Thread Michele Comitini
ooops! too late here... > following would have to be done: > > def set_dict(): > st = dict() > ... > replaced with following would have to be done: def set_dict(): st = Storage() ... 2012/10/5 Michele Comitini : > The test is interesting, but the comparison is a bit like apples

Re: [web2py] Re: Speed of operations with Storage object vs plain dictionary

2012-10-04 Thread Michele Comitini
The test is interesting, but the comparison is a bit like apples vs oranges. Remember that a Storage object *is* a dict so in Niphlod test the following would have to be done: def set_dict(): st = dict() ... you will see that using the d[key] notation is faster. So next step is testing stor

[web2py] Re: SQLFORM.grid dinamically update fields

2012-10-04 Thread alex
Maybe it is not a form onupdate action that I need. I guess that to dinamically update field "b" in the form I need to attach a JQUERY action to the custom field "a" , but I don't know how to do it. For instance I would like that during updating, when the user writes 5 in the field "a', field "b

[web2py] Re: Speed of operations with Storage object vs plain dictionary

2012-10-04 Thread monotasker
Thanks very much Niphlod. I was mostly wondering whether this was common knowledge or not. But I've also never taken the time (pun intended) to learn how to time functions, so your sample code is really helpful. It has gone in my snippets files. Your test confirms what I thought - that for the

Re: [web2py] args or vars

2012-10-04 Thread Richard Vézina
That what I thought, also, it more readable : db(db.table.id>0).select(limitby=(request.vars.limit_min, request.vars.limit_max) So I know what it is instead of : db(db.table.id>0).select(limitby=(request.args(1), request.args(2)) Thanks Richard On Thu, Oct 4, 2012 at 4:49 PM, vinicius...@gma

Re: [web2py] args or vars

2012-10-04 Thread vinicius...@gmail.com
If the function you mention is a controller function invoked directly by the user via URL, I'd choose vars because the number of recs is only a configuration to shape your presentation. On 10/04/2012 05:33 PM, Richard wrote: Hello, Let say I want to pass to a function the number of records I

Re: [web2py] Re: Improving SSL Support

2012-10-04 Thread Yarin Kessler
Awesome thanks Massimo- will test tonight On Thu, Oct 4, 2012 at 4:13 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > OK. check trunk. Auth(db,secure=True). > > > On Thursday, 4 October 2012 13:01:51 UTC-5, Yarin wrote: >> >> Yes exactly >> >> On Thursday, October 4, 2012 12:38:34 PM

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Niphlod
at least post whatever code you're trying to run without success :P On Thursday, October 4, 2012 10:03:10 PM UTC+2, Pystar wrote: > > it didnt work. I need help > > On Thursday, October 4, 2012 8:29:51 PM UTC+1, Pystar wrote: >> >> From the book, I can see this SQLFORM.grid(onupdate, oncreate, ond

[web2py] args or vars

2012-10-04 Thread Richard
Hello, Let say I want to pass to a function the number of records I want out of a query in order to limit the number of record displayed in a component... Should I pass it as a args or a vars? Thanks Richard --

Re: [web2py] Table Dose not exist

2012-10-04 Thread Richard Vézina
Did you forget to turn on migration? There is table migration=true and db connection string migration parameter too, maybe you could have forget the connection string one? Richard On Wed, Oct 3, 2012 at 5:12 AM, Hassan Alnatour wrote: > Dear ALL , > > i Defined a table in my db.py but when i st

[web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Niphlod
update to trunk, the problem is fixed. PS: Nightly build generally are stable, but a few times (like the ones with potentially hige impacts - like last changes made in DAL initialization) are, nonetheless, for testing purposes, not production ready! On Thursday, October 4, 2012 9:42:59 PM UTC+2

[web2py] Re: scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Massimo Di Pierro
can you try again the latest? On Thursday, 4 October 2012 14:42:59 UTC-5, Adi wrote: > > We promoted latest night build to production, and scheduler started > failing. At the same time there were some code changes, so I'm having a > hard time tracing the source of the problem. > > Any insights w

[web2py] Re: Improving SSL Support

2012-10-04 Thread Massimo Di Pierro
OK. check trunk. Auth(db,secure=True). On Thursday, 4 October 2012 13:01:51 UTC-5, Yarin wrote: > > Yes exactly > > On Thursday, October 4, 2012 12:38:34 PM UTC-4, Massimo Di Pierro wrote: >> >> So... would replaing this in gluon.main.py >> >> is_https = env.wsgi_url_scheme in ['https', 'HTTPS']

[web2py] Re: [OFF-TOPIC] Recipe for keeping Google Code & GitHub in sync

2012-10-04 Thread Massimo Di Pierro
No. I manually push both. They are not always in sync. I will take advice about a better way. On Thursday, 4 October 2012 09:25:12 UTC-5, Timmie wrote: > > > Hello, > I have a question that I would need for another project: > > What approach do you use to keep Google Code & GitHub in sync? > > Do

[web2py] Re: pagination with web2py

2012-10-04 Thread Massimo Di Pierro
grid = SQLFORM.grid(query) {{=grid}} will display the records with pagination. On Thursday, 4 October 2012 09:16:00 UTC-5, Paulo Donizeti Gardinalli Filho wrote: > > hi, I am starting to use web2py and I am very impressive with his > facilities. I am a visualy empaired user and this framework

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
it didnt work. I need help On Thursday, October 4, 2012 8:29:51 PM UTC+1, Pystar wrote: > > From the book, I can see this SQLFORM.grid(onupdate, oncreate, ondelete), > I should believe that I can pass a function to the onupdate argument that > will call a function to send mails whenever a record

[web2py] Re: couchdb access on 2.0.9

2012-10-04 Thread Massimo Di Pierro
counchdb is in dal is experimental. Please open a ticket and your traceback will help us fix it. On Thursday, 4 October 2012 08:54:38 UTC-5, vince wrote: > > i modify the "welcome" application to test out couchdb support. > > in models/db.py > db = DAL('couchdb://admin:admin@127.0.0.1:5984') > >

[web2py] Re: Speed of operations with Storage object vs plain dictionary

2012-10-04 Thread Niphlod
Not directed only to monotasker: aren't all you tired of reading benchmarks when the sourcecode is there ? Just set-up your own test and see how it performs. Let's test it. Below the code to do a simple test. PS: my results are set storage takes 1.86146702766 set dict takes 0.960257053375 get

[web2py] scheduler: Cannot duplicate a Singleton

2012-10-04 Thread Adi
We promoted latest night build to production, and scheduler started failing. At the same time there were some code changes, so I'm having a hard time tracing the source of the problem. Any insights while I'm trying to figure it out? Thanks, Adi db: mysql redhat linux w2p: Version 2.0.9 (2012-1

[web2py] Re: How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
>From the book, I can see this SQLFORM.grid(onupdate, oncreate, ondelete), I should believe that I can pass a function to the onupdate argument that will call a function to send mails whenever a record is updated. I believe this is correct without testing if it is now. Will do so and return with

[web2py] Table Dose not exist

2012-10-04 Thread Hassan Alnatour
Dear ALL , i Defined a table in my db.py but when i start the application , it gives me an error that my table dose not exist , i dont understand , any help please : Error : no such table: NewsCategory TRACEBACK 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. Traceback (m

[web2py] web2py on mac from source

2012-10-04 Thread xaver
Hi, I'm playing a bit with web2py, it is agreat framework, however theres some unclear thins to me: the source edito from binary dist has some more features than the source dist, like fullscreen, search ... even more I user vimperator extention for firefox, which permit me to open the remote py

[web2py] Re: How do I incorporate git into my web2py workflow?

2012-10-04 Thread dhmorgan
the pypi package is 'gitpython' -- http://pypi.python.org/pypi/GitPython -- in Debian/Ubuntu, use "sudo pip install gitpython"; Ubuntu's package, "python-git," is actually the gitpython program, but is not up-to-date; that program is necessary for installing a git-repositoried application via

[web2py] web2pyslices down

2012-10-04 Thread LMK
Cannot view the site, cannot login. but, can view like that http://www.web2pyslices.com/slice/show/1408/fast-downloads. --

[web2py] Re: alternates to pyjamas/pyjs?

2012-10-04 Thread matthew lange
Please do shae--i have issues myself. On Wednesday, May 30, 2012 11:37:05 AM UTC-7, stefaan wrote: > > > > solved some of the issues...time to get crackin'! > > > Glad to hear it :) > > I have found the "inspect element" tool in chromium to be very valuable > in diagnosing trouble with my appl

[web2py] Re: Source install fail

2012-10-04 Thread Mike Anson
Hey Massimo, Where should we make this change. Not in web2py.egg-info/top_level.txt as I can see this gets overwritten somewhere else. Thanks. On Tuesday, 4 September 2012 08:04:59 UTC-4, Massimo Di Pierro wrote: > > The package was renamed fpdf > > On Monday, 3 September 2012 23:38:10 UTC-5, J

[web2py] Re: Source install fail

2012-10-04 Thread Mike Anson
edit setup.py line #59 from: $ gluon/contrib/pyfpdf to: $ gluon/contrib/fpdf Then run python setup.py install again On Tuesday, 4 September 2012 00:38:10 UTC-4, Joe Repka wrote: > > I tried 'python setup.py install' in the downloaded source directory for > 2.0.6 but got > > 'error: package dire

[web2py] pagination with web2py

2012-10-04 Thread Paulo Donizeti Gardinalli Filho
hi, I am starting to use web2py and I am very impressive with his facilities. I am a visualy empaired user and this framework is helping me. my dought is: How can I use pagination with web2py? thanks in advance! paulo --

[web2py] How do I customize SQLFORM.grid()

2012-10-04 Thread Pystar
How do I customize SQLFORM.grid() to send a mail to users in a db whenever data is updated from the grid? tips, hints? --

[web2py] Re: How do you organize your applications to be unit-tested?

2012-10-04 Thread monotasker
One thing I'm trying out right now is (a) writing all of my business logic in module files; (b) breaking up that logic into small-ish classes that each seem to have with around 5-10 methods each; (c) injecting my dependencies as much as possible into the class in the __init__ method and then pa

[web2py] Re: Improving SSL Support

2012-10-04 Thread Yarin
Yes exactly On Thursday, October 4, 2012 12:38:34 PM UTC-4, Massimo Di Pierro wrote: > > So... would replaing this in gluon.main.py > > is_https = env.wsgi_url_scheme in ['https', 'HTTPS'] or env.https=='on') > > with > > is_https = env.wsgi_url_scheme in ['https', 'HTTPS'] or env.https=='on' or

[web2py] Speed of operations with Storage object vs plain dictionary

2012-10-04 Thread monotasker
Has anyone looked at the speed differences between operations performed with a Storage object and the equivalent object with a dictionary? I wonder how these would compare? bob = MyStorageObject.name bob = MyDictionary['name'] I suspect that the difference with one lookup would be trivial, but

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread Richard Vézina
Ian, I would had explained my thought as well as you just did! :) I think your proposal of integrating LESS (or other LESS comparable tool) is a pretty good idea. Cheer. Richard On Thu, Oct 4, 2012 at 12:49 PM, monotasker wrote: > I'm not sure how this would work with the current web2py fram

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread monotasker
I'm not sure how this would work with the current web2py framework (which uses static css), but a css pre-processing system like LESS makes the application of framework classes to your custom html trivial. Twitter Bootstrap (like many of the other css frameworks out there) provides its styles i

[web2py] request.vars returning as Nonetype

2012-10-04 Thread Andrew Evans
Hello I am trying to validate a form entry against existing entries in my database on form submission. But user_start and user_end are returning as None Type. How do I get the values of a form using SQLFORM *cheers if form.accepts(request.vars): for project in project_date:

[web2py] Re: Improving SSL Support

2012-10-04 Thread Massimo Di Pierro
So... would replaing this in gluon.main.py is_https = env.wsgi_url_scheme in ['https', 'HTTPS'] or env.https=='on') with is_https = env.wsgi_url_scheme in ['https', 'HTTPS'] or env.https=='on' or request.env.http_x_forwarded_proto in ['https', 'HTTPS'] address the first issue? Massimo On T

Re: [web2py] Re: How do you organize your applications to be unit-tested?

2012-10-04 Thread Richard Vézina
I think that with web2py there is no unique fit all solution, and doctest is not that usefull from my point of view, or it should be use with .txt file and not be include in docstring, to make sure it is not executed with the regular code. Also, I really not sure that unit testing a simple web2py

Re: [web2py] Re: How do you organize your applications to be unit-tested?

2012-10-04 Thread vinicius...@gmail.com
You're right, Richard, but I was asking how you organize your production code, not your test code. What is your strategies to isolate components to achieve a better unit-testing scenario? -- Vinicius Assef On 10/04/2012 12:49 PM, Richard Vézina wrote: I am reading actually about unit testi

Re: [web2py] Re: How do you organize your applications to be unit-tested?

2012-10-04 Thread Richard Vézina
I am reading actually about unit testing and doctest in docstring should be pretty small, as a rule of thumb it should be less longer than you docstring documentation. But, it says too that it pretty convenient to have at least one doctest in docstring since it could help a lot in identifying outd

[web2py] sqlform.factory, list string - pre-populate dropdown

2012-10-04 Thread andrej burja
hi i have page with form and rows. form = SQLFORM.factory(Field('tags_ava','list:string',label=T('Tags'),requires = IS_EMPTY_OR(IS_IN_SET(tags_ava_set)), widget=SQLFORM.widgets.options.widget), based on selected tag (tag1), i get list of entries (with at lea

[web2py] Re: How do you organize your applications to be unit-tested?

2012-10-04 Thread Marek Mollin
I only use doc-string testing. For everything I do its snap and effective enough. Plus it can trigered from admin. Though it is not recomnded way of unittesting - it has its problems, bloats the code base, does not provide clean seperation between tests and actual app. W dniu środa, 3 paździer

[web2py] [OFF-TOPIC] Recipe for keeping Google Code & GitHub in sync

2012-10-04 Thread Timmie
Hello, I have a question that I would need for another project: What approach do you use to keep Google Code & GitHub in sync? Do you use post-commit hooks or is it done automatically by GitHub? or do you have even yet another script that runs on cron basis and does this? I would really appre

[web2py] Re: DB definition default=xy results in mysql always as DEFAULT NULL

2012-10-04 Thread Anthony
On Thursday, October 4, 2012 9:04:13 AM UTC-4, Niphlod wrote: > > it never had.default use that value when you do inserts with forms or > directly with DAL, it doesn't enforce nothing on the db. > And note, this allows more advanced functionality, such as defaults that are determined dynamic

[web2py] Re: Error importing csv during setup with testrunner.py

2012-10-04 Thread monotasker
Thanks very much. I just sent the files to you by email. Ian On Thursday, October 4, 2012 8:11:23 AM UTC-4, Massimo Di Pierro wrote: > > If you send me the file and the models I will try it. > > On Thursday, 4 October 2012 01:16:17 UTC-5, monotasker wrote: >> >> I'm trying to set up unit tests an

[web2py] couchdb access on 2.0.9

2012-10-04 Thread vince
i modify the "welcome" application to test out couchdb support. in models/db.py db = DAL('couchdb://admin:admin@127.0.0.1:5984') register the first user works fine, register another user will result in the following error but the new user record is actually stored in couchdb. Traceback (most r

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread szimszon
Recently was a bit messy the SQLFORM.[smart]grid because a class changed from button to btn :-o Because we need to maintain backward compatibility but the used css framework for welcome can change significantly I think that maintaining a web framework's own class names could be beneficial. So t

[web2py] Re: DB definition default=xy results in mysql always as DEFAULT NULL

2012-10-04 Thread Niphlod
it never had.default use that value when you do inserts with forms or directly with DAL, it doesn't enforce nothing on the db. Il giorno giovedì 4 ottobre 2012 14:58:49 UTC+2, flando ha scritto: > > Dears > > I have an issue that the defined default value in db.py is not taken into > the mys

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread Niphlod
I think the point stated is correct, but I don't remember having an html template that is interoperable and modify all the looks with just only css changes. Yes, zengarden is known to me and for simple pages you may have template and css that are decoupable, but with standard websites it's futi

[web2py] DB definition default=xy results in mysql always as DEFAULT NULL

2012-10-04 Thread flando
Dears I have an issue that the defined default value in db.py is not taken into the mysql table definition. E.g. I define in db.py: db.define_table('testcustomer', Field('country2','string', length=2, default='ch', label=T('Land')), Field('language2','string', length=2, default='de', lab

[web2py] Re: Error importing csv during setup with testrunner.py

2012-10-04 Thread Massimo Di Pierro
If you send me the file and the models I will try it. On Thursday, 4 October 2012 01:16:17 UTC-5, monotasker wrote: > > I'm trying to set up unit tests and run into this error during the > creation of the test db (using testrunner.py). I've looked at the code of > this method in gluon.dal, but I

[web2py] Re: Problem with securing sessions

2012-10-04 Thread Yarin
Great- I've updated/simplified my other recommendations on SSLas well. After that we should be good to go On Wednesday, October 3, 2012 1:31:52 PM UTC-4, Massimo Di Pierro wrote: > > In trunk! > > > On Wednesday, 3 October 2012 10:

[web2py] Re: App Compile / Command Line

2012-10-04 Thread Massimo Di Pierro
I opened a ticket about this. Will try resolve it today. On Wednesday, 3 October 2012 22:59:37 UTC-5, lyn2py wrote: > > I compile app very often to move it to production, and I would like to do > it via command line (or a sh script). I tried > > python -c "import gluon.compileapp; > gluon.compi

Re: [web2py] Please stop embedding Bootstrap classes in your HTML!

2012-10-04 Thread Massimo Di Pierro
Excellent point! On Wednesday, 3 October 2012 17:20:44 UTC-5, Richard wrote: > > Hello, > > I am not exactly sure how this is relevant about how web2py approach to > bootstrap, but it seems to be a logical evolution of the decoupling content > and container with HTML/CSS/PHP,Python, etc., as exp

[web2py] Re: Improving SSL Support

2012-10-04 Thread Yarin
I'm revising my stance on this. After further digging around, I'm gonna go with Niphlod's position that securing only the login traffic without securing the entire session is for the most part pretty worthless. While this might have value to some sites that have to deal with mixed content, the

[web2py] nice recap for bleeding-edge guys

2012-10-04 Thread Niphlod
Nice to see some "definitive" well-placed flags for all the browser's inconsistencies (and features) http://caniuse.com/ --