[web2py] Web2py Form Error! PLEASE HELP!!!! => long() argument must be a string or a number, not 'Table'

2014-08-11 Thread Anthony
Please show your code. -- 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-

[web2py] Problem with saving json string SQLite db via web2py

2014-08-11 Thread Anthony
Not sure if this is the only problem, but you are missing a comma between the two dictionaries. 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) ---

[web2py] Re: Another multiple file upload and file drop area demo, this time using dropzone.js

2014-08-11 Thread Rahul
I dont seem to find it in Appliances section. What is the appliance name ?? Rahul On Sunday, August 10, 2014 7:57:56 AM UTC+5:30, Massimo Di Pierro wrote: > > In the near future we may have a smarter mechanism for this > > On Saturday, 9 August 2014 15:46:49 UTC-5, Spokes wrote: >> >> Tha

[web2py] Re: Another multiple file upload and file drop area demo, this time using dropzone.js

2014-08-11 Thread Leonel Câmara
https://github.com/mdipierro/web2py-appliances/tree/master/DropZone -- 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

[web2py] Re: Web2py Form Error! PLEASE HELP!!!! => long() argument must be a string or a number, not 'Table'

2014-08-11 Thread Leonel Câmara
Without seeing any code I can only guess. My guess is that you have something like this before the SQLFORM process. db.table_you_are_inserting.creator.default = db.auth_user When it should be something like: db.table_you_are_inserting.creator = auth.user_id -- Resources: - http://web2py.com -

[web2py] Re: Another multiple file upload and file drop area demo, this time using dropzone.js

2014-08-11 Thread Rahul
Thanks! for the quick turn around. Got it. I mis-took appliances to web2py.com / appliances section . Rahul On Monday, August 11, 2014 2:19:47 PM UTC+5:30, Leonel Câmara wrote: > > https://github.com/mdipierro/web2py-appliances/tree/master/DropZone -- Resources: - http://web2py.com - http:/

[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread lyn2py
Have you looked at auth groups? http://web2py.com/books/default/chapter/29/09/access-control You can create different types of accounts without separate tables. On Sunday, August 10, 2014 3:01:14 PM UTC+8, eric cuver wrote: > > nobody know how we can create two types of accounts or login ? > > L

[web2py] multiple SQLFORM.grid on tabs

2014-08-11 Thread Yebach
Hello I am trying to create a view where I have tabs and each tab has its own view. All tabs are included into main view. lets call it settings. In settings there are tabs for user to insert workers into tables, posts, etc etc. all the (un)necessary stuff. For each I would like to use SQLFORM.

[web2py] Re: menu creation error

2014-08-11 Thread ocascante
Thanks for your help. I am going to check this using db.py instead my personal model name.db. El viernes, 8 de agosto de 2014 16:27:54 UTC-6, Cliff Kachinske escribió: > > What are the respective file names? > > Web2py runs the model files in alphabetical order. > > On Friday, August 8, 2014 3:10:

[web2py] Re: multiple SQLFORM.grid on tabs

2014-08-11 Thread Cliff Kachinske
I would just use ajax or LOAD. If you really want to use grid, something like this might work. In the view: {{=form_0}} {{=form_1}} {{=form_...}} In the controller: def some_func(): form_0 = SQLFORM.grid(whatever) form_1 = SQLFORM.grid(whatever_else) form_... = SQLFORM.gr

[web2py] about next update web2py

2014-08-11 Thread eric cuver
What are news functionality in the next update to web2py 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 ar

[web2py] Integration with Jasig CAS

2014-08-11 Thread Tanu Mittal
Is It possible to integrate web2py with Jasig CAS ? Also which other python frameworks like Django, Flask can be integrated with Jasig CAS? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2p

[web2py] Re: Web2py vs ruby on rails for a startup?

2014-08-11 Thread Suresh Mali
Thank you every one.. I got taste of great community!! very helpful answers everyone... My confidence in web2py has increased. will make decision in couple of days and will be frequenter to the group -Suresh On Sunday, August 10, 2014 12:13:02 PM UTC+5:30, Suresh Mali wrote: > > > I am

[web2py] how to trailing a slash in url automatically

2014-08-11 Thread chuan137
e.g., from http://localhost/display ===>>> to http://localhost/display/ I tried edit router.py in the root folder, like routes_in=( ('/display4', '/display4/') ) not working, I guess, because '/display4/' is then further routed. Thanks in advance Chuan P.S. background about why I ask. It

[web2py] Additional submit buttons on form

2014-08-11 Thread Stephen Weiss
I'm in search of a way to have multiple submit buttons on a form that would perform a different function depending on whichever button was pressed. After pressing whichever button, the form should be submitted and after performing the function, return the user back to the original form. I hav

[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread eric cuver
i find my solution it's that http://stackoverflow.com/questions/23974774/creating-two-separate-registration-forms-in-web2py?rq=1 thank you to help Le lundi 11 août 2014 12:25:58 UTC+2, lyn2py a écrit : > > Have you looked at auth groups? > > http://web2py.com/books/default/chapter/29/09/access

[web2py] Web2py on AWS Opsworks

2014-08-11 Thread Rebecca Raguindin
Is there anyone with Opsworks recipe available to install/deploy web2py on an UBUNTU (14.04). Is it possible to install via Opsworks? Thanks -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/w

[web2py] Opsworks -Web2Py

2014-08-11 Thread ragreb
I am new with Opsworks and I was wondering if there's anyone who has any idea on how to install WEB2PY on a custom layer in AWS. Any help is appreciated. Thanks in advance. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source co

[web2py] Re: Trouble Creating Update Form

2014-08-11 Thread Massimo Di Pierro
Try print/log the value of r in your code. Perhaps do a {{=r}} and see if there record you are trying to edit is there. On Sunday, 10 August 2014 15:57:02 UTC-5, Drew Howell wrote: > > It's still creating a new record rather than updating. So I've still got > something wrong. I need to look over

[web2py] Re: menu creation error

2014-08-11 Thread Massimo Di Pierro
The models are imported in alphabetical order. Could that be the problem? On Monday, 11 August 2014 09:28:37 UTC-5, ocascante wrote: > > Thanks for your help. > I am going to check this using db.py instead my personal model name.db. > > El viernes, 8 de agosto de 2014 16:27:54 UTC-6, Cliff Kachins

[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread lyn2py
Ok, thanks for sharing your findings :) I think I misinterpreted your question :) On Monday, August 11, 2014 11:04:34 PM UTC+8, eric cuver wrote: > > i find my solution > > it's that > http://stackoverflow.com/questions/23974774/creating-two-separate-registration-forms-in-web2py?rq=1 > > thank y

[web2py] Re: Additional submit buttons on form

2014-08-11 Thread lyn2py
A few things… 1) - args takes a list - vars takes a dict do you mean to use vars instead of args? 2) If deploy_name is a field in the form, and you want to get the value of it on clicking the button, you need to use javascript, like jQuery or the likes. 3) Actually I am not sure wh

[web2py] Re: Web2py on AWS Opsworks

2014-08-11 Thread Jim S
There are scripts in the web2py/scripts directory that will install web2py on ubuntu. I'm not familiar with Opsworks, but know that the ubuntu/nginx/uwsgi install works with ubuntu 14.04.1. Spent a lot of time with it last week. Take a look at this section in the book - http://web2py.com/boo

[web2py] Re: Implementing A Large Scale Engineering Equations Calculator in web2py

2014-08-11 Thread Dave S
On Friday, August 8, 2014 3:36:25 PM UTC-7, Moustafa Mahmoud wrote: > > Hello all, > I am implementing a large project for a group of engineers , they are > aiming at producing an online engineering calculator for all engineering > fields, Civil Engineering , General Mathmatics , etc. I am look

[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread Leonel Câmara
I wouldn't implement that solution. Well it depends on the objective, but it seems wrong to me to have 2 user tables when the user being a customer or buyer could just be a field. You could make this field readable=False, writable=False and then have the register controller set the default diff

[web2py] Re: about next update web2py

2014-08-11 Thread Leonel Câmara
You can get a peek here: https://github.com/web2py/web2py/compare/master@%7B2014-03-16%7D...master -- 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 rec

[web2py] Re: menu creation error

2014-08-11 Thread Leonel Câmara
You made a typo: for row in db(db.categorias*.id > 0*).select(): response.menu.append((T(row.nombre))) Fix in bold. BTW you probably want something like this for row in db(db.categorias.id > 0).select(): response.menu.append((T(row.nombre), request.vars.category == row.nombre, URL('def

[web2py] Re: Another multiple file upload and file drop area demo, this time using dropzone.js

2014-08-11 Thread Spokes
Thanks - looking forward to the updates! On Saturday, August 9, 2014 9:27:56 PM UTC-5, Massimo Di Pierro wrote: > > In the near future we may have a smarter mechanism for this > > On Saturday, 9 August 2014 15:46:49 UTC-5, Spokes wrote: >> >> Thanks, Massimo. I wasn't aware of that. Looks like

[web2py] Re: Additional submit buttons on form

2014-08-11 Thread Stephen Weiss
Well, I'm VERY new to Web2Py, so at this point I've got a lot of learning to do... After doing some more reading, I think I need to use vars. Yes deploy_name is a field on the form from which I'd like to obtain user input. I'm really not sure what the recommended approach to work this page wi

[web2py] Re: Web2py Form Error! PLEASE HELP!!!! => long() argument must be a string or a number, not 'Table'

2014-08-11 Thread Gideon George
This is my action in default.py (Everything is working fine, except the form in the view, if I write and submit the post, it gives this error above) @auth.requires_login() def timeline(): db.post.posted_by.default = auth.user_id db.post.posted_on.default = request.now #create form wit

[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread eric cuver
i seen.. but i will not have this probleme because the buyer will never be the customer. but can you give me an example about your solution Le lundi 11 août 2014 19:30:20 UTC+2, Leonel Câmara a écrit : > > I wouldn't implement that solution. Well it depends on the objective, but > it seems wrong

[web2py] Re: how to trailing a slash in url automatically

2014-08-11 Thread Massimo Di Pierro
You should not be doing this. You need to ask web2py to generate URLs for you {{=URL('static','js/something.js')}} On Monday, 11 August 2014 04:22:34 UTC-5, chuan137 wrote: > > e.g., > > from http://localhost/display ===>>> to http://localhost/display/ > > I tried edit router.py in the root fol

[web2py] Re: Integration with Jasig CAS

2014-08-11 Thread Massimo Di Pierro
web2py has CAS support built-in. This means it should work with Jasig CAS as a client/consumer. You may need to configure it. It is explained in the manual but feel free to come back with questions. Also notice web2py has a built-in CAS provider and it can replace Jasig CAS too. I do not know

[web2py] Re: Implementing A Large Scale Engineering Equations Calculator in web2py

2014-08-11 Thread Massimo Di Pierro
Try avoid creating 500 custom forms. Try instead implement the equations using some symbolic language so that forms can be automatically generated. Look into sympy for example. You could automatically generate an input field for each variable in the equation. On Friday, 8 August 2014 17:36:25

[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread Massimo Di Pierro
Why create a constraint that requires extra work and its only purpose is to reduce functionality? While you believe the buyer will never be the customer this is a useless constraint and distinction. I would just auth_user and add two extra boolean fields (is_buyer, is_customer) and set them acc

[web2py] Re: about next update web2py

2014-08-11 Thread Massimo Di Pierro
Many many, including: Bootstrap2 -> Bootstrap3 Better scheduler Hypermedia API with Collection JSON (experimental) Lots of small fixes Sphinx documentation Better GAE and NDB support Support for newer Janrain Support for certificate chaining in S/MIME emails Stronger security (prevent_password_res

[web2py] Re: Web2py, authenticating two types of profile

2014-08-11 Thread eric cuver
ok thanks you right it's better Le lundi 11 août 2014 21:44:50 UTC+2, Massimo Di Pierro a écrit : > > Why create a constraint that requires extra work and its only purpose is > to reduce functionality? > While you believe the buyer will never be the customer this is a useless > constraint and di

[web2py] Re: how to trailing a slash in url automatically

2014-08-11 Thread chuan137
I can't because I config requirejs in a static file On Monday, August 11, 2014 9:35:04 PM UTC+2, Massimo Di Pierro wrote: > > You should not be doing this. You need to ask web2py to generate URLs for > you > > {{=URL('static','js/something.js')}} > > > On Monday, 11 August 2014 04:22:34 UTC-5, ch

[web2py] Re: how to use java servelts or jsp in web2py

2014-08-11 Thread Dave S
On Friday, August 8, 2014 7:20:17 PM UTC-7, Massimo Di Pierro wrote: > > The term "java servlet" refers specifically to a java class and its > implementation therefore it does not apply to web2py. It is not an > language independent idea or protocol. > > A web2py controller is the closest thin

[web2py] Re: Another multiple file upload and file drop area demo, this time using dropzone.js

2014-08-11 Thread Omar Meat Boy Gutiérrez
It is a great thing, undoubtedly. On Monday, December 16, 2013 12:21:01 PM UTC-6, Leonel Câmara wrote: > > I did this to see how I could integrate dropzone.js ( > http://www.dropzonejs.com/ ) with web2py as I'm thinking of using it in > some of my projects. > > Hopefuly it can be useful to som

[web2py] Re: Additional submit buttons on form

2014-08-11 Thread lyn2py
Maybe you can let us see your code and explain what you would like to do, if you would like some input on the direction of how to do it? On Tuesday, August 12, 2014 12:52:14 AM UTC+8, Stephen Weiss wrote: > > > Well, I'm VERY new to Web2Py, so at this point I've got a lot of learning > to do...

[web2py] Re: Web2py vs ruby on rails for a startup?

2014-08-11 Thread Dave S
On Sunday, August 10, 2014 10:20:43 AM UTC-7, Massimo Di Pierro wrote: > > [...] > About security (a). You cannot beat the security of web2py. Friday I am > giving a talk at OWASP in Orange County about this. I will post slides. The > University where I teach was one of the first in the countr

[web2py] Re: Web2py Form Error! PLEASE HELP!!!! => long() argument must be a string or a number, not 'Table'

2014-08-11 Thread Leonel Câmara
There are a couple of things in your code that stop me from testing this. Where is *followers* defined, where does *me* come from? Should there be a line with me = auth.user_id somewhere? Where is *name_of *defined ? After guessing all these things I got it working and could not reproduce you

[web2py] Re: Controller to do SOAP to an action-less service, how to generate the (xml) nodes

2014-08-11 Thread Dave S
On Thursday, August 7, 2014 11:05:20 AM UTC-7, Dave S wrote: > > From my appendage to another thread: > > So it's not too bad consuming a service I provide for myself, but I'm also > interested in a service provided by a third-party device. > > I was hoping to use the controller to avoid install

Re: [web2py] Re: Controller to do SOAP to an action-less service, how to generate the (xml) nodes

2014-08-11 Thread Mariano Reingart
Sorry but I don't fully understand your message. What's the problem using pysimplesoap? Can you provide an example using it (explaining wha'ts wrong)? You can try to use SoapClient with ns="XYZService" and soap_server='axis' (if that is your server, if not, don't need to specify it) Also, you ca

[web2py] GitHub and typos in the book

2014-08-11 Thread Martin Weissenboeck
I have found some typos in the book and I want to help to correct them. I think there has been a "Github for Dummies" (for the book, not for the code) in this mailing list, but I did find find it. Could anybody point in the right direction? ​R ​egards Martin​ -- Resources: - http://web2py.com -

[web2py] Re: Web2py vs ruby on rails for a startup?

2014-08-11 Thread Massimo Di Pierro
http://www.meetup.com/OWASP-OC/ Are you nearby? If so, contact me privately. Massimo On Monday, 11 August 2014 19:09:35 UTC-5, Dave S wrote: > > > > On Sunday, August 10, 2014 10:20:43 AM UTC-7, Massimo Di Pierro wrote: >> >> [...] >> > About security (a). You cannot beat the security of web2py

[web2py] Re: GitHub and typos in the book

2014-08-11 Thread Massimo Di Pierro
If you just sent a list of typos via email we can implement the corrections. On Tuesday, 12 August 2014 00:21:06 UTC-5, mweissen wrote: > > I have found some typos in the book and I want to help to correct them. > I think there has been a "Github for Dummies" (for the book, not for the > code) in

[web2py] Re: Trouble Creating Update Form

2014-08-11 Thread Drew Howell
I seem to have a problem there. It returns None. However, I think I may have figured out a solution. I've managed to update the current day 'rating' & 'complete' fields and also the 'complete' field of the next day (making it current). Let me know if you see any problems with the way I ended u

[web2py] Re: Problem with web2py on Heroku

2014-08-11 Thread Zakariya Dehlawi
So I did find a workaround. However, I've switched over to PythonAnywhere, much more seamless to my workflow for Python projects. The workaround, if I recall correctly, was that I had to use a one-off dynamo to connect to the DB, and manually created the necessary tables based on the Web2Py sou