[web2py] Re: Web2py forum plugin
First! http://pyforum.org/ On Monday, September 30, 2013 12:12:45 AM UTC+2, Tobias Dahlberg wrote: > > Hi > > I'm looking for a forum plugin that I can use to extend a web2py > application. I need a forum plugin that uses web2py's normal auth since I > need it integrated with other web2py app. > I looked at pyforum, but it doesn't seem to use the standard auth, > correct? > > Thanks! > > BR > Tobias Dahlberg > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Sending jobs to LSF scheduler from web2py
it all depends on how are you planning to do it. Il giorno domenica 29 settembre 2013 22:47:51 UTC+2, Andrey K ha scritto: > > Good day, > I am working on the web application (web2py controller) which suppose > to tiger unix job scheduler (LSF) which in turn run unix executable files > with parameters. Is it save to use such approach in web2py. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Performance: number of queries vs. script run time
time it, it's impossible to tell beforehand what will be better without knowing what the script does exactly (and even then, there are lots of variables) Il giorno lunedì 30 settembre 2013 02:29:57 UTC+2, lesssugar ha scritto: > > That was a theoretical question. I'm asking because I don't know which > approach is better. There's no specific issue I'm trying to address. I just > want to find out which way is more efficient. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: IE8 error in web2py.js line 43, Object doesn't support....
I can, but the fact is that "doc" usually is the document, so I'm pretty sure it exists and that it has an "on" method :D When that error pops up, what are you trying to do ? Just to load the page ? Il giorno lunedì 30 settembre 2013 03:33:24 UTC+2, davedigerati ha scritto: > > Thanks guys, but I guess that still leaves me clueless as to what is > causing this error. Can anyone comment what this portion of web2py.js is > looking for so I can start trying to guess what it might be missing? > (function web2py_event_handlers() {) > > all help/suggestions appreciated > > On Sunday, September 29, 2013 7:44:00 AM UTC-4, Niphlod wrote: >> >> no. that "map" file is just a commodity extension to have debuggers >> (developers tools, firebug, etc) to load the uncompressed version of the >> library in order to debug it better >> >> http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ >> >> it has nothing to do with any js error. >> >> does the latest web2py.js throw the "original" error ("object has no >> method 'on'") ? >> >> On Sunday, September 29, 2013 6:35:11 AM UTC+2, davedigerati wrote: >>> >>> not sure, when I run the debug in IE8 it trips up on line 43 and so no, >>> I am not seeing the 404, but I don't know the IE8 dev tools well enough to >>> be positive. >>> >>> So the fact that I am getting this GET request indicates the browser is >>> seeing a problem in jQuery? Maybe that line 43? >>> >>> >>> On Sunday, September 29, 2013 12:00:39 AM UTC-4, LightDot wrote: The jQuery map file is optionally used by the browser when debugging jQuery, but shouldn't be requested by web2py code or needed otherwise. Are you seeing this in IE8 too? On Sunday, September 29, 2013 5:48:17 AM UTC+2, davedigerati wrote: > > FWIW- I tested a clean copy of the executable and it is not throwing > that error but still is also throwing the : > GET http://127.0.0.1:9000/welcome/static/js/jquery-1.10.0.min.map 404 > (NOT FOUND) > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: IS_IN_SET options sort order
do you know you can use a normal list of tuples instead ? IS_IN_SET=[(50, '$50 per lap'), ] Il giorno lunedì 30 settembre 2013 04:53:34 UTC+2, mr.freeze ha scritto: > > I'm trying to get IS_IN_SET to sort options numerically for the following > validator: > db.sponsor.pledge_amount.requires = IS_IN_SET({ > 50: '$50 per lap', > 25: '$25 per lap', > 10: '$10 per lap', > 5: '$5 per lap', > 2: '$2 per lap', > 1: '$1 per lap', > 0: 'Flat amount' > }, sort=True) > > It sorts the options using a string comparison so they end up like this: > $1 per lap > $10 per lap > $2 per lap > $25 per lap > $5 per lap > $50 per lap > Flat amount > > IS_IN_SET seems to use a hard set *options_sorter* in validators.py > instead of taking a lambda. Any ideas on how to customize the sorting? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Use import csv option to populate the SQLFORM
Hi, I am having controller as : @auth.requires_login() def add(): form = SQLFORM(db.table) if form.process(formname='test').accepted: response.flash = 'Database Updated' elif form.errors: response.flash = 'Please fill all the required details' else: response.flash = 'Enter the required details' return dict(form=form) In views, I am using custom widgets for the view of the add form. My requirement is that, I want to give an option like "populate from csv" (just like import csv option in appadmin, which should just populate this form only and do not update the table). Since I am new to web2py and have no experience using "export/import csv" options, will it be possible that I can use the existing import csv code and meet my requirement. Any other pointers/options are welcome. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] IS_IN_SET options sort order
I'm trying to get IS_IN_SET to sort options numerically for the following validator: db.sponsor.pledge_amount.requires = IS_IN_SET({ 50: '$50 per lap', 25: '$25 per lap', 10: '$10 per lap', 5: '$5 per lap', 2: '$2 per lap', 1: '$1 per lap', 0: 'Flat amount' }, sort=True) It sorts the options using a string comparison so they end up like this: $1 per lap $10 per lap $2 per lap $25 per lap $5 per lap $50 per lap Flat amount IS_IN_SET seems to use a hard set *options_sorter* in validators.py instead of taking a lambda. Any ideas on how to customize the sorting? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] list:string field in auth_user
I have added a list:string field to my auth_user table using auth.settings.extra_fields: auth.settings.extra_fields['auth_user'] = [ Field('f_dtf', type='list:string', custom_qualifier=dict()) ] The new field shows up fine. But when I try to manipulate that field from the Profile page, I only end up with a list with 1 element: the full contents of the text field. I have read that the standard widget for these would allow for multiple entries by hitting return, but that gets interpreted as form submission. Not sure how to proceed from here; build my own widget? Write my own view for this form? Any pointers would be appreciated. - Scott -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: IE8 error in web2py.js line 43, Object doesn't support....
Thanks guys, but I guess that still leaves me clueless as to what is causing this error. Can anyone comment what this portion of web2py.js is looking for so I can start trying to guess what it might be missing? (function web2py_event_handlers() {) all help/suggestions appreciated On Sunday, September 29, 2013 7:44:00 AM UTC-4, Niphlod wrote: > > no. that "map" file is just a commodity extension to have debuggers > (developers tools, firebug, etc) to load the uncompressed version of the > library in order to debug it better > > http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ > > it has nothing to do with any js error. > > does the latest web2py.js throw the "original" error ("object has no > method 'on'") ? > > On Sunday, September 29, 2013 6:35:11 AM UTC+2, davedigerati wrote: >> >> not sure, when I run the debug in IE8 it trips up on line 43 and so no, I >> am not seeing the 404, but I don't know the IE8 dev tools well enough to be >> positive. >> >> So the fact that I am getting this GET request indicates the browser is >> seeing a problem in jQuery? Maybe that line 43? >> >> >> On Sunday, September 29, 2013 12:00:39 AM UTC-4, LightDot wrote: >>> >>> The jQuery map file is optionally used by the browser when debugging >>> jQuery, but shouldn't be requested by web2py code or needed otherwise. Are >>> you seeing this in IE8 too? >>> >>> On Sunday, September 29, 2013 5:48:17 AM UTC+2, davedigerati wrote: FWIW- I tested a clean copy of the executable and it is not throwing that error but still is also throwing the : GET http://127.0.0.1:9000/welcome/static/js/jquery-1.10.0.min.map 404 (NOT FOUND) >>> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Performance: number of queries vs. script run time
That was a theoretical question. I'm asking because I don't know which approach is better. There's no specific issue I'm trying to address. I just want to find out which way is more efficient. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: web2py website down
thank you so much for your info, don't know that the book is on the github, i've downloaded both pdf and web2py book application. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: web2py website down
BTW, web2py book is on the github. It's a web2py application, you can run it locally or on your web hosting / VPS. On Sunday, September 29, 2013 2:41:26 PM UTC+2, Gour wrote: > > On Sun, 29 Sep 2013 05:27:51 -0700 (PDT) > 黄祥 > > wrote: > > > i still can't access web2py website and mine on pythonanywhere. the > > status is Unhandled Exception > > It looks that is real meaning of cloud computing - in some parts the > sun is shining through, while in the other ones, overcast is too strong. > :-) > > Lesson: "If you want to learn web2py, better have copy of web2py's book > on the shelf or, at least, pdf copy on the localhost!" > > > Sincerely, > Gour > > > -- > Thus the wise living entity's pure consciousness becomes covered by > his eternal enemy in the form of lust, which is never satisfied and > which burns like fire. > > http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 > > -- > Before giving up this present body, if one is able to tolerate > the urges of the material senses and check the force of desire and > anger, he is well situated and is happy in this world. > > http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Performance: number of queries vs. script run time
Better for what? What is the issue you're trying to address? On Sunday, September 29, 2013 11:37:29 PM UTC+2, lesssugar wrote: > > In my app I have a script running in the background 3 times a day. The > script generates lots of inserts into the db. > > In terms of performance, which one of the two below is better? > > 1) Leaving the script as it is = many insert actions at one time / script > runs shorter > 2) Using time.sleep() after a certain group of data gets inserted = fewer > queries at one time / script runs longer > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: workflow diagram and associated code generator
i think, it can be 'nice to have' feature in web2py. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: web2py website down
it's up now. best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Someone are instaled web2py in a shared host with The Passenger Apache module?
The Passenger Apache is a poliglot module for develop wsgi apps in apache (an ruby apps in Rack). See more information in http://www.phusionpassenger.com. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Web2py forum plugin
Hi I'm looking for a forum plugin that I can use to extend a web2py application. I need a forum plugin that uses web2py's normal auth since I need it integrated with other web2py app. I looked at pyforum, but it doesn't seem to use the standard auth, correct? Thanks! BR Tobias Dahlberg -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: web2py & pycharm...
I do not know. I am not aware that they contacted any of us for testing or support. On Sunday, 29 September 2013 15:35:52 UTC-5, Monte Milanuk wrote: > > Hello there, > > The framework support for things like Flask and web2py finally sold me > and I purchased a new license for 3.0 the other day. Last night I > thought I'd try creating a new web2py project just to play with, and was > kind of disappointed when a brand new project already shows a bunch of > errors flagged in default.py for unresolved references for basic web2py > infrastructure like 'auth', 'crud', 'db', etc. > > Am I missing something here? Seems kind of odd for a framework that is > supposed to be 'supported'... > > Thanks, > > Monte > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: workflow diagram and associated code generator
I'd love something like this. Yes it can be done. On Sunday, 29 September 2013 13:39:59 UTC-5, Andrey K wrote: > > Hello everybody, > I wonder is it possible to make workflow diagram compiler on the client > like this (http://gojs.net/latest/samples/flowchart.html) linked to > executable code generated from code blocks associated with appropriate > diagram block. Can it be done in web2py. > I guess it would be very similar to original web2py "graph model" which > allowed to build db tables definitiones based on db table diagrame. Simple > examples would be more then helpful! > > Looking for hearing from you guys. Any ideas and suggestions would be very > much appreciated! > > Kind regards, > Andrey > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: NDB support for GAE
Thank you I will review this asap! On Sunday, 29 September 2013 11:49:36 UTC-5, Quint wrote: > > Hi, > > I think web2py should support NDB for the Google Datastore. > NDB a newer datastore api which has automatic caching features built in. > > https://developers.google.com/appengine/docs/python/ndb/ > > I think it would be great for GAE users to be able to use NDB because it > potentially has better performance and can reduce the costs of your app > (dependent of the type of app off course). > > In fact, i think it wouldn't be that hard to integrate it. > > I had a go at it and i only had to change a couple of lines in dal.py and > it seems to work. > You can switch between NDB and DB because they both should store exactly > the same data in the datastore. > > I attached a patch i made based on version 2.6.4 > Maybe one of the developers could have a look. > > I'm not a web2py expert so this does need to be reviewed by someone with > more in depth knowledge. > But maybe this could serve as a starting point. > > resources: > > > https://docs.google.com/document/d/1AefylbadN456_Z7BZOpZEXDq8cR8LYu7QgI7bt5V0Iw/mobilebasic > > http://dylanv.org/2012/08/22/a-hitchhikers-guide-to-upgrading-app-engine-models-to-ndb/ > > Thanks! > > > > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Performance: sleep vs. queries
In my app I have a script running in the background 3 times a day. The script generates lots of inserts into the db. In terms of performance, which one of the two below is better? 1) Leaving the script as it is = many insert actions at one time / script runs shorter 2) Using time.sleep() after a certain group of data gets inserted = fewer queries at one time / script runs longer -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Curious appengine memcache exception
Issue i had with caching Row objects. The second trace looks like your error. https://groups.google.com/forum/m/#!searchin/web2py/quint/web2py/G6IkcDU6m-g -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Curious appengine memcache exception
I noticed that i can never memcache class objects that are defined within the web2py part of my code. Simple things like dicts, list or class objects defined outside web2py (in my GAE root) are ok. Row object also don't pickle with GAE. I always convert them to dicts. I did some digging some time ago and found that the GAE pickler tries to import the object it's pickling and to do that it looks at the "__module__" attr of the object which for those objects is set to "__restricted__". It cannot import that module so it fails. Or something like that. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Workflow development togetherwhat is the best way to make work flow design on the client (like this
Gojs is a paid software Why not d3js? 2013/9/29 António Ramos > I wish the same for christmas :) > > I think that for the experts here this should be a nice exercise and even > an easy one. > A generic workflow framework that could be used to create many apps. like > a workflow as a service.Like we have CAS . > > > > > 2013/9/29 Andrey K > >> Hello everybody, >> I wonder is it possible to make workflow diagram compiler on the client >> like this (http://gojs.net/latest/samples/flowchart.html) linked to >> executable code generated from code blocks associated with appropriate >> diagram block. Can it be done in web2py. >> I guess it would be very similar to original web2py "graph model" which >> allowed to build db tables definitiones based on db table diagrame. Simple >> examples would be more then helpful! >> >> Looking for hearing from you guys. Any ideas and suggestions would be >> very much appreciated! >> >> Kind regards, >> Andrey >> >> -- >> Resources: >> - http://web2py.com >> - http://web2py.com/book (Documentation) >> - http://github.com/web2py/web2py (Source code) >> - https://code.google.com/p/web2py/issues/list (Report Issues) >> --- >> You received this message because you are subscribed to the Google Groups >> "web2py-users" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to web2py+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Sending jobs to LSF scheduler from web2py
Good day, I am working on the web application (web2py controller) which suppose to tiger unix job scheduler (LSF) which in turn run unix executable files with parameters. Is it save to use such approach in web2py. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] web2py & pycharm...
Hello there, The framework support for things like Flask and web2py finally sold me and I purchased a new license for 3.0 the other day. Last night I thought I'd try creating a new web2py project just to play with, and was kind of disappointed when a brand new project already shows a bunch of errors flagged in default.py for unresolved references for basic web2py infrastructure like 'auth', 'crud', 'db', etc. Am I missing something here? Seems kind of odd for a framework that is supposed to be 'supported'... Thanks, Monte -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Curious appengine memcache exception
David...did you get a response on this? I'm experiencing a similar issue when issuing memcache.set and getting a pickler.dump(value) TypeError: 'NoneType' object is not callable, After upgrading from 1.8.1 to 1.8.5...the problem reared its head. Of course, my class is much more complex than yours it appears. Did you find a solution? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Workflow development togetherwhat is the best way to make work flow design on the client (like this
I wish the same for christmas :) I think that for the experts here this should be a nice exercise and even an easy one. A generic workflow framework that could be used to create many apps. like a workflow as a service.Like we have CAS . 2013/9/29 Andrey K > Hello everybody, > I wonder is it possible to make workflow diagram compiler on the client > like this (http://gojs.net/latest/samples/flowchart.html) linked to > executable code generated from code blocks associated with appropriate > diagram block. Can it be done in web2py. > I guess it would be very similar to original web2py "graph model" which > allowed to build db tables definitiones based on db table diagrame. Simple > examples would be more then helpful! > > Looking for hearing from you guys. Any ideas and suggestions would be very > much appreciated! > > Kind regards, > Andrey > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to the Google Groups > "web2py-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] workflow diagram and associated code generator
Hello everybody, I wonder is it possible to make workflow diagram compiler on the client like this (http://gojs.net/latest/samples/flowchart.html) linked to executable code generated from code blocks associated with appropriate diagram block. Can it be done in web2py. I guess it would be very similar to original web2py "graph model" which allowed to build db tables definitiones based on db table diagrame. Simple examples would be more then helpful! Looking for hearing from you guys. Any ideas and suggestions would be very much appreciated! Kind regards, Andrey -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Workflow development togetherwhat is the best way to make work flow design on the client (like this
Hello everybody, I wonder is it possible to make workflow diagram compiler on the client like this (http://gojs.net/latest/samples/flowchart.html) linked to executable code generated from code blocks associated with appropriate diagram block. Can it be done in web2py. I guess it would be very similar to original web2py "graph model" which allowed to build db tables definitiones based on db table diagrame. Simple examples would be more then helpful! Looking for hearing from you guys. Any ideas and suggestions would be very much appreciated! Kind regards, Andrey -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] NDB support for GAE
Hi, I think web2py should support NDB for the Google Datastore. NDB a newer datastore api which has automatic caching features built in. https://developers.google.com/appengine/docs/python/ndb/ I think it would be great for GAE users to be able to use NDB because it potentially has better performance and can reduce the costs of your app (dependent of the type of app off course). In fact, i think it wouldn't be that hard to integrate it. I had a go at it and i only had to change a couple of lines in dal.py and it seems to work. You can switch between NDB and DB because they both should store exactly the same data in the datastore. I attached a patch i made based on version 2.6.4 Maybe one of the developers could have a look. I'm not a web2py expert so this does need to be reviewed by someone with more in depth knowledge. But maybe this could serve as a starting point. Thanks! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. 270a271 > from google.appengine.ext import ndb 273a275 > from google.appengine.ext.ndb.polymodel import PolyModel as NDBPolyModel 517a520,554 > class NDBDecimalProperty(ndb.Property): > """ > NDB decimal implementation > """ > data_type = decimal.Decimal > > def __init__(self, precision, scale, **kwargs): > super(NDBDecimalProperty, self).__init__(self, **kwargs) > d = '1.' > for x in range(scale): > d += '0' > self.round = decimal.Decimal(d) > > def _to_base_type(self, value): > value = super(NDBDecimalProperty, self)\ > ._to_base_type(value) > if value is None or value == '': > return None > else: > return str(value) > > def _from_base_type(self, value): > if value is None or value == '': > return None > else: > return decimal.Decimal(value).quantize(self.round) > > def _validate(self, value): > value = super(NDBDecimalProperty, self)._validate(value) > if value is None or isinstance(value, decimal.Decimal): > return value > elif isinstance(value, basestring): > return decimal.Decimal(value) > raise TypeError("Property %s must be a Decimal or string."\ > % self._name) 2118c2155,2158 < id = value.key().id_or_name() --- > if isinstance(self, GoogleDatastoreNDBAdapter): > id = value.key.id() > else: > id = value.key().id_or_name() 4451c4491 < if isinstance(fieldtype, gae.Property): --- > if isinstance(fieldtype, gae.Property or ndb.Property): 4648a4689 > self.keyfunc = Key.from_path 4739c4780 < second = Key.from_path(first._tablename, long(second)) --- > second = self.keyfunc(first._tablename, long(second)) 4746c4787 < second = Key.from_path(first._tablename, long(second)) --- > second = self.keyfunc(first._tablename, long(second)) 4753c4794 < second = Key.from_path(first._tablename, long(second)) --- > second = self.keyfunc(first._tablename, long(second)) 4760c4801 < second = Key.from_path(first._tablename, long(second)) --- > second = self.keyfunc(first._tablename, long(second)) 4767c4808 < second = Key.from_path(first._tablename, long(second)) --- > second = self.keyfunc(first._tablename, long(second)) 4782c4823 < second = [Key.from_path(first._tablename, int(i)) for i in second] --- > second = [self.keyfunc(first._tablename, int(i)) for i in second] 5020a5062,5350 > class GoogleDatastoreNDBAdapter(GoogleDatastoreAdapter): > """ > Adapter for GAE which uses NDB > See: https://developers.google.com/appengine/docs/python/ndb/ > > You can pass per model caching settings like this: > > define a dict in you model: > ndb_settings = {:{:}} > > and pass it to DAL: > db = DAL('google:datastore_ndb', adapter_args={'ndb_settings':ndb_settings}) > > See: https://developers.google.com/appengine/docs/python/ndb/cache > """ > def __init__(self,db,uri,pool_size=0,folder=None,db_codec ='UTF-8', > credential_decoder=IDENTITY, driver_args={}, > adapter_args={}, do_co
Re: [web2py] Re: web2py website down
It is up for me. On Sunday, 29 September 2013 07:27:51 UTC-5, 黄祥 wrote: > > i still can't access web2py website and mine on pythonanywhere. the status > is Unhandled Exception > > best regards, > stifan > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: web2py website down
On Sun, 29 Sep 2013 05:27:51 -0700 (PDT) 黄祥 wrote: > i still can't access web2py website and mine on pythonanywhere. the > status is Unhandled Exception It looks that is real meaning of cloud computing - in some parts the sun is shining through, while in the other ones, overcast is too strong. :-) Lesson: "If you want to learn web2py, better have copy of web2py's book on the shelf or, at least, pdf copy on the localhost!" Sincerely, Gour -- Thus the wise living entity's pure consciousness becomes covered by his eternal enemy in the form of lust, which is never satisfied and which burns like fire. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- Before giving up this present body, if one is able to tolerate the urges of the material senses and check the force of desire and anger, he is well situated and is happy in this world. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: web2py website down
i still can't access web2py website and mine on pythonanywhere. the status is Unhandled Exception best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [web2py] Re: web2py website down
Strange... I can access web2py.com without problem since my previous message Le 29 sept. 2013 14:08, "Gour" a écrit : > On Sun, 29 Sep 2013 00:09:36 -0700 (PDT) > Loïc wrote: > > > Pythonanywhere seems to have some issues this morning. My web-apps > > were down too... Everything seems OK now. > > I still see 'Unhandled Exception"...interesting it happens just in > time when I was considering whether to use something like PythonAnywhere > instead of my solid webfaction-like shared hosting. > > > Sincerely, > Gour > > -- > Those who are on this path are resolute in purpose, > and their aim is one. O beloved child of the Kurus, > the intelligence of those who are irresolute is many-branched. > > http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 > > > -- > Resources: > - http://web2py.com > - http://web2py.com/book (Documentation) > - http://github.com/web2py/web2py (Source code) > - https://code.google.com/p/web2py/issues/list (Report Issues) > --- > You received this message because you are subscribed to a topic in the > Google Groups "web2py-users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/web2py/WxA9OMRgOdo/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > web2py+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: web2py website down
On Sun, 29 Sep 2013 00:09:36 -0700 (PDT) Loïc wrote: > Pythonanywhere seems to have some issues this morning. My web-apps > were down too... Everything seems OK now. I still see 'Unhandled Exception"...interesting it happens just in time when I was considering whether to use something like PythonAnywhere instead of my solid webfaction-like shared hosting. Sincerely, Gour -- Those who are on this path are resolute in purpose, and their aim is one. O beloved child of the Kurus, the intelligence of those who are irresolute is many-branched. http://www.atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: Microsoft SQL Server Migrate Trying to Create New Table instead of Editing Old One
probably your .table files weren't in sync with your model. web2py issues a CREATE statement only if the corresponding .table file is not found into the databases/ folder (implicating that that table doesn't exist on the backend) On Sunday, September 29, 2013 2:06:50 AM UTC+2, PN wrote: > > Version: Using web2py 2.6.4 > > Steps: > > 1. I used web2py DAL to create a table in ms sql. This ran in production > for a while. > > 2. I downloaded the web2py app to my development machine, and added a > column to the table in DAL. > > 3. When I try to go to the table in web2py admin (database administration) > with migrate=True, I get an error message " 'pyodbc.ProgrammingError'> ('42S01', "[42S01] [Microsoft][ODBC SQL Server > Driver][SQL Server]There is already an object named 'BIG_Mapping' in the > database. (2714) (SQLExecDirectW)") > > 4. The error message shows that web2py is issuing a CREATE command, not > the ALTER command (in the error log) > > Any suggestions on further troubleshooting? I can alter the table manually > but wanted to test migrations through DAL so I understand them for future > reference. > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Re: IE8 error in web2py.js line 43, Object doesn't support....
no. that "map" file is just a commodity extension to have debuggers (developers tools, firebug, etc) to load the uncompressed version of the library in order to debug it better http://www.html5rocks.com/en/tutorials/developertools/sourcemaps/ it has nothing to do with any js error. does the latest web2py.js throw the "original" error ("object has no method 'on'") ? On Sunday, September 29, 2013 6:35:11 AM UTC+2, davedigerati wrote: > > not sure, when I run the debug in IE8 it trips up on line 43 and so no, I > am not seeing the 404, but I don't know the IE8 dev tools well enough to be > positive. > > So the fact that I am getting this GET request indicates the browser is > seeing a problem in jQuery? Maybe that line 43? > > > On Sunday, September 29, 2013 12:00:39 AM UTC-4, LightDot wrote: >> >> The jQuery map file is optionally used by the browser when debugging >> jQuery, but shouldn't be requested by web2py code or needed otherwise. Are >> you seeing this in IE8 too? >> >> On Sunday, September 29, 2013 5:48:17 AM UTC+2, davedigerati wrote: >>> >>> FWIW- I tested a clean copy of the executable and it is not throwing >>> that error but still is also throwing the : >>> GET http://127.0.0.1:9000/welcome/static/js/jquery-1.10.0.min.map 404 >>> (NOT FOUND) >>> >> -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] Debug web2py with PyCharm 3.0
Hi! How can i debug a web2py application with the new PyCharm 3.0 Professional Edition? Any help is greatly appreciated Thanks Gerd -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
[web2py] web2py website down
Pythonanywhere seems to have some issues this morning. My web-apps were down too... Everything seems OK now. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.