Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Alec Taylor
On Thu, Apr 4, 2013 at 7:05 AM, Arnon Marcus wrote: > I agree that it does seem right now, that the current trend in the > web-development world, in general, is moving in the direction of > transferring more and more tasks to the client, as those become more and > more capable. > > But I wouldn't

Re: [web2py] Re: What, when , where and how to use ARGS and VARS

2013-04-03 Thread The Organisation of Secret Shoppers
Cool! :D I need to study more on that chapter! Thanks again Anthony :) On Thu, Apr 4, 2013 at 12:06 PM, Anthony wrote: > Attached is a work-in-progress cherrypy script. it has the jQuery keypad >> (i got it from here >> http://jsfiddle.net/pjaaar/**6Zh2V/). i

[web2py] Re: What, when , where and how to use ARGS and VARS

2013-04-03 Thread Anthony
> > Attached is a work-in-progress cherrypy script. it has the jQuery keypad > (i got it from here http://jsfiddle.net/pjaaar/6Zh2V/ ). i was wondering > if i could use jquery in web2py, the web page may seem more interactive. Yes, you can absolutely use jQuery with web2py. Like Cherrypy, web

[web2py] Re: What, when , where and how to use ARGS and VARS

2013-04-03 Thread theofficialtoss
Thanks Niphlod, Cliff, and Anthony for your helpful replies. :D I have just successfully controlled a LED lamp after understanding the URL and arguments. I am so happy!! here are my codes for your inspection :D in test.html in default.py if request.args(1)== '1' and request.args(2)=='on':

[web2py] SmartGrid Add Mode to Call a Function

2013-04-03 Thread Dan Kozlowski
I have a smartgird that is being used for adds, updates, and deletes and wondering how I can call a function to update a counter in the DB to keep track of how many add, updates and deletes were done in a day. -- --- You received this message because you are subscribed to the Google Groups "

[web2py] Re: Testing your app using py.test

2013-04-03 Thread Massimo Di Pierro
+1 On Wednesday, 3 April 2013 19:14:13 UTC-5, viniciusban wrote: > > Hi guys. > > I just published an example application with runnable test cases [1]. > > I don't like doctests, so I used py.test due to some reasons: > - I don't need to subclass anything to make my test cases. > - py.test und

[web2py] Re: auth.settings.extra_fields['auth_user']

2013-04-03 Thread 黄祥
please try this in your db.py: db.define_table('company', Field('company_name'), Field('website'), format='%(company_name)s') auth.settings.extra_fields['auth_user']=[ Field('gender', 'list:string'), Field('address', 'text'), Field('zip'), Field('city'), Field('cou

[web2py] Testing your app using py.test

2013-04-03 Thread Vinicius Assef
Hi guys. I just published an example application with runnable test cases [1]. I don't like doctests, so I used py.test due to some reasons: - I don't need to subclass anything to make my test cases. - py.test understands unittest and nose tests. - py.test fixtures schema is (really) very flexibl

[web2py] Re: spoiler (show hidden content without reloading the page)

2013-04-03 Thread LightDot
Assuming you have Bootstrap included in the code, you might as well use it. Bootstrap -> Javascript -> Collapse, works like a charm... Regards, Ales On Wednesday, April 3, 2013 10:08:35 PM UTC+2, BlueShadow wrote: > > Hi, > I would love to add a funktion to my app where I can hide some content.

[web2py] Re: Parent record getting searched for, then having its ID captured for passing to child record

2013-04-03 Thread Alex Glaros
Can anyone please show example of how to capture the ID of a record that is the result of a form search? Does it involve using the request.vars.id? I read the chapters but need more specific format example. Thanks, Alex On Tuesday, April 2, 2013 5:48:26 AM UTC-7, Cliff Kachinske wrote:

Re: [web2py] StopForumSpam: new plugin available

2013-04-03 Thread Ricardo Pedroso
On Fri, Mar 29, 2013 at 1:41 AM, Niphlod wrote: > Here https://github.com/niphlod/w2p_SFS_plugin > > Ultra-alpha-Release ... expect bugs, api changes and some other > intricacies > > PS: if someone wants to chime in to figure out an algorithm to calculate > confidence (0-100) based on frequen

[web2py] Re: Sending email with html links

2013-04-03 Thread jjg0
Ahhh I was forgetting the 'http://' Thanks for the help. On Tuesday, April 2, 2013 10:56:51 PM UTC-4, Anthony wrote: > > Yahoo Mail is re-writing the links. Probably not working correctly because > the URLs are missing the leading "http://"; so are treated as relative > links, which don't make

[web2py] Re: problem with TAG in module

2013-04-03 Thread Massimo Di Pierro
import gluon should be from gluon import * On Wednesday, 3 April 2013 16:06:24 UTC-5, Ivan Gazzola wrote: > > I wrote this module my_util.py: > > #!/usr/bin/env python > # coding: utf8 > > import gluon > > def my_form(form, fields): > table = TAG['']() > for id, label, controls, help i

[web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Arnon Marcus
Just found another interesting talk on the subject : http://www.infoq.com/interviews/tilkov-rest-hypermedia -- --- 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 t

[web2py] problem with TAG in module

2013-04-03 Thread Ivan Gazzola
I wrote this module my_util.py: #!/usr/bin/env python # coding: utf8 import gluon def my_form(form, fields): table = TAG['']() for id, label, controls, help in fields: lab1=str(label) tmp_label=lab1.partition('>') lab1=tmp_label[0]+tmp_label[1]+''+tmp_label[2]

[web2py] Re: spoiler (show hidden content without reloading the page)

2013-04-03 Thread Niphlod
in your css span.spoiler { display: none } in your html if you want to see it click here the spoiler is here in your js $('a.spoiler_toggler').on('click', function(e) { e.preventDefault(); var spoiler_to_reveal = $(this).data('show'); $(spoiler_to_reveal).show(); })

[web2py] spoiler (show hidden content without reloading the page)

2013-04-03 Thread BlueShadow
Hi, I would love to add a funktion to my app where I can hide some content. This content should become visibleafter clicking some button. The catch is I don't want to reload the page. how would you approach this problem. (adding a spoiler tag to my content and parsing the text for it is not the

[web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Arnon Marcus
I agree that it does seem right now, that the current trend in the web-development world, in general, is moving in the direction of transferring more and more tasks to the client, as those become more and more capable. But I wouldn't bury web2py just yet... (nor any other server-side framework

[web2py] Re: need teaching advice (JS+jQuery)

2013-04-03 Thread Limedrop
What about the google maps jQuery plugin? http://www.pittss.lv/jquery/gomap/solutions.php On Thursday, April 4, 2013 6:47:15 AM UTC+13, Massimo Di Pierro wrote: > > Tomorrow I am starting teach a new class. I did not create the class, it > was assigned to me. The class is for undergraduate stude

[web2py] Re: need teaching advice (JS+jQuery)

2013-04-03 Thread Derek
Flickr, Panaramio, RSS to JSON (http://ejohn.org/projects/rss2json/) Yahoo YQL (http://developer.yahoo.com/yql/guide/response.html), Twitter, Salesforce.com... One thing that bugs me is that jQuery returns jQuery objects not dom objects, so certain things you want to do just don't work if you t

[web2py] Re: Truncated Data on Migration

2013-04-03 Thread Cliff Kachinske
I don't think it's smart to let DAL migrate your tables in production. Much better to write your own scripts to handle it. Then of course you should test those scripts before you get to the production instance. The simplest and easiest place to create and test the scripts is on your devel

Re: [web2py] Re: Scheluder for long tasks

2013-04-03 Thread Niphlod
it will be stopped as soon as possible. There's no way to make by default a scheduler "timeout-less" just cause it's a very bad idea (a job-processor with no timeouts "impersonate" the "bad-design" it tries to defeat in the first place) If you need to run processes that may never stop, rely on y

[web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Niphlod
yep. when all the logic is pushed client-side, you need just a backend to (eventually) store data, a full-blown MVC server-side framework is not needed anymore. Anyway, when you start to blob out large chunks of javascript client-side just to do, e.g., an email address validation, you need to c

[web2py] Re: Truncated Data on Migration

2013-04-03 Thread Niphlod
that's more a place for unittesting the app itself than having web2py to check for it for every db (and every version of engine) at all times. It's true that DAL absracts away the 90% of incompatibilities, but still you *need* to evaluate your choices when it comes to a production app, being awa

[web2py] Re: rewrite of db.table.field.contains(....) needs testing

2013-04-03 Thread Cliff Kachinske
Postgres 9.1.3, ubuntu 12.10, code cloned from github < 20 minutes ago. Not sure which postgres driver as both are available. How can I tell? No problems but these use cases are very simple, like these: cjk@cjknovo:~/trtest/web2py/applications/Purchasing/controllers$ grep -rn contains * currenc

[web2py] Re: Truncated Data on Migration

2013-04-03 Thread Chris
It would probably be difficult to keep DAL up to date with DBMS releases -- would hate to have to rev some part of web2py every time even one of the supported DBMSs has a version change. And even then, version alone may not answer the question, since max field lengths can be affected by databas

[web2py] Re: need teaching advice (JS+jQuery)

2013-04-03 Thread Cliff Kachinske
http://jqueryui.com/tabs/ On Wednesday, April 3, 2013 1:47:15 PM UTC-4, Massimo Di Pierro wrote: > > Tomorrow I am starting teach a new class. I did not create the class, it > was assigned to me. The class is for undergraduate students who have little > or no programming experience but know HTML

[web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Derek
And that's my whole issue with it, is you'd have two MVC frameworks that you'd have to work through, or you have static pages and your controller would just be a link back into the data access layer (DAL). Now, for Web3py that's maybe all that is needed - create a DAL, authentication, caching

[web2py] need teaching advice (JS+jQuery)

2013-04-03 Thread Massimo Di Pierro
Tomorrow I am starting teach a new class. I did not create the class, it was assigned to me. The class is for undergraduate students who have little or no programming experience but know HTML+CSS. No server-side programming experience. The class should cover JS+jQuery but no server-side programm

[web2py] Re: Using field names stored as strings for db actions?

2013-04-03 Thread Lamps902
Thanks to both of you! On Wednesday, April 3, 2013 12:12:29 PM UTC-5, Anthony wrote: > > table_rows = [TR(field.label, db(field > 0).count()), _id = field.name + > '__row') for field in db.table1] > > Note, you don't have to use TD() inside TR() -- it will automatically wrap > the TR's component

Re: [web2py] Re: Scheluder for long tasks

2013-04-03 Thread Yoel Benítez Fonseca
El 31.3.2013 11:44 pm, Massimo Di Pierro escribió: You can choose the timeout when you queue a task. is possible disable time_out in scheluder ? if time_out = 0 what will be the result ? On Sunday, 31 March 2013 21:33:47 UTC-5, Yoel Benitez Fonseca wrote: On 31.3.2013 10:04 pm, Massimo

[web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Andrew W
Would you use ember with web2py? Why? Is having two mvc frameworks at the same time too many? -- --- 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+unsubs

[web2py] Re: Using field names stored as strings for db actions?

2013-04-03 Thread Anthony
table_rows = [TR(field.label, db(field > 0).count()), _id = field.name + '__row') for field in db.table1] Note, you don't have to use TD() inside TR() -- it will automatically wrap the TR's components inside TD's. Anthony On Wednesday, April 3, 2013 12:12:33 PM UTC-4, Lamps902 wrote: > > I'd l

[web2py] rewrite of db.table.field.contains(....) needs testing

2013-04-03 Thread Massimo Di Pierro
There is a complete rewrite of the logic behind db.table.field.contains() in trunk. The reason is to bette handle list:type fields and expressions in the (...). All string manipulations (replace, concat) are not done at SQL level and not at the python level. It passes all tests on travis (h

[web2py] Re: Using field names stored as strings for db actions?

2013-04-03 Thread Massimo Di Pierro
On Wednesday, 3 April 2013 11:12:33 UTC-5, Lamps902 wrote: > > I'd like to do something to this effect: > > > > table_rows = [ TR( TD(*field.label*), TD(db(*field*>0).count()), _id > =field.name > + '__row') for field in db.table1 ] > > > Any suggestions? Thanks. > > > -- --- You received

[web2py] Re: new feature in trunk: pack custom

2013-04-03 Thread Lamps902
Thanks, Massimo - great feature! I was going to ask for something like this, as it's extremely useful for cases when you have a large upload folder, and would like to quickly back up the code, but not the user-uploaded files. On Tuesday, April 2, 2013 3:22:50 PM UTC-5, Massimo Di Pierro wrote:

[web2py] Re: SQLFORM.FACTORY editing a document. Save reports no upload files

2013-04-03 Thread António Ramos
No ideas? 2013/4/2 António Ramos > Back to business after almost 2 months i try again to use sqlform.factory > to create and edit documents > My problem was to generate the link > i rearranged my code as follows > > > #if edit a document > if request.args(0): > > row=db((db.trabalhador

[web2py] Using field names stored as strings for db actions?

2013-04-03 Thread Lamps902
I'd like to do something to this effect: fields = db.table1.fields() table_rows = [ TR( TD(*[the label associated with the field]*), TD(db(*[the field]* > 0).count()), _id = field + '__row') for field in fields ] Any suggestions? Thanks. -- --- You received this message because you are

[web2py] Re: web2py custom reset password urls

2013-04-03 Thread Anthony
On Wednesday, April 3, 2013 10:46:45 AM UTC-4, Sebastian Cambeo wrote: > Apparently it is not possible at the moment to customize the > request_reset_password URL and the reset_password URL. > > There is no such option in auth.settings. > You can customize the request_reset_password URL, though

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Richard Vézina
Also, I am curious to know your opinion about Sencha Ext Js : http://www.sencha.com/products/extjs/examples/ Not sure how it compares to the others though Richard On Wed, Apr 3, 2013 at 11:13 AM, Richard Vézina wrote: > Arnon, > > I really appreciate your work, I think it helps a lot all of u

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Massimo Di Pierro
+1 On Wednesday, 3 April 2013 10:13:23 UTC-5, Richard wrote: > > Arnon, > > I really appreciate your work, I think it helps a lot all of us to get > your input about all those frameworks... > > Richard > > > On Wed, Apr 3, 2013 at 10:50 AM, Alec Taylor > > wrote: > >> I hear what you're saying,

[web2py] Re: auth.settings.extra_fields['auth_user']

2013-04-03 Thread Massimo Di Pierro
What error message do you expect? On Wednesday, 3 April 2013 09:44:59 UTC-5, Domagoj Kovač wrote: > > Hi folks, > > i have a problem. I am using form widget i am trying to customize > registration form. I my model i added > > auth.settings.extra_fields['auth_user'] = [Field('company_id', > 'str

[web2py] auth.settings.extra_fields['auth_user']

2013-04-03 Thread Domagoj Kovač
Hi folks, i have a problem. I am using form widget i am trying to customize registration form. I my model i added auth.settings.extra_fields['auth_user'] = [Field('company_id', 'string',required =True)] in my register.html view i have. {{form.custom.widget.company_id['_class'] =

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Richard Vézina
Arnon, I really appreciate your work, I think it helps a lot all of us to get your input about all those frameworks... Richard On Wed, Apr 3, 2013 at 10:50 AM, Alec Taylor wrote: > I hear what you're saying, but ember/data seems far too young to be a > feature point; and everything else you m

[web2py] Re: New Plugin: timezone helper

2013-04-03 Thread Massimo Di Pierro
I am all for using web2pyslices. I would like a little more automation in linking git repos and automatically selecting from repos. On Wednesday, 3 April 2013 06:16:33 UTC-5, Alan Etkin wrote: > > (and all other plugins available for web2py...) >> > > Maybe a clone of the appliances page but for

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Alec Taylor
I hear what you're saying, but ember/data seems far too young to be a feature point; and everything else you mentioned was mere speculation. Not to discount you entirely, what you mentioned about prerendering templates server-side is a very good point. This has been a feature request with AngularJ

[web2py] Re: One form in multiple tabs

2013-04-03 Thread Jim S
I'd start by looking here: http://twitter.github.com/bootstrap/javascript.html#tabs Works really well for me. -Jim On Wednesday, April 3, 2013 9:39:45 AM UTC-5, Annet wrote: > > I am missing the js skills to code a tabbed form ... > > Annet > -- --- You received this message because you ar

[web2py] web2py custom reset password urls

2013-04-03 Thread Sebastian Cambeo
Apparently it is not possible at the moment to customize the request_reset_password URL and the reset_password URL. There is no such option in auth.settings. Furthermore I didn't find a way to change the reset_password Mail message such that it links to a custom URL. However I need this functi

[web2py] Re: One form in multiple tabs

2013-04-03 Thread Annet
I am missing the js skills to code a tabbed form ... Annet -- --- 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 o

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Arnon Marcus
As for real-time / WebSockets stuff, the Ember guys are working on an adapter for EmberData that is going to do just that - so once you implement the relevant modifications for your server, you could start using Web-Sockets in Ember with the same app you already developed with it (!) - no code

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Arnon Marcus
Ember.JS was actually the last framework I researched. I went through Backbone, Knockout, Angular, Batman, Enyo, JavascriptMVC, and some others... Meteor, Derby, SocketStream and the like, are the forward-looking "Next-Gen" hipsters, but they are not comparable to EmberJS, for many reasons. For

Re: [web2py] Re: REF: Database Migration

2013-04-03 Thread Cliff Kachinske
It goes without saying that you have backed up the production db so you can roll the application back, right? Same for the old app, correct? What did you do about the applications//databases directory? Are the fields actually in the db on the production side? If not you should be able to manua

Re: [web2py] Re: REF: Database Migration

2013-04-03 Thread Teddy Nyambe
I have tried both: auth.define_tables(username=True, signature=False, fake_migrate=True) and auth.define_tables(username=True, signature=False, migrate=True) But the error still persists maybe i delete the table from the db? Any more ideas? On Wed, Apr 3, 2013 at 3:29 PM, Niphlod wrote: >

[web2py] Re: One form in multiple tabs

2013-04-03 Thread Niphlod
the main issue here is : are you missing HTML/js skills to code a "tabbed" form or is something on web2py's side that is not working as you expect ? On Wednesday, April 3, 2013 1:11:21 PM UTC+2, Annet wrote: > > I defined the following table: > > db.define_table('scrptNxt', > Field('nodeID','

[web2py] Re: REF: Database Migration

2013-04-03 Thread Niphlod
mind that auth.define_tables() takes "migrate" parameter(s) on its own, not "respecting" some of the DAL(...) ones. On Wednesday, April 3, 2013 2:53:02 PM UTC+2, software.ted wrote: > > I have this error: > > Database db select Traceback > > Traceba

[web2py] Re: Layout.plugin

2013-04-03 Thread Massimo Di Pierro
a .w2p file is a just a .tar.gz gile. You can do $ cd applications/myapp $ tar zxvf /path/to/web2py.plugin.name.w2p On Wednesday, 3 April 2013 00:57:24 UTC-5, Marcos wrote: > > After downloading layout plugin, I need to insert the file into > static/plugin_layout_name/ of myapp. But I don't kno

Re: [web2py] Re: nginx + uwsgi + web2py + PAM

2013-04-03 Thread Matt Broadstone
Man, we're still using web2py 2.0.9 so that was definitely not in the script before! That would have saved me a day of work :) Matt On Tue, Apr 2, 2013 at 3:41 AM, Niphlod wrote: > nice. The script shipped with web2py installs uwsgi from pip, so we're > covered! > > On Monday, April 1, 2013 4:48

[web2py] REF: Database Migration

2013-04-03 Thread Teddy Nyambe
I have this error: Database db selectTraceback Traceback (most recent call last): File "/home/www-data/web2py/applications/init/controllers/appadmin.py", line 232, in select limitby=(start, stop)) File "/home/www-data/web2py/gluon/dal.py", l

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Alec Taylor
Just went through a couple of the examples with Meteor It's certainly interesting; but is quite verbose to write and manage. Most impressive was how completely self-contained those examples are. Other frameworks documentation definitely need to pickup their game. For example, when I was testing

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread David Marko
Meteor is different beast as it is also serverside platform based on node.js ... But development of this framework is quite slow ... -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread António Ramos
Top of tops http://www.meteor.com Because life is too short to learn all the things 2013/4/3 Alec Taylor > Another vote for AngularJS > > On Wed, Apr 3, 2013 at 8:58 PM, David Marko wrote: > > This scenario of one-page application is quite important for mobile > hybrid > > applications. In th

[web2py] Re: New Plugin: timezone helper

2013-04-03 Thread Alan Etkin
> > (and all other plugins available for web2py...) > Maybe a clone of the appliances page but for plugins? Or, IIRC, as Anthony suggested before, move the contributed OS app/plugins to web2pyslices? -- --- You received this message because you are subscribed to the Google Groups "web2py-us

[web2py] One form in multiple tabs

2013-04-03 Thread Annet
I defined the following table: db.define_table('scrptNxt', Field('nodeID','reference node',requires=IS_EMPTY_OR(IS_IN_DB(db,'node.id','%(id)s',zero='Select a value')),ondelete='CASCADE',writable=False,readable=False), Field('viewID','reference view',requires=IS_EMPTY_OR(IS_IN_DB(db,'vie

[web2py] Layout.plugin

2013-04-03 Thread Marcos
After downloading layout plugin, I need to insert the file into static/plugin_layout_name/ of myapp. But I don't know how to extract .w2p. plz tell me the method to insert the file. Thanks -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group.

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Alec Taylor
Another vote for AngularJS On Wed, Apr 3, 2013 at 8:58 PM, David Marko wrote: > This scenario of one-page application is quite important for mobile hybrid > applications. In this case you need standalone app running in device and > consuming data from server. The server provides JSON coomunicatio

[web2py] Re: 'list:reference', contains, Mysql, instr

2013-04-03 Thread Ricardo Cárdenas
Massimo, Yes, it works. The DAL now generates the following SQL, which does bring back the results I was expecting: I should mention that when I tested this model with the default SQLite driver, I got an error ticket. It is probably unrelated to this commit, but here it is just in case: no

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread David Marko
This scenario of one-page application is quite important for mobile hybrid applications. In this case you need standalone app running in device and consuming data from server. The server provides JSON coomunication with app. We have a great experience with http://trigger.io & http://angularjs

[web2py] Re: OAuth2/Facebook auth alongside standard authentication

2013-04-03 Thread ctrlSoft
din you successfully implemented this? -- --- 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:/

[web2py] guidelines to implement oauth with basic web2py auth (noob question)

2013-04-03 Thread ctrlSoft
i want in my application to implement 2 kind of auth(basic and oauth in my case facebook) 1)should i keep it separate? or to generate an entry in basic for every external first login 2)posibility to merge them latter 3)should i create a custom Auth() for external login? i'm a little confused wit

Re: [web2py] Re: EmberJS is the web2py of the client! :)

2013-04-03 Thread Arnon Marcus
"Eh, I don't see much of a need for a client side framework" That may be, but others do. It depends on the needs of a project. You may find you can benefit from such thing at some point, when an appropriately fitting project presents itself to you. It is an matter of managing complexity. For proj

Re: [web2py] Re: Access data in PUT request for @request.restful()

2013-04-03 Thread Michele Comitini
No the body stays there until the end of the transaction (i.e. http response sent). d = json.load(request.body) if something already consumed the body? no problem it is a permanent buffer, then you can rewind: request.body.seek(0) d = json.load(request.body) 2013/4/3 Daniel Gonzalez : > I se

Re: [web2py] Re: scheduler sincronization

2013-04-03 Thread Niphlod
ok, at least it seems consistent: there's: - no send_heartbeat(), do_assign_tasks=True line - no Inside If, do_assign_tasks=True line in all the log. PS: I still can't reproduce the "erratic" behaviour, but a baseline question rises: do you get this also using another db engine ? -- --- You

[web2py] Re: help running workers on multiple machines

2013-04-03 Thread Niphlod
as I said before, if the tasks are ready to be processed, as soon as the "ticker" sees n workers it assign all tasks (~50 per worker) splitting them evenly. I can only think to a transaction isolation problem on mysql end (yes, a) mysql sucks at this and b) python driver doesn't raise a "virtua

[web2py] Re: Access data in PUT request for @request.restful()

2013-04-03 Thread Daniel Gonzalez
I see. So I assume I will have to parse the json myself. I wonder if after @request.restful() has done its job, I can still access the body. I need to parse the json data, but maybe the body is already consumed ... On Wednesday, April 3, 2013 9:24:47 AM UTC+2, Niphlod wrote: > > the restful part

[web2py] Re: Access data in PUT request for @request.restful()

2013-04-03 Thread Niphlod
the restful part parses the data as web2py does, so accepts form/* encoded parameters... it doesn't parse json in the body. On Wednesday, April 3, 2013 8:19:04 AM UTC+2, Daniel Gonzalez wrote: > > Sorry to come back to this after two weeks (was busy with other stuff). I > am trying to access the

Re: [web2py] Re: scheduler sincronization

2013-04-03 Thread Niphlod
attach the complete log please. >From the log lines you posted basically from 8:49:47 to 8:50:03 your assign task is never set to True, however, I'm more interested to see where the "switch" happens in your flow rather than seeing that is always False :P On Wednesday, April 3, 2013 8:55:41 AM UT