[web2py] websockets with web2py
Hello, there, I'm using web2py on Cloud9[1], and web2py works well. I'm working on an app that need websockets, following a Bruno Rocha video [2]. So, when I start the websockets module, python returns an error: Traceback (most recent call last): File "gluon/contrib/websocket_messaging.py", line 96, in import gluon.utils ImportError: No module named gluon.utils The module is in the correct directory (web2py was installed with git clone), and I can't understand where is the error. Maybe this is so basic that I'm over there and can't see. Thanks for any help, [1] - https://c9.io [2] - http://brunorocha.org/python/web2py/websockets-com- tornado-web2py-python-jquery.html -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: web3py
@Ron and @Alex, I read this in the last line of Massimo's message: "Feel free to share your opinion on *web2py developers*." ;-))) Best Regards, 2016-01-14 16:59 GMT-02:00 Alex <mrauc...@gmail.com>: > That sounds great, thanks Massimo! I also think 2) makes the most sense. > Looking forward to using Python 3 ... > > Alex > > -- > 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/d/optout. > -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: CSRF Forbidden 403 when POST from mobile device.
Jon, You MUST have to access the form before send your POST message, to access the CSRF token sended from web2py. This is a security solution that disallow other people to send undesired messages to your app. Best Regards, José Ricardo Borba 2015-08-05 10:37 GMT-03:00 Jon M. lej...@gmail.com: Thanks for the support and figuring it out with the community! Providing answers in the right order: @Anthony, the HTTPS protocol is not yet implemented, first we need the transactions fully working, so HTTP protocol is used meanwhile. We're not using web browsers, is the Android App that generates a POST with JSON request, that is: {entry_value=data_used_by_functions} As if you were using curl for generating POSTs, the auth is provided with credential, classic username and password strings (for now). @Anthony, @Dave_S, as said above, the Android sends this vía web with HTTP with JSON, the development is done in a PC connected to local LAN, so, the Android device with it's own native application generates curl like request, and sends it to the PC's IP within the LAN. And in another version of the same native Android app, it communicates to the same web2py project hosted in pythonanywhere. The guys in pythonanywhere told me that the issue has nothing to do with the server provided by them, they said that the CSRF token could be expired. Could the issue be the: auth.settings.allow_basic_login = True @auth.requires_login() In the different functions that exchange or bring the auth credential. Can it be lost after certain number of hops between functions? Is that a misuse of those two rows of authentication method in the default.py? Thanks again! :D -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: CSRF Forbidden 403 when POST from mobile device.
Hi, Jon, Now its more clear to me what you really need. Maybe this slice from Bruno[1] can help you. I think that YES. ;-) [1] - http://www.web2pyslices.com/slice/show/1533/restful-api-with-web2py Best Regards, José Ricardo Borba 2015-08-05 12:39 GMT-03:00 Jon M. lej...@gmail.com: Hi José! Thanks for suporting too! C: I'm learning about this framework, and I have a glimpse of what the browser does in data exchange between web pages and backend stuff... But, in this application, I'm afraid we want to provide the right interface for the backend. So, no web forms, at least not for now, in the upcoming days we'll be implementing bootstrap 3 for the view layout and stuff, but that's only for informative purposes at this phase. That's why I was asking if there was a way of having RESTful, CRUD way of doing the request from something that had no web forms. So... Mobile App - HTTP stuff - backend controllers (functions in default) - database data exchange, CRUD. An then response to the Mobile App in order to show the data it asked for... Indeed we will use and need the view part and web forms, credentials through it and tokens. But for now, we need to implement the request directly from Android native App. If that's not the way off doin' it, do you or someone knows something about having those tokens in a entity such a mobile device with Android in order to handle sessions, auths, or the usual tools and conventions used in views? Buena vibra! :D -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: CSRF Forbidden 403 when POST from mobile device.
Additionally, this[1] part of web2py book can help you too. * *... By default, Auth protects logins against cross-site request forgeries (CSRF). This is actually provided by web2py's standard CSRF protection whenever forms are generated in a session. However, under some circumstances, the overhead of creating a session for login,password request and reset attempts may be undesirable. DOS attacks are theoretically possible. CSRF protection can be disabled for Auth forms (as of v 2.6):* *Auth = Auth(..., csrf_prevention = False)* *Note that doing this purely to avoid session overload on a busy site is not recommended because of the introduced security risk. Instead, see the Deployment chapter for advice on reducing session overheads...* [1] - http://web2py.com/books/default/chapter/29/09/access-control 2015-08-05 12:45 GMT-03:00 José Ricardo Borba jrborba...@gmail.com: Hi, Jon, Now its more clear to me what you really need. Maybe this slice from Bruno[1] can help you. I think that YES. ;-) [1] - http://www.web2pyslices.com/slice/show/1533/restful-api-with-web2py Best Regards, José Ricardo Borba 2015-08-05 12:39 GMT-03:00 Jon M. lej...@gmail.com: Hi José! Thanks for suporting too! C: I'm learning about this framework, and I have a glimpse of what the browser does in data exchange between web pages and backend stuff... But, in this application, I'm afraid we want to provide the right interface for the backend. So, no web forms, at least not for now, in the upcoming days we'll be implementing bootstrap 3 for the view layout and stuff, but that's only for informative purposes at this phase. That's why I was asking if there was a way of having RESTful, CRUD way of doing the request from something that had no web forms. So... Mobile App - HTTP stuff - backend controllers (functions in default) - database data exchange, CRUD. An then response to the Mobile App in order to show the data it asked for... Indeed we will use and need the view part and web forms, credentials through it and tokens. But for now, we need to implement the request directly from Android native App. If that's not the way off doin' it, do you or someone knows something about having those tokens in a entity such a mobile device with Android in order to handle sessions, auths, or the usual tools and conventions used in views? Buena vibra! :D -- 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/d/optout. -- José Ricardo Borba -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: CSRF Forbidden 403 when POST from mobile device.
Wow! The thing is become more clear post after post! In this case (IoT), I suggest that you, in the FIRST place, starts with a python client (like suggested in the Bruno slice before). And ONLY when things go right you turn to implement the Android (or whatever platform) way. This will isolate your problems and toward you to the solution, step by step. I think that the messages of Massimo and Leonel do, in the essence, the same thing that Bruno's post, but with some more refinement. Try what you feel more comfortable! Best regards, José Ricardo Borba 2015-08-05 13:04 GMT-03:00 Jon M. lej...@gmail.com: That was fast, thanks! :D * *... By default, Auth protects logins against cross-site request forgeries (CSRF). This is actually provided by web2py's standard CSRF protection whenever forms are generated in a session. However, under some circumstances, the overhead of creating a session for login,password request and reset attempts may be undesirable. DOS attacks are theoretically possible. CSRF protection can be disabled for Auth forms (as of v 2.6):* *Auth = Auth(..., csrf_prevention = False)* *Note that doing this purely to avoid session overload on a busy site is not recommended because of the introduced security risk. Instead, see the Deployment chapter for advice on reducing session overheads...* So accurate indeed, I'll look deeply the deployment chapter as stated, now that I know the CSRF verification can be bypassed it kinda feels wrong if deactivating that security mecanism... So, will look into overhead, because... This is a backend prototype for Internet of Things... So, overhead, better have the right control. It will be kinda busy as for it's role we want to implement (you can imagine because the requests to server from embedded devices, if everything goes fine, tons of them). I proposed web2py after some noob research, noob because It's a pretty new topic for the rush of businesses growing and asking for IoT solutions and for the time aI was given to build a functional prototype that can migrate or stay at the hosting we have, change from sqlite to MySQL, change from Rocket to Apache and eventually secure it and scalate it. So, web2py is the shot. I trully want to know your opinion! :D Thanks a lot! Buena vibra! -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: CSRF Forbidden 403 when POST from mobile device.
Thanks for clarifying, Anthony. 2015-08-05 14:40 GMT-03:00 Anthony abasta...@gmail.com: On Wednesday, August 5, 2015 at 11:46:15 AM UTC-4, José Borba wrote: Hi, Jon, Now its more clear to me what you really need. Maybe this slice from Bruno[1] can help you. I think that YES. ;-) [1] - http://www.web2pyslices.com/slice/show/1533/restful-api-with-web2py Note, this is documented in the book as well (with some additional options and details): http://web2py.com/books/default/chapter/29/10/services#Restful-Web-Services Anthony -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
[web2py] Pydal MongoDB Joins
There are an exclusive list for Pydal? If yes, apologize me. I'm experiencing a trouble with mongodb and pydal/web2py. I'm trying to perform the query below, but it simply doesn't work, silently. Only in the terminal a message appear: WARNING:pyDAL:select attribute not implemented: left The query is: mywhere = ((db.esc.date=ini)(db.esc.date=end)) myleft = [db.reg.on(db.esc.vei == db.reg.pre)] rows = db(mywhere).select(db.esc.date, db.esc.vei, db.esc.rot, db.esc.con, db.reg.tim, db.reg.eve, db.reg.atu, db.reg.rpm, db.reg.kmh, left = myleft ) In time, what is the way that web2py implement referenced fields in mongodb? Is dbref? Best regards, -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: Issues with _id in MongoDB
Glad that my thoughts help you (and maybe others too). Regards, 2015-05-30 11:14 GMT-03:00 Ron Chatterjee achatterjee...@gmail.com: Its an interesting topic. I am yet to figure out how mongodb handles many to many relationship. For example, the facebook app that Massimo posted. It utilizes many-to-many relationship using a junction table call link to tie the target and source field to auth_user. Every where I read, they say mongo is better to design such scenario. Will be interesting to know. Thanks for this post Jose. On Friday, May 29, 2015 at 9:51:14 PM UTC-4, José Borba wrote: Closing with success If more people need to import data from CSV files and need to reference other collections in MongoDB, just prepare the file in the way described below (recipe). In a separate file (py) do this - search your term in MongoDB collection of your choice; - convert the _id in int from hex [ like int('deadbeef',16) ]; - convert the int in str; - save your csv with this string (shoul be the Looong integer above); - import the file! This is the code I've used to do this. https://gist.github.com/jrborbars/63a82486bdddfc13e365 Best regards, 2015-05-29 22:12 GMT-03:00 José Ricardo Borba jrbor...@gmail.com: Hum... Seems that web2py converts the hex _id of ObjectId to the Loong integer that represent that number. So, this is not an issue. I need to think again... Best regards, 2015-05-29 18:22 GMT-03:00 José Ricardo Borba jrbor...@gmail.com: Hello all, I'm experiencing some issues with web2py and MongoDB 3.0.3 _id field. With web2py 2.10.4 the _id field (ObjectId) is showed in this way: 26418130264307745716389872944 26418130264307745716389872963 . . With Ipython 3.1.0 (with [python2.7.9 or 3.4.3 and pymongo] OR mongodb shell 3.0.3) the _id field (ObjectId) is showed in this way: 555c90af47439f0958f10530 555c90af47439f0958f10543 . . I think that the last is the correct way to show the _id, because both pymongo and mongoshell showed the same. But why the web2py is not showing the correct _id? Maybe I'm doing something wrong? The last record was imported from a CSV file, and the first was inserted from web2py form (from SQLGRID). Best regards, -- José Ricardo Borba -- José Ricardo Borba -- José Ricardo Borba -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] web2py 2.11.1 is OUT
@Massimo, The web2py 2.11.1 still in the box or was released? I need to test it out with my app, that use mongodb too. I'm experiencing _id troubles, and wish that was only a minor problem with mongodb adapter in the 2.10.4 release that I was updated from the pydal issue #170. Best regards. And congratulations for the very good work in w2p and pydal. 2015-05-29 9:12 GMT-03:00 Massimo Di Pierro massimo.dipie...@gmail.com: This is strange. ANYWAY, a bug crept in so I reverted the posted stable version to 2.10.4 until the bug is fixed. Massimo On Friday, 29 May 2015 00:46:16 UTC-5, Gour wrote: Massimo Di Pierro writes: web2py 2.11.1 is OUT. Heh, I pulled from the master yesterday and it was still alpha. :-) Just in time for the DePy conference tomorrow. All the best promoting web2py!! Sincerely, Gour p.s. I notice that your signature contains: - https://code.google.com/p/web2py/issues/list (Report Issues) which is linking to https://github.com/web2py/web2py/issues. Time to update your sig or it's by intention? -- As the embodied soul continuously passes, in this body, from boyhood to youth to old age, the soul similarly passes into another body at death. A sober person is not bewildered by such a change. -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
[web2py] Re: Issues with _id in MongoDB
Hum... Seems that web2py converts the hex _id of ObjectId to the Loong integer that represent that number. So, this is not an issue. I need to think again... Best regards, 2015-05-29 18:22 GMT-03:00 José Ricardo Borba jrborba...@gmail.com: Hello all, I'm experiencing some issues with web2py and MongoDB 3.0.3 _id field. With web2py 2.10.4 the _id field (ObjectId) is showed in this way: 26418130264307745716389872944 26418130264307745716389872963 . . With Ipython 3.1.0 (with [python2.7.9 or 3.4.3 and pymongo] OR mongodb shell 3.0.3) the _id field (ObjectId) is showed in this way: 555c90af47439f0958f10530 555c90af47439f0958f10543 . . I think that the last is the correct way to show the _id, because both pymongo and mongoshell showed the same. But why the web2py is not showing the correct _id? Maybe I'm doing something wrong? The last record was imported from a CSV file, and the first was inserted from web2py form (from SQLGRID). Best regards, -- José Ricardo Borba -- José Ricardo Borba -- 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/d/optout.
[web2py] Re: Issues with _id in MongoDB
Closing with success If more people need to import data from CSV files and need to reference other collections in MongoDB, just prepare the file in the way described below (recipe). In a separate file (py) do this - search your term in MongoDB collection of your choice; - convert the _id in int from hex [ like int('deadbeef',16) ]; - convert the int in str; - save your csv with this string (shoul be the Looong integer above); - import the file! This is the code I've used to do this. https://gist.github.com/jrborbars/63a82486bdddfc13e365 Best regards, 2015-05-29 22:12 GMT-03:00 José Ricardo Borba jrborba...@gmail.com: Hum... Seems that web2py converts the hex _id of ObjectId to the Loong integer that represent that number. So, this is not an issue. I need to think again... Best regards, 2015-05-29 18:22 GMT-03:00 José Ricardo Borba jrborba...@gmail.com: Hello all, I'm experiencing some issues with web2py and MongoDB 3.0.3 _id field. With web2py 2.10.4 the _id field (ObjectId) is showed in this way: 26418130264307745716389872944 26418130264307745716389872963 . . With Ipython 3.1.0 (with [python2.7.9 or 3.4.3 and pymongo] OR mongodb shell 3.0.3) the _id field (ObjectId) is showed in this way: 555c90af47439f0958f10530 555c90af47439f0958f10543 . . I think that the last is the correct way to show the _id, because both pymongo and mongoshell showed the same. But why the web2py is not showing the correct _id? Maybe I'm doing something wrong? The last record was imported from a CSV file, and the first was inserted from web2py form (from SQLGRID). Best regards, -- José Ricardo Borba -- José Ricardo Borba -- José Ricardo Borba -- 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/d/optout.
[web2py] Issues with _id in MongoDB
Hello all, I'm experiencing some issues with web2py and MongoDB 3.0.3 _id field. With web2py 2.10.4 the _id field (ObjectId) is showed in this way: 26418130264307745716389872944 26418130264307745716389872963 . . With Ipython 3.1.0 (with [python2.7.9 or 3.4.3 and pymongo] OR mongodb shell 3.0.3) the _id field (ObjectId) is showed in this way: 555c90af47439f0958f10530 555c90af47439f0958f10543 . . I think that the last is the correct way to show the _id, because both pymongo and mongoshell showed the same. But why the web2py is not showing the correct _id? Maybe I'm doing something wrong? The last record was imported from a CSV file, and the first was inserted from web2py form (from SQLGRID). Best regards, -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: web2ruby possible?
+1. web2py rocks... 2015-05-13 8:36 GMT-03:00 Leonel Câmara leonelcam...@gmail.com: I want whatever it is you guys are smoking! -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: MSSQLAdapter missing?
@Carl, Maybe if you install/clone web2py again, with pydal embedding working (since tomorrow night), you can get succes now? Try and tell. Best regards, 2015-05-08 11:31 GMT-03:00 Carl Petersen cepet...@gmail.com: OK, I deinstalled the dist-packages version of pyDAL (I had just tried it on the off-chance that it would work anyway) It is now using the embedded version of pyDAL. Unfortunately, still the same error. I ran the command from the microsoft odbc driver manager instructions to verify my install: odbcinst -q -d -n ODBC Driver 11 for SQL Server and received the following info: [ODBC Driver 11 for SQL Server] Description=Microsoft ODBC Driver 11 for SQL Server Driver=/opt/microsoft/msodbcsql/lib64/libmsodbcsql-11.0.so.2270.0 Threading=1 UsageCount=1 It seems to me that at least the driver manager is seeing the driver correctly. Is there anything else I can try? Any assistance would be greatly appreciated! Carl On Thursday, May 7, 2015 at 2:22:42 PM UTC-5, Niphlod wrote: On Thursday, May 7, 2015 at 6:01:17 PM UTC+2, Ron Chatterjee wrote: May be now people will start using mongodb and I will get all my question answered! lol it doesn't have nothing to do with it. @carl: looks like you screwed something up... latest web2py version should use pydal embedded in the repo, not a version stored in dist-packages. moreover, your unixodbc installation seems to fail. -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
[web2py] Pydal issues
Sorry about that title, but I'm seeing in the messages that is a number of messages with pydal connection errors, even with some (little) older versions. My issue with MONGODB is (at some point) replicated with MSSQL, @Alan (don't know about what database). So, after (another) installation of web2py (cloning from github), some strange things happen this time. Follow the output from command line: code Cloning into 'w2p'... remote: Counting objects: 31116, done. remote: Compressing objects: 100% (4/4), done. remote: Total 31116 (delta 0), reused 0 (delta 0), pack-reused 3 Receiving objects: 100% (31116/31116), 32.08 MiB | 98.00 KiB/s, done. Resolving deltas: 100% (18762/18762), done. Checking connectivity... done. Submodule 'gluon/packages/dal' (https://github.com/web2py/pydal.git) registered for path 'gluon/packages/dal' Cloning into 'gluon/packages/dal'... remote: Counting objects: 30227, done. remote: Compressing objects: 100% (41/41), done. remote: Total 30227 (delta 29), reused 0 (delta 0), pack-reused 30186 Receiving objects: 100% (30227/30227), 30.27 MiB | 474.00 KiB/s, done. Resolving deltas: 100% (18157/18157), done. Checking connectivity... done. fatal: reference is not a tree: 04ffbb371c59bfe253cae7865670c132b9b7eb44 Unable to checkout '04ffbb371c59bfe253cae7865670c132b9b7eb44' in submodule path 'gluon/packages/dal' /code So, when I try to run web2py from the command line, this is the following message: code [me@mycomputer]$ python2 web2py.py -a 123 -i 0.0.0.0 Traceback (most recent call last): File web2py.py, line 18, in module import gluon.widget File /home/ricardo/Documents/proj/w2p210c/gluon/__init__.py, line 29, in module You can also download a complete copy from http://www.web2py.com.; RuntimeError: web2py depends on pydal, which apparently you have not installed. Probably you cloned the repository using git without '--recursive' To fix this, please run (from inside your web2py folder): git submodule update --init --recursive You can also download a complete copy from http://www.web2py.com. /code So, until now, I can't test the Paolo Valleri solution for issue #170 of pydal. Any Ideas? Best regards, --- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: MongoDB
Yes, I did! Thanks for the advice. But submodule when cloning web2py still doesn't work. Best regards, 2015-05-07 16:25 GMT-03:00 Paolo Valleri paolo.vall...@gmail.com: update your local copy of pydal, there are several updates regarding mongo in master branch Paolo 2015-05-07 21:14 GMT+02:00 José Ricardo Borba jrborba...@gmail.com: Allright! Updating pymongo to version 3.0 solves this up! Now I take care of the mongo time / pydal issue! Thanks a lot. 2015-05-07 9:05 GMT-03:00 Paolo Valleri paolo.vall...@gmail.com: You should use pymongo 3.0 On Wednesday, May 6, 2015 at 2:38:56 PM UTC+2, José Borba wrote: I'm very busy in these days, but I tried to start a new installation from the ground (to test the TIME issue with Mongodb in pydal #170), but even without this correction (i.e, with plain web2py clone from github) I receive the below error message. I'm simply copy the application folder to the new installation (side-by-side with welcome and examples). With CLI client (mongo) everything works fine. The welcome app works fine. I see that pydal tries to connect 5 times. The string to connect to mongo is fine (since is a local install. In production will have an user and a password too...). Version web2py™ Version 2.10.4-stable+timestamp.2015.04.26.09.05.21 Traceback Traceback (most recent call last): File /home/mydir/w2p210b/gluon/restricted.py, line 227, in restricted exec ccode in environment File /home/mydir/w2p210b/applications/rastreamento/models/db.py http://localhost:8000/admin/default/edit/rastreamento/models/db.py, line 12, in module db = DAL('mongodb://localhost/telemet', pool_size=0, lazy_tables=True) File /home/mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 174, in __call__ obj = super(MetaDAL, cls).__call__(*args, **kwargs) File /mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 459, in __init__ raise RuntimeError(Failure to connect, tried %d times:\n%s % (attempts, tb)) RuntimeError: Failure to connect, tried 5 times: Traceback (most recent call last): File /home/mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 437, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File /home/mydir/w2p210b/gluon/packages/dal/pydal/adapters/base.py, line 57, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File /home/mydir/w2p210b/gluon/packages/dal/pydal/adapters/mongo.py, line 58, in __init__ from pymongo.write_concern import WriteConcern File /home/mydir/w2p210b/gluon/custom_import.py, line 108, in custom_importer return NATIVE_IMPORTER(name, globals, locals, fromlist, level) ImportError: No module named write_concern Best regards, -- José Ricardo Borba -- 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/d/optout. -- José Ricardo Borba -- 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/3q5CfUSPQ1o/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/d/optout. -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: MongoDB
Allright! Updating pymongo to version 3.0 solves this up! Now I take care of the mongo time / pydal issue! Thanks a lot. 2015-05-07 9:05 GMT-03:00 Paolo Valleri paolo.vall...@gmail.com: You should use pymongo 3.0 On Wednesday, May 6, 2015 at 2:38:56 PM UTC+2, José Borba wrote: I'm very busy in these days, but I tried to start a new installation from the ground (to test the TIME issue with Mongodb in pydal #170), but even without this correction (i.e, with plain web2py clone from github) I receive the below error message. I'm simply copy the application folder to the new installation (side-by-side with welcome and examples). With CLI client (mongo) everything works fine. The welcome app works fine. I see that pydal tries to connect 5 times. The string to connect to mongo is fine (since is a local install. In production will have an user and a password too...). Version web2py™ Version 2.10.4-stable+timestamp.2015.04.26.09.05.21 Traceback Traceback (most recent call last): File /home/mydir/w2p210b/gluon/restricted.py, line 227, in restricted exec ccode in environment File /home/mydir/w2p210b/applications/rastreamento/models/db.py http://localhost:8000/admin/default/edit/rastreamento/models/db.py, line 12, in module db = DAL('mongodb://localhost/telemet', pool_size=0, lazy_tables=True) File /home/mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 174, in __call__ obj = super(MetaDAL, cls).__call__(*args, **kwargs) File /mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 459, in __init__ raise RuntimeError(Failure to connect, tried %d times:\n%s % (attempts, tb)) RuntimeError: Failure to connect, tried 5 times: Traceback (most recent call last): File /home/mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 437, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File /home/mydir/w2p210b/gluon/packages/dal/pydal/adapters/base.py, line 57, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File /home/mydir/w2p210b/gluon/packages/dal/pydal/adapters/mongo.py, line 58, in __init__ from pymongo.write_concern import WriteConcern File /home/mydir/w2p210b/gluon/custom_import.py, line 108, in custom_importer return NATIVE_IMPORTER(name, globals, locals, fromlist, level) ImportError: No module named write_concern Best regards, -- José Ricardo Borba -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: MongoDB adapter
YAY Everything is working FINE! Thank you very much, Paolo, Massimo and others. Cheers. 2015-05-04 10:39 GMT-03:00 Ron Chatterjee achatterjee...@gmail.com: What is mongodb adapter? Where do I find that info? On Monday, May 4, 2015 at 8:39:48 AM UTC-4, Paolo Valleri wrote: It should be fixed in trunk Paolo On Saturday, May 2, 2015 at 1:24:32 PM UTC+2, José Borba wrote: OK. Thank you very much again. Cheers. 2015-05-02 8:22 GMT-03:00 Paolo Valleri paolo@gmail.com: Open an issue to don't forget it,I'll fix it in the next few days Paolo On May 2, 2015 1:18 PM, José Ricardo Borba jrbor...@gmail.com wrote: Paolo, Thank you for you quickly response. But I'm working with the latest web2py/Pydal 2.10.4 (downloaded 2.10.3 and updated). I forgot to mention this. I'm sorry. My second bet is that the parser of time (the time_itens above) need to be modified to work with time in mongo, Still not knowing what is the correct bug (if there are one) to report. Cheers, 2015-05-02 4:23 GMT-03:00 Paolo Valleri paolo@gmail.com: Hi, try use the latest version of pydal, Mongo adapter has been recently updated to work with pymongo 3.0 However, I think this is a bug. Can you open a bug report on https://github.com/web2py/pydal Paolo On Saturday, May 2, 2015 at 3:58:13 AM UTC+2, José Borba wrote: Hi 4 All, I'm new to mongoDB and still having some problems with a TIME field. When I set a TIME field in the table, fill the input field of a sqlform (only time is allowed) and send the data to table, all the record is inserted without any warning. But when I try to show in the sqlform, I receive a message: pre code Traceback (most recent call last): File /home/xxx.../applications/ras/controllers/appadmin.py, line 269, in select *fields, limitby=(start, stop)) File /home/xxx.../gluon/packages/dal/pydal/objects.py, line 2026, in select return adapter.select(self.query,fields,attributes) File /home/xxx.../gluon/packages/dal/pydal/adapters/mongo.py, line 353, in select result = processor(rows, fields, newnames, False) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1596, in parse value = self.parse_value(value,ft,blob_decode) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1450, in parse_value return self.parsemap[key](value,field_type) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1472, in parse_time time_items = map(int,str(value)[:8].strip().split(':')[:3]) ValueError: invalid literal for int() with base 10: '2000-01-' /code /pre Trying to understand what happened, I'm googled for some info, and found the Mongo adapter code (yes, I didn't tried in my own computer). Reading the code (in pydal/adapters/mongo.py), I see a (possible) clue: The lines 148 to 163 is, in some way, weird for my reading. Maybe I misunderstood some point, but this pre code t = datetime.time(0,0,0) /code /pre is a formatter for a field type DATE, and this pre code t = datetime.date(2000,1,1) /code /pre is a formatter for a field type TIME ? Best regards, and keep going the invaluable work with this framework. -- José Ricardo Borba -- 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+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- José Ricardo Borba -- 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/c8JpvzBHGhE/unsubscribe. To unsubscribe from this group and all its topics, send an email to web2py+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- José Ricardo Borba -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues
Re: [web2py] Pydal issues
Thank you, Niphlod and Richard, to take care about. Cheers, 2015-05-07 16:18 GMT-03:00 Niphlod niph...@gmail.com: unfortunately, bad commit happens. we know already. https://github.com/web2py/web2py/commit/6f91fdd8332beb5e6a17a1444655e9b9f22e2f4c#commitcomment-11073544 On Thursday, May 7, 2015 at 9:06:51 PM UTC+2, Richard wrote: I had the same issue last night trying to clone web2py... pydal never shows up!! Richard On Thu, May 7, 2015 at 3:06 PM, Richard Vézina ml.richa...@gmail.com wrote: copy mannually the pydal in web2py gluon/packages folder... which is what git clone --recursive web2py repo should do... Richard On Thu, May 7, 2015 at 3:02 PM, José Ricardo Borba jrbor...@gmail.com wrote: Sorry about that title, but I'm seeing in the messages that is a number of messages with pydal connection errors, even with some (little) older versions. My issue with MONGODB is (at some point) replicated with MSSQL, @Alan (don't know about what database). So, after (another) installation of web2py (cloning from github), some strange things happen this time. Follow the output from command line: code Cloning into 'w2p'... remote: Counting objects: 31116, done. remote: Compressing objects: 100% (4/4), done. remote: Total 31116 (delta 0), reused 0 (delta 0), pack-reused 3 Receiving objects: 100% (31116/31116), 32.08 MiB | 98.00 KiB/s, done. Resolving deltas: 100% (18762/18762), done. Checking connectivity... done. Submodule 'gluon/packages/dal' (https://github.com/web2py/pydal.git) registered for path 'gluon/packages/dal' Cloning into 'gluon/packages/dal'... remote: Counting objects: 30227, done. remote: Compressing objects: 100% (41/41), done. remote: Total 30227 (delta 29), reused 0 (delta 0), pack-reused 30186 Receiving objects: 100% (30227/30227), 30.27 MiB | 474.00 KiB/s, done. Resolving deltas: 100% (18157/18157), done. Checking connectivity... done. fatal: reference is not a tree: 04ffbb371c59bfe253cae7865670c132b9b7eb44 Unable to checkout '04ffbb371c59bfe253cae7865670c132b9b7eb44' in submodule path 'gluon/packages/dal' /code So, when I try to run web2py from the command line, this is the following message: code [me@mycomputer]$ python2 web2py.py -a 123 -i 0.0.0.0 Traceback (most recent call last): File web2py.py, line 18, in module import gluon.widget File /home/ricardo/Documents/proj/w2p210c/gluon/__init__.py, line 29, in module You can also download a complete copy from http://www.web2py.com.; RuntimeError: web2py depends on pydal, which apparently you have not installed. Probably you cloned the repository using git without '--recursive' To fix this, please run (from inside your web2py folder): git submodule update --init --recursive You can also download a complete copy from http://www.web2py.com. /code So, until now, I can't test the Paolo Valleri solution for issue #170 of pydal. Any Ideas? Best regards, --- José Ricardo Borba -- 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+un...@googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
[web2py] MongoDB
I'm very busy in these days, but I tried to start a new installation from the ground (to test the TIME issue with Mongodb in pydal #170), but even without this correction (i.e, with plain web2py clone from github) I receive the below error message. I'm simply copy the application folder to the new installation (side-by-side with welcome and examples). With CLI client (mongo) everything works fine. The welcome app works fine. I see that pydal tries to connect 5 times. The string to connect to mongo is fine (since is a local install. In production will have an user and a password too...). Version web2py™ Version 2.10.4-stable+timestamp.2015.04.26.09.05.21 Traceback Traceback (most recent call last): File /home/mydir/w2p210b/gluon/restricted.py, line 227, in restricted exec ccode in environment File /home/mydir/w2p210b/applications/rastreamento/models/db.py http://localhost:8000/admin/default/edit/rastreamento/models/db.py, line 12, in module db = DAL('mongodb://localhost/telemet', pool_size=0, lazy_tables=True) File /home/mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 174, in __call__ obj = super(MetaDAL, cls).__call__(*args, **kwargs) File /mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 459, in __init__ raise RuntimeError(Failure to connect, tried %d times:\n%s % (attempts, tb)) RuntimeError: Failure to connect, tried 5 times: Traceback (most recent call last): File /home/mydir/w2p210b/gluon/packages/dal/pydal/base.py, line 437, in __init__ self._adapter = ADAPTERS[self._dbname](**kwargs) File /home/mydir/w2p210b/gluon/packages/dal/pydal/adapters/base.py, line 57, in __call__ obj = super(AdapterMeta, cls).__call__(*args, **kwargs) File /home/mydir/w2p210b/gluon/packages/dal/pydal/adapters/mongo.py, line 58, in __init__ from pymongo.write_concern import WriteConcern File /home/mydir/w2p210b/gluon/custom_import.py, line 108, in custom_importer return NATIVE_IMPORTER(name, globals, locals, fromlist, level) ImportError: No module named write_concern Best regards, -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: MongoDB adapter
Paolo, Thank you for you quickly response. But I'm working with the latest web2py/Pydal 2.10.4 (downloaded 2.10.3 and updated). I forgot to mention this. I'm sorry. My second bet is that the parser of time (the time_itens above) need to be modified to work with time in mongo, Still not knowing what is the correct bug (if there are one) to report. Cheers, 2015-05-02 4:23 GMT-03:00 Paolo Valleri paolo.vall...@gmail.com: Hi, try use the latest version of pydal, Mongo adapter has been recently updated to work with pymongo 3.0 However, I think this is a bug. Can you open a bug report on https://github.com/web2py/pydal Paolo On Saturday, May 2, 2015 at 3:58:13 AM UTC+2, José Borba wrote: Hi 4 All, I'm new to mongoDB and still having some problems with a TIME field. When I set a TIME field in the table, fill the input field of a sqlform (only time is allowed) and send the data to table, all the record is inserted without any warning. But when I try to show in the sqlform, I receive a message: pre code Traceback (most recent call last): File /home/xxx.../applications/ras/controllers/appadmin.py, line 269, in select *fields, limitby=(start, stop)) File /home/xxx.../gluon/packages/dal/pydal/objects.py, line 2026, in select return adapter.select(self.query,fields,attributes) File /home/xxx.../gluon/packages/dal/pydal/adapters/mongo.py, line 353, in select result = processor(rows, fields, newnames, False) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1596, in parse value = self.parse_value(value,ft,blob_decode) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1450, in parse_value return self.parsemap[key](value,field_type) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1472, in parse_time time_items = map(int,str(value)[:8].strip().split(':')[:3]) ValueError: invalid literal for int() with base 10: '2000-01-' /code /pre Trying to understand what happened, I'm googled for some info, and found the Mongo adapter code (yes, I didn't tried in my own computer). Reading the code (in pydal/adapters/mongo.py), I see a (possible) clue: The lines 148 to 163 is, in some way, weird for my reading. Maybe I misunderstood some point, but this pre code t = datetime.time(0,0,0) /code /pre is a formatter for a field type DATE, and this pre code t = datetime.date(2000,1,1) /code /pre is a formatter for a field type TIME ? Best regards, and keep going the invaluable work with this framework. -- José Ricardo Borba -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: MongoDB adapter
OK. Thank you very much again. Cheers. 2015-05-02 8:22 GMT-03:00 Paolo Valleri paolo.vall...@gmail.com: Open an issue to don't forget it,I'll fix it in the next few days Paolo On May 2, 2015 1:18 PM, José Ricardo Borba jrborba...@gmail.com wrote: Paolo, Thank you for you quickly response. But I'm working with the latest web2py/Pydal 2.10.4 (downloaded 2.10.3 and updated). I forgot to mention this. I'm sorry. My second bet is that the parser of time (the time_itens above) need to be modified to work with time in mongo, Still not knowing what is the correct bug (if there are one) to report. Cheers, 2015-05-02 4:23 GMT-03:00 Paolo Valleri paolo.vall...@gmail.com: Hi, try use the latest version of pydal, Mongo adapter has been recently updated to work with pymongo 3.0 However, I think this is a bug. Can you open a bug report on https://github.com/web2py/pydal Paolo On Saturday, May 2, 2015 at 3:58:13 AM UTC+2, José Borba wrote: Hi 4 All, I'm new to mongoDB and still having some problems with a TIME field. When I set a TIME field in the table, fill the input field of a sqlform (only time is allowed) and send the data to table, all the record is inserted without any warning. But when I try to show in the sqlform, I receive a message: pre code Traceback (most recent call last): File /home/xxx.../applications/ras/controllers/appadmin.py, line 269, in select *fields, limitby=(start, stop)) File /home/xxx.../gluon/packages/dal/pydal/objects.py, line 2026, in select return adapter.select(self.query,fields,attributes) File /home/xxx.../gluon/packages/dal/pydal/adapters/mongo.py, line 353, in select result = processor(rows, fields, newnames, False) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1596, in parse value = self.parse_value(value,ft,blob_decode) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1450, in parse_value return self.parsemap[key](value,field_type) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1472, in parse_time time_items = map(int,str(value)[:8].strip().split(':')[:3]) ValueError: invalid literal for int() with base 10: '2000-01-' /code /pre Trying to understand what happened, I'm googled for some info, and found the Mongo adapter code (yes, I didn't tried in my own computer). Reading the code (in pydal/adapters/mongo.py), I see a (possible) clue: The lines 148 to 163 is, in some way, weird for my reading. Maybe I misunderstood some point, but this pre code t = datetime.time(0,0,0) /code /pre is a formatter for a field type DATE, and this pre code t = datetime.date(2000,1,1) /code /pre is a formatter for a field type TIME ? Best regards, and keep going the invaluable work with this framework. -- José Ricardo Borba -- 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/d/optout. -- José Ricardo Borba -- 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/c8JpvzBHGhE/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/d/optout. -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
[web2py] MongoDB adapter
Hi 4 All, I'm new to mongoDB and still having some problems with a TIME field. When I set a TIME field in the table, fill the input field of a sqlform (only time is allowed) and send the data to table, all the record is inserted without any warning. But when I try to show in the sqlform, I receive a message: pre code Traceback (most recent call last): File /home/xxx.../applications/ras/controllers/appadmin.py, line 269, in select *fields, limitby=(start, stop)) File /home/xxx.../gluon/packages/dal/pydal/objects.py, line 2026, in select return adapter.select(self.query,fields,attributes) File /home/xxx.../gluon/packages/dal/pydal/adapters/mongo.py, line 353, in select result = processor(rows, fields, newnames, False) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1596, in parse value = self.parse_value(value,ft,blob_decode) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1450, in parse_value return self.parsemap[key](value,field_type) File /home/xxx.../gluon/packages/dal/pydal/adapters/base.py, line 1472, in parse_time time_items = map(int,str(value)[:8].strip().split(':')[:3]) ValueError: invalid literal for int() with base 10: '2000-01-' /code /pre Trying to understand what happened, I'm googled for some info, and found the Mongo adapter code (yes, I didn't tried in my own computer). Reading the code (in pydal/adapters/mongo.py), I see a (possible) clue: The lines 148 to 163 is, in some way, weird for my reading. Maybe I misunderstood some point, but this pre code t = datetime.time(0,0,0) /code /pre is a formatter for a field type DATE, and this pre code t = datetime.date(2000,1,1) /code /pre is a formatter for a field type TIME ? Best regards, and keep going the invaluable work with this framework. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Database
Ron, XML is a data interchange format (like JSON, ASCII,...), not suitable to storage data. To storage data, use a database (of your choice). Best regards, 2015-04-08 11:54 GMT-03:00 Kiran Subbaraman subbaraman.ki...@gmail.com: Won't a lxml based solution do? Am just trying to understand why you want DAL support for XML based file-storage? Kiran Subbaraman http://subbaraman.wordpress.com/about/ On Wed, 08-04-2015 7:14 PM, Ron Chatterjee wrote: Speaking of database, if I have the xml file for the database, does anyone know how to use in web2py? fo I need yo use sqlachamy? -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] Re: web2py Complete Reference Manual
We left summer few weeks ago. It's late? ;-) Jose Ricardo Borba Porto Alegre - RS Brasil 2015-04-04 0:40 GMT-03:00 Massimo Di Pierro massimo.dipie...@gmail.com: Yes. Summer 2015. On Friday, 3 April 2015 18:55:22 UTC-5, Kostas M wrote: +1 By the way, is there a time frame for the 6th edition? -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout.
Re: [web2py] web2py logo - need immediate help
I'm not a designer, but I tried to do this! If you wanto to use it, feel free for any use. Best Regards, 2014-04-01 19:51 GMT-03:00 Dave S snidely@gmail.com: On Tuesday, April 1, 2014 1:29:02 PM UTC-7, Dave S wrote: On Tuesday, April 1, 2014 12:59:11 PM UTC-7, Anthony wrote: On Tuesday, April 1, 2014 2:41:24 PM UTC-4, Dave S wrote: On Tuesday, April 1, 2014 7:57:57 AM UTC-7, Adi wrote: Atar, my partner will do it. She'll send it as soon as it's ready... I'll have my daughter get ready for next year /dps Reminds me of this: https://groups.google.com/d/msg/web2py/MVbBcl6b9vU/- aZjrsUivpoJ I still have some similar pictures, but for me that was a few megaseconds ago. Some of those pictures are on greenbar. No foolin'! /dps -- 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/d/optout. -- José Ricardo Borba -- 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/d/optout. attachment: ubuntu-web2py.svg
Re: [web2py] Re: Strange artifact
+1 I REALLY ignore IE for development purposes. If something works on IE, its a plus. ;-) Regards, 2014-02-07 12:57 GMT-02:00 Willoughby neil.erik...@gmail.com: IE has been out for 18 years and since day one has exhibited differing behavior to that of other browsers that have come along the way. (And I say this as someone who likes IE) As a web developer, you quickly learn that and either code around it for your IE users or ignore the 'quirks' that IE provides for you. In web2py, you'll notice many templates already have IE specific workarounds to handle issues of a general nature. I don't use SQLFORM, so I don't know what that specific code holds. Could be that IE11+ has introduced something new for us to tackle. Either way, I think this is a small 'quirk' that many would likely ignore. This is probably why no one has responded. On Wednesday, February 5, 2014 10:57:30 AM UTC-5, horridohobbyist wrote: I'm using SQLFORM.grid with pagination. In Chrome, Firefox, and Safari, the bottom of the grid looks like this: https://lh6.googleusercontent.com/--qxdHiziBMk/UvJeijJxamI/A3g/tO38T6oazHo/s1600/Capture2.PNG But in Internet Explorer 11 (and presumably earlier versions of IE), the bottom of the grid looks like this: https://lh4.googleusercontent.com/-TGbTs3Zq02k/UvJe3wQqxKI/A3o/ZgqFVJ05Xi0/s1600/Capture.PNG What's that strange artifact just above the pagination bar?? And why does it only show up in the IE browser? 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. -- 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] Pygal
Maybe you can try this [1] to import pygal. With this example, you need to generate a SVG file and after, show in the page [2]. [1] - http://pygal.org/first_steps/ [2] - http://edutechwiki.unige.ch/en/Using_SVG_with_HTML5_tutorial#Embeding_SVG_in_HTML_5_with_the_src_tag Cheers, 2014/1/13 Janko Strusa janko.str...@gmail.com: I am trying to use http://pygal.org/ with my web2py. But I can't import paygal. Since I am new to python programing I've got lost. I've tried easy_install pygal in shell, like from this example http://www.web2pyslices.com/slice/show/1634/beauty-graphics-and-charts-with-pygal but it does not work for me. Can someone please lead me through process of adding module to 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. -- 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: bootstrap 3
+1. Only for put more gas in the fire, more CSS frameworks to develop your own formstyles: http://usablica.github.io/front-end-frameworks/compare.html Regards, 2013/9/3 Vinicius Assef vinicius...@gmail.com I Agree. On Tue, Sep 3, 2013 at 10:24 AM, Richard Vézina ml.richard.vez...@gmail.com wrote: +1 Richard On Fri, Aug 23, 2013 at 4:22 AM, Michele Comitini michele.comit...@gmail.com wrote: IMHO I would be careful in adding support to presentation frameworks inside main web2py distribution. The scaffolding applications should be a projects on their own. This way there could be different scaffolding apps targeting different presentation frameworks to choose from. The one scaffolding app distributed together with web2py would be selected using a criteria of maturity or whatever. I think web2py community now is large and mature enough and would benefit from this separation. mic 2013/8/22 Sebastián Tromer tromersebast...@gmail.com According to Paul Irish 100% faster paint time with Bootstrap 3 Source: http://www.youtube.com/watch?v=Z1IqzeA3XXg El jueves, 1 de agosto de 2013 04:04:49 UTC-3, Massimo Di Pierro escribió: Why is 3 better than 2 other than the higher number? The buttons do not look as nice. On Wednesday, 31 July 2013 10:56:39 UTC-5, VP wrote: not quite compatible with web2py yet. Navbar are all messed up. Possibly other things as well. I think no more span-12, span-10, etc. new syntax is col-lg-12, etc. -- --- 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. -- --- 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. -- --- 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. -- --- 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. -- --- 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] real time graph
Dear Vera, In web world, real-time means javascript. See this [1] and this [2] questions at stackoverflow, this example [3] with node.js library and the library gRaphael [4] as starting points. [1] - http://stackoverflow.com/questions/4602755/raphael-js-and-real-time-graph [2] - http://stackoverflow.com/questions/6502827/real-time-data-graphing-on-a-line-chart-with-html5 [3] - http://blog.new-bamboo.co.uk/2009/12/08/real-time-online-activity-monitor-example-with-node-js-and-websocket [4] - http://g.raphaeljs.com/ Best Regards, 2013/7/18 Vera Moreira vljmore...@gmail.com hi everyone, I need some help, does anyone have examples on how to do a real time graph. What I need is a graph to constantly show random numbers, I´m using matplotlib I already have this info: from Antonis Tzorvas an idea for a real-time approach graph you have to go with gifs generated by the several .draw()s and save *.gif in static/images folder but i've just found this one: http://jakevdp.github.io/blog/2012/08/18/matplotlib-animation-tutorial/ from Ovidio Marinho A good option would also google maps. See this done with google maps and web2py. http://mosaico.no-ip.org/mosaico/regionalizacao/regmapa . For graphs with movements that would be better http://mosaico.no-ip.org/mosaico/mortalidadeinfantil/neonatalmun.html?municipio=Agua+Brancabotao=muniind=neonatal graphs are interactive and very good http://www.highcharts.com/ -- --- 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. -- --- 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] web2py roadmap
Awesome! 2013/7/16 Niphlod niph...@gmail.com sorry all, was working a few days ago. anyway, corrected it, thanks for pointing it out. On Tuesday, July 16, 2013 7:44:21 PM UTC+2, Richard wrote: Solve :) On Tue, Jul 16, 2013 at 1:33 PM, Daniel González dgzab...@gmail.comwrote: Just add a backslash at the end of the url https://trello.com/b/d3aqBbBl/ El 16/07/13 19:31, Richard Vézina escribió: Blank with chromium!! On Tue, Jul 16, 2013 at 1:13 PM, alokjoshiofaarmax alokjosh...@gmail.com mailto:alokjosh...@**gmail.com wrote: I too go the blank screen with Internet Explorer 9 but the site showed up perfectly in Chrome. On Tuesday, July 16, 2013 9:10:32 AM UTC-7, jjs0sbw wrote: I get a blank screen??? On Sun, Jul 14, 2013 at 1:30 PM, Niphlod nip...@gmail.com wrote: web2py's developers work often behind the curtain and users are not able to see what they're working on. Historically we tracked down feature-requests and todo-lists on google code, but it's a nightmare to track them and work with it efficiently. On a nice tip received by a power web2py user, we (developers) decided to create something more readable to give us (developers AND users) a nice representation on what's going on. Please welcome the official trello board for web2py's roadmap : https://trello.com/b/d3aqBbBl -- --- 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+un...@googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- Joe Simpson Sent From My DROID!! -- --- 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+un...@**googlegroups.com mailto:web2py%2Bu...@**googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- --- 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+un...@**googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- --- 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+un...@**googlegroups.com. For more options, visit https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out . -- --- 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. -- --- 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] digital data store
Hi, Richard, Is an interesting work, congratulations. I will be glad if you open source-it. Best regards, José Ricardo Borba Porto Alegre - RS - Brasil 2012/7/26 Richard Penman richar...@gmail.com Hello, I made this web2py app for selling digital data via PayPal: http://sitescraper.net/data Would appreciate feedback. If you are interested it is hosted on webfaction with nginx for the static content and uwsgi for web2py. Blog was generated with jekyll. If there is enough interest I can clean it up and open source it. I have made a few sales so far, so seems to technically work well but I am not a designer so looks crude. Anyone here good at design or can recommend someone? Richard -- -- José Ricardo Borba UFRGS - Instituto de Física L3FNano - 43173 room 101 Lab:55-51-3308-6457 / Office: 55-51-3308-6530 Mobile:55-51-8184-7649 / Fax: 55-51-3308-7286 --
[web2py] Gluino with Flask
Sorry if this is not the correct place to post this, but is the only one that, I think, I give a correct answer. I'm starting a little project (yes, very little) and don't want to set entire web2py in this installation. So I use Flask to do this. But DAL is very powerfull and I still want to use it in this project too. So, I download gluino from github and run one example. A message appear when I run the flask_example.py: No handlers could be found for logger web2py.cache And the content is not displayed. Only a Not found. What that means? How can I correct this? Best regards, -- José Ricardo Borba Porto Alegre - RS - Brasil
Re: [web2py] Re: Integrate PHP project with web2py
First: What database you are looking for? PHPmyadmin is only for MySQL. For PostgreSQL exist the PHPpgadmin at sourceforge. Second: If your database exists, you can access through the right admin interface (above), with your user and pass. Now you can create your database dictionary. So, the DAL can do the hard work when you create your DB for your w2p app. Regards, José Ricardo Borba Porto Alegre - RS 2012/5/30 Bill Thayer bill.tha...@live.com You could also have web2py and php share a database system like PostgreSQL. Hello Allen, This remark is interesting. I've been working hard for 2 days trying to get phpMyAdmin to run with web2py but I am having difficulties. Do I need two different servers to run PHP and web2py? My need is to create a database dictionary for documenting my database. -Bill On Monday, January 23, 2012 6:54:43 AM UTC-6, Alan Etkin wrote: What kind of inclusion are you looking for? I suppose the most obvious way is to append a php app to a web2py view trough AJAX. For interaction perhaps it is possible to use web2py's XML and JSON views and RPC calls between applications. You could also have web2py and php share a database system like PostgreSQL. On 23 ene, 05:52, ganesh waghmare ganeshwaghmar...@gmail.com wrote: Hi all, I have devloped a web2py site and I want to include chat application into it which is implemented in php. How can I include this php in web2py. Thanks.. On Monday, January 23, 2012 6:54:43 AM UTC-6, Alan Etkin wrote: What kind of inclusion are you looking for? I suppose the most obvious way is to append a php app to a web2py view trough AJAX. For interaction perhaps it is possible to use web2py's XML and JSON views and RPC calls between applications. You could also have web2py and php share a database system like PostgreSQL. On 23 ene, 05:52, ganesh waghmare ganeshwaghmar...@gmail.com wrote: Hi all, I have devloped a web2py site and I want to include chat application into it which is implemented in php. How can I include this php in web2py. Thanks.. -- José Ricardo Borba UFRGS - Instituto de Física L3FNano - 43173 room 101 Lab:55-51-3308-6457 / Office: 55-51-3308-6530 Mobile:55-51-8184-7649 / Fax: 55-51-3308-7286
Re: [web2py] My home made ide - Screenshots
Very impressive. Very good job. I will be glad if you share with us. José Ricardo Borba Porto Alegre - RS 2012/5/3 Ricardo Pedroso rmdpedr...@gmail.com As requested by Massimo, I've upload some screenshots: https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py00.png https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py01.png https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py02.png https://github.com/rpedroso/gweb2py/raw/master/screenshots/gweb2py03.png Massimo, in gweb2py00.png as you can see there is a HTTP 404 error code regarding a css/artwork.css missing when calling http://localhost:8000/examples/default/download Ricardo -- José Ricardo Borba UFRGS - Instituto de Física L3FNano - 43173 room 101 Lab:55-51-3308-6457 / Office: 55-51-3308-6530 Mobile:55-51-8184-7649 / Fax: 55-51-3308-7286
Re: [web2py] Re: RFC: web2py-based workflow engine
Hi, Ross, I think that the entire community is thinking and walking in the RIGHT way. And your effort is a prove of this. Congratulations. So, IMHO, I think that workflows are not only linear, but in some cases we have concurrent tasks to do. If your algorithm is compliant with this, I think that is a wonderful feature. Best regards, José Ricardo Borba Porto Alegre - RS 2012/5/2 Ross Peoples ross.peop...@gmail.com Cliff, Thanks for the feedback. I added the ability to name / title steps. I also added the ability to set priorities for workflows. It is assumed that when a step is complete, that step is already done and the next step in workflow is new. Each step has an order_id to show which order the steps are in. The workflow table stores the order_id of the active workflow step. So in this case if the workflow is on order_id 3, then anything below 3 is considered done, while everything else is new. Is this what you mean by states to account for? Active workflows can be modified on the fly as well. This has a limitation that any step that has been completed cannot be modified. All future steps can be modified. So if the workflow needs to have another step added to it or if it has been determined that the next destination user_id / group_id needs to be changed, that can be done (i.e. someone accidentally added the Engineering group, but it should have been Quality instead). I will add another method to WorkflowEngine (I was going to do this anyways, but forgot to include it in my original post: workflow = workflow_engine.get_workflow(workflow_id) # The contents of the workflow object would contain: #name: the name of the workflow #is_template: is this workflow a template #item_type, item_id: what object is the workflow attached to #order_id: the current position of the workflow #priority: the priority of the workflow #steps: list of step as Row objects # # There would be a few helper methods as well: #current_step(): returns the Row object of the current step or None #due_date(): returns the current step's due date or None #... I have not built in any security, as I figured that would be something more application-specific. For example, a document management system might want security on folders, just like a regular file system, and not necessarily on a workflow-by-workflow basis. However, I am planning on adding auditing support. I almost used the new record versioning feature, but decided I wanted to go with delta-based changes instead of full copies of everything for better timeline support. Additional questions, comments, and improvements are welcome! On Tuesday, May 1, 2012 4:07:05 PM UTC-4, Cliff wrote: Ross, I like the on-the-fly ability. Each step in your template changes the state of the item. Each one of those states should have a title. There are two other states to account for, new and done. Workflows sometimes have more than one path to completion. I see an entity called a workflow_item that has the ability to determine its current state and all possible states to which it could transition. It also knows who can cause it to transition to one of those states as well as which of its attributes should be hidden, visible or editable in any given state, and who should be able to see or edit those attributes while in that state. On Tuesday, May 1, 2012 12:00:42 PM UTC-4, Ross Peoples wrote: In reference to: https://groups.google.com/**forum/#!searchin/web2py/** workflow/web2py/osEmmtu9hlg/**2MHi_ZCeMBMJhttps://groups.google.com/forum/#%21searchin/web2py/workflow/web2py/osEmmtu9hlg/2MHi_ZCeMBMJ Has anyone done any work on this yet? I was thinking about making a web2py-based workflow engine. I mentioned previously that I built one of these for an application I wrote several years ago, but it was built specifically for that app. This will be my first attempt at making a general-use workflow engine, so let me know if you find any problems with my design: Make a contrib module that is initialized like the Auth module: from gluon.contrib.workflow_engine import WorkflowEngine, Step workflow_engine = WorkflowEngine() workflow_engine.define_tables(**) I will use the example that I know best, which is passing around a sales order throughout a company's departments. This first example would define a workflow template because every sales order will have the same workflow: workflow_engine.add_template('**Sales Order', Step(group_id=2, hours=4), # Engineering gets 4 hours to complete their step Step(user_id=7, hours=0), # The engineering manager (user) has no time limit Step(group_id=3, hours=2), # Quality department gets 2 hours to inspect the order Step(group_id=8, hours=6.5), # Shipping department gets 6.5 hours to ship order ) You would start this workflow like this: workflow_id = workflow_engine.load_template(**'Sales Order', item_type= 'document