[web2py] Re: Multiple web2py apps/domains on pythonanywhere

2015-07-28 Thread JorgeH
so?? How did you manage to do it? Can you explain to us? I'm interested too. On Tuesday, July 28, 2015 at 2:36:14 AM UTC-5, Joe wrote: It took a while but I figured it out. On Monday, July 27, 2015 at 9:21:42 PM UTC+8, Joe wrote: What is the best way to host multiple web2py

[web2py] Microservices

2015-07-28 Thread Samuel Sowah
I don't fully understand microservices, but it seems to be something that's becoming quite the topic of discussion. Is this being implemented in web2py? Can someone enlighten me how web2py and microservices intersect (if they intersect at all)? Can I write services in web2py, abc, and xyz

[web2py] Re: Multiple web2py apps/domains on pythonanywhere

2015-07-28 Thread Joe
It took a while but I figured it out. On Monday, July 27, 2015 at 9:21:42 PM UTC+8, Joe wrote: What is the best way to host multiple web2py apps/domains on pythonanywhere? If anyone has any experience with this, I would appreciate if you could let me know the best way to do this. I

[web2py] Auth_user dynamic cascading registration fields

2015-07-28 Thread Wabbajack
I have created a *factory,department,section and team* table in the database and a *factory* is on a *one to many* relationship with *department* a *department* is on a *one to many* relationship with* section* a *section* is on a *one to many* relationship with* team* *Table names* factory =

[web2py] CSRF Forbidden 403 when POST from mobile device.

2015-07-28 Thread Jon M.
Greetins community! Thanks for passing by, hope we can get nice data from this issue. So, we're creating a backend application that receives POST petitions with basic http auth from an Android app, no cookies r advanced topics for sessions, I want to get there, but I'm kinda new to this...

[web2py] How to refresh Web2py Date funtion

2015-07-28 Thread Anandhakumar Radhakrishnan
Hi, Am using the default web2py date function in my project. Which is I have add the 'date' as a class in my input filed. In my page i have an option called add more. this will add the another input filed which contains the class as 'date' . But the new row is working the date. this date is

[web2py] Re: What works, float type, decimal type, double or all/none of the above?

2015-07-28 Thread Danel Segarra
On Monday, July 27, 2015 at 5:00:55 PM UTC-7, Dave S wrote: On Monday, July 27, 2015 at 3:44:24 PM UTC-7, greenpoise wrote: So I solved this by dropping the table and creating it again. It had to do with the decimal points on the sizes.   Oooo, ouch!  Which database engine was that?

[web2py] Re: What works, float type, decimal type, double or all/none of the above?

2015-07-28 Thread Danel Segarra
SQLite!! Thanks On Monday, July 27, 2015 at 5:00:55 PM UTC-7, Dave S wrote: On Monday, July 27, 2015 at 3:44:24 PM UTC-7, greenpoise wrote: So I solved this by dropping the table and creating it again. It had to do with the decimal points on the sizes. Oooo, ouch! Which database

[web2py] To display random questions one by one

2015-07-28 Thread Sai Harsh Tondomker
I have trying to display random question for every login (Means client get different questions for every login). Here I gave my db.py and def doing paper. Please help me to solve the problem. db.define_table('ins_ques',

[web2py] Re: view - for - continue - not work?

2015-07-28 Thread Anthony
You don't need the {{pass}} after {{continue}} because continue (as well as return, break, and raise) already defines the end of a Python block (in the template language, pass is only needed when the end of the block would otherwise be ambiguous). Anthony On Tuesday, July 28, 2015 at 11:22:06

[web2py] Re: XML helper mangles svg file with namespace prefixes

2015-07-28 Thread Massimo Di Pierro
Can you show us the code that mangles it? This should not do it. Something is wrong. On Tuesday, 28 July 2015 15:52:57 UTC-5, jackson.r...@quantachrome.com wrote: IN a controller if I return an svg that has full namspace prefixes (default for the python xml package 'tostring' method )via

[web2py] Re: CSRF Forbidden 403 when POST from mobile device.

2015-07-28 Thread Anthony
We need to see some code, how you are making the post request, and the exact response received. On Tuesday, July 28, 2015 at 6:30:18 PM UTC-4, Jon M. wrote: Greetins community! Thanks for passing by, hope we can get nice data from this issue. So, we're creating a backend application that

[web2py] Re: XML helper mangles svg file with namespace prefixes

2015-07-28 Thread Anthony
Are you returning just the SVG to the browser, or are you embedding the SVG in an HTML page? If the latter, just return the SVG string directly without wrapping in XML() -- the XML helper is only needed to prevent escaping in an HTML view. Note, in this case, you will need to set the

[web2py] Re: How to refresh Web2py Date funtion

2015-07-28 Thread Anthony
What do you mean it isn't working -- are you saying when you click in the input box, the calendar widget doesn't pop up? If you use the browser developer tools to inspect the input widget in the DOM, does it look correct? Anthony On Tuesday, July 28, 2015 at 6:30:35 PM UTC-4, Anandhakumar

[web2py] Re: Decoding file name.

2015-07-28 Thread Anthony
That's the easiest way. If you do want to decode the filename yourself, note the encoded filename is only the last segment of the new filename (i.e., the part after the last . -- in this case, 73716c2e6c6f67). Anthony On Tuesday, July 28, 2015 at 4:13:32 PM UTC-4, Limedrop wrote: You could

[web2py] Re: Decoding file name.

2015-07-28 Thread Dave S
On Tuesday, July 28, 2015 at 5:29:28 PM UTC-7, Anthony wrote: That's the easiest way. If you do want to decode the filename yourself, note the encoded filename is only the last segment of the new filename (i.e., the part after the last . -- in this case, 73716c2e6c6f67). And newname =

[web2py] Re: SQLFORM.widgets.options.widget(f, v, _disabled=True)

2015-07-28 Thread Anthony
db[table].navID.widget = lambda f, v: SQLFORM.widgets.options.widget(f, v, _disabled=True) This solves the valiadtion issue, however, it renders the drop down without the form-control selector: select id=nav_vertex_nav_navID class=generic_widget name=navID disabled=disabled whereas

[web2py] Decoding file name.

2015-07-28 Thread Prasad Muley
Hi All, file name gets store as *93f00342868f4085.73716c2e6c6f67.log *in db field. I've tried to decode it using base64 But didn't get the original file name. Is there any way to decode it and get the original file name? -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Opensource web2py forum/mailing list/community go-to help center thingy?

2015-07-28 Thread Richard Vézina
Wasn't know about web2pyref... Thanks Richard On Tue, Jul 28, 2015 at 1:45 AM, Selman Kocael selciu...@gmail.com wrote: another reference site build with web2py by ivica: www.web2pyref.com 2015-07-27 21:54 GMT+03:00 Richard Vézina ml.richard.vez...@gmail.com: There is already

[web2py] Re: SQLFORM.widgets.options.widget(f, v, _disabled=True)

2015-07-28 Thread Annet
Hi Anthony, Thanks for your reply. I changed my code to: db[table].navID.widget = lambda f, v: SQLFORM.widgets.options.widget(f, v, _disabled=True) ... form = SQLFORM(table, record, deletable=deletable, showid=False) request.post_vars.navID = record.navID This solves the valiadtion issue,

Re: [web2py] Microservices

2015-07-28 Thread Richard Vézina
You can make web services with web2py easily... Richard On Tue, Jul 28, 2015 at 5:33 AM, Samuel Sowah sam...@official-notebook.com wrote: I don't fully understand microservices, but it seems to be something that's becoming quite the topic of discussion. Is this being implemented in web2py?

Re: [web2py] web2py update FROM 2.9.12 TO 2.11.2 - Internal error; Revert to 2.9.12 - Internal Server Error

2015-07-28 Thread Jim S
Just a thought I had Is this the update where you had to go and get pydal and install it separately? I seem to recall having the same type of issue when I upgraded similarly quite some time ago. -Jim On Monday, July 27, 2015 at 5:08:21 PM UTC-5, JoeCodeswell wrote: Dear Richard and

[web2py] Upload multiple files and do background processing

2015-07-28 Thread Phillip
I need directions for properly executing the following Drop a window for selecting multiple files for upload Process the files in the controller (ideally using the scheduler to prevent the application from hanging) Since it appears that the processing must occur after all files

[web2py] File upload/download over https freezes site

2015-07-28 Thread Dave
I have this same behavior on multiple web2py servers. If a large file is being uploaded using a SQLFORM or downloaded using the default download controller, over HTTPS, the entire web server becomes unresponsive until the transfer is completed or cancelled. However, I have no issues

Re: [web2py] Microservices

2015-07-28 Thread Samuel Sowah
By intersect, I refer to how web2py is used to make microservices. The reason I ask this is, to know if services are different from applications. and If I wanted to create multiple microservices, do I need multiple applications? if I need just one, wouldn't that defeat the purpose of

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
{{for r in pays_unconf:}} {{if type(r) != type([]):}} {{=r}} {{continue}} {{pass}} {{print 'dfdfg'}} {{pass}} {{continue}} not work in {{for - pass}} ?? -- Resources: -

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
error resolved -- 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

[web2py] view - for - continue - not work?

2015-07-28 Thread ermolaev . icreator
{{for r in pays_unconf:}} {{if type(r) != type([]):}} {{=r}} {{continue}} {{pass}} {{print 'dfdfg'}} {{pass}} {{continue}} not work in {{for - pass}} ?? -- Resources: -

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
full code {{odd = None}} {{for r in pays_unconf:}} div class='row' style='padding-top:5px;padding-bottom:5px; {{=odd and 'background-color:lavender;' or ''}}' span class='small' {{='{:%Y-%m-%d

[web2py] Re: ajax error

2015-07-28 Thread ermolaev . icreator
in error details odd = None response.write('\r\n', escape=False) for r in pays_unconf: response.write(\r\ndiv class='row' style='padding-top:5px;padding-bottom:5px;\r\n, escape=False) response.write(odd and

[web2py] subdomain for testing

2015-07-28 Thread BlueShadow
hi, I have a web2py app on www.myexamplew2papp.com which runs perfectly. Now I want to create a subpage for testing which is not web2py but wordpress. this wordpressblog should be located here: www.myexamplew2papp.com/wpblog. Does onyone know how I do that? thanks -- Resources: -

[web2py] Re: What works, float type, decimal type, double or all/none of the above?

2015-07-28 Thread greenpoise
Sqlite..Thanks!! On Monday, July 27, 2015 at 5:00:55 PM UTC-7, Dave S wrote: On Monday, July 27, 2015 at 3:44:24 PM UTC-7, greenpoise wrote: So I solved this by dropping the table and creating it again. It had to do with the decimal points on the sizes. Oooo, ouch! Which database

Re: [web2py] subdomain for testing

2015-07-28 Thread Richard Vézina
Which server do you use? Apache, nginx? Basically you need to exclude wpblog from the route to your web2py app this is done in the config of your webserver... You can have a look at this web2py deployment script contrib :

Re: [web2py] Microservices

2015-07-28 Thread Dave S
On Tuesday, July 28, 2015 at 8:00:37 AM UTC-7, Samuel Sowah wrote: By intersect, I refer to how web2py is used to make microservices. The reason I ask this is, to know if services are different from applications. and If I wanted to create multiple microservices, do I need multiple

[web2py] Re: Opensource web2py forum/mailing list/community go-to help center thingy?

2015-07-28 Thread Dave S
On Monday, July 27, 2015 at 11:38:36 AM UTC-7, Samuel Sowah wrote: I want to build an opensource app with web2py to serve the purpose of help and social engagement for the web2py community. I only wonder if there's already such a thing besides this google group (which is most certainly not

Re: [web2py] Microservices

2015-07-28 Thread Derek
Micro services are services which you could split the workload onto different servers to handle load. I think for that purpose, you'd want to write in flask or bottle. You could use web2py but I think it's overkill for micro services. On Tuesday, July 28, 2015 at 11:49:36 AM UTC-7, Dave S

[web2py] Re: Decoding file name.

2015-07-28 Thread Limedrop
You could try something like this: (filename, fullfilename) = db.tablename.uploadfield.retrieve(record.uploadfield, nameonly=True) On Wednesday, 29 July 2015 01:05:58 UTC+12, Prasad Muley wrote: Hi All, file name gets store as *93f00342868f4085.73716c2e6c6f67.log *in db field.

Re: [web2py] subdomain for testing

2015-07-28 Thread BlueShadow
I'm using nginx On Tuesday, July 28, 2015 at 7:50:41 PM UTC+2, Richard wrote: Which server do you use? Apache, nginx? Basically you need to exclude wpblog from the route to your web2py app this is done in the config of your webserver... You can have a look at this web2py deployment script

[web2py] Re: internal error:size does not fit in an int

2015-07-28 Thread joseph simpson
Needed to remove some of the files from the upload folder.. To make the application smaller.. On Tue, Jul 28, 2015 at 8:03 AM, joseph simpson jjs0...@gmail.com wrote: I have an application with 677 png images each around 10 megs in size. When I try to pack all and download the application I

[web2py] Re: csv upload limit

2015-07-28 Thread Derek
There's no way. You could modify the 'base.py' of pydal to add it... It looks like it will stop on a line if the whole line is this: END On Sunday, July 26, 2015 at 6:47:47 AM UTC-7, Yebach wrote: Hello How can i limit the number of rows user can upload trough

[web2py] XML helper mangles svg file with namespace prefixes

2015-07-28 Thread jackson . read
IN a controller if I return an svg that has full namspace prefixes (default for the python xml package 'tostring' method )via the XML helper it is mangled it beyond recognition. The same svg works in emacs as well as loaded as a file in the bowser. ns0 ns1 etc namepsace prefixes are verbose

Re: [web2py] web2py update FROM 2.9.12 TO 2.11.2 - Internal error; Revert to 2.9.12 - Internal Server Error

2015-07-28 Thread 黄祥
i think it's about pydal. e.g. 1. wget -c http://web2py.com/examples/static/web2py_src.zip rm -rf web2py/applications rm -rf web2py/deposit rm -rf web2py/examples rm -rf web2py/extras rm -rf web2py/gluon rm -rf web2py/handlers rm -rf web2py/logs rm -rf

[web2py] Re: Tutorial bootstrap+web2py

2015-07-28 Thread 黄祥
i think you can look at this slices http://www.web2pyslices.com/slice/show/1516/adapt-a-css-template-to-web2py-layouthtml imho, it better to have the response.menu and auth.navbar manually in your layout template, because what i tried before it will be replace by web2py css class. test doing

[web2py] Re: sub sub menu in newest version

2015-07-28 Thread 黄祥
i think you can stick with the old web2py layout (css and js) and use the new version of web2py (pydal, etc) best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -