Re: [web2py] Re: Memory problems on Webfaction

2011-10-13 Thread Johann Spies
On 13 October 2011 06:44, MidGe degreef.mic...@gmail.com wrote: hello elffikkl, I tried your suggestion, but I am not having your success. The install succeed, but the admin fails. It keeps requesting me to log in although it does recognize my password as valid! Any suggestions? I

Re: [web2py] Re: Internal error

2011-10-13 Thread Johann Spies
On 12 October 2011 15:31, Massimo Di Pierro massimo.dipie...@gmail.comwrote: How long is the list of sids? Slite? This is not a web2py error but most likely a driver error. Try commit after every every update. Thanks for your reply Massimo. The list is normally not long - between 1 and 5

[web2py] using request.restful() for POST ?

2011-10-13 Thread Anaconda
I have been going through the video tutorial on this at http:// vimeo.com/21133657 and i can get everything to work except the Post requests. I may be calling it incorrectly in my browser, has anyone done the tutorial and done it correctly? @request.restful() def manage_dog(): def GET(id):

Re: [web2py] Re: on grid and smartgrid search feature

2011-10-13 Thread Johann Spies
On 12 October 2011 14:59, stefaan stefaan.hi...@gmail.com wrote: I have replaced my all my similar .js and .css files with that of the welcome app but I see no popup panel. It may be that the old .css is cached in your browser and needs to be reloaded - try to refresh the browser page

[web2py] reports in Web2Py

2011-10-13 Thread Naleen Yadav
Creating reports in Web2Py Hello All, I'm a newbie on web2py and looking to create Reports in web2py, but unable to find something suitable for a newbie on the internet. Tried some videos on vimeo (http://vimeo.com/18601633) but didn't get the output. I could install the plugin for appreport but

[web2py] using web2py globals in modules

2011-10-13 Thread pepper_bg
Hi, I have some helper code in applications/myapp/modules/site_helpers.py. I've been trying to cache the results of some of the functions there. The current content is: from gluon.shell import exec_environment ee = exec_environment('applications/myapp/models/db.py') cache = ee.cache

[web2py] Re: IMPORTANT

2011-10-13 Thread Lord Jesus Christ
On Wed, 12 Oct 2011 06:59:32 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: Hope nobody gets offended by this email and I have no option but bring it up because I have received few emails on the topic. I'd prefer if those individuals complaining about someone/something would

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread Roberto De Ioris
Il giorno 13/ott/2011, alle ore 07:20, guruyaya ha scritto: I could be wrong, but I don't think I remember any discussions that go out of line, in this forum. I don't remember any politics discussions, any religious or scientific, that went out of line. Is this, really a such a big problem

Re: [web2py] Re: Memory problems on Webfaction

2011-10-13 Thread MidGe
hiya spyker, Sure, I did that. I am getting to the login stage and getting thru.. but then it seems the entire system goes amnesiac and wants me to log in again.

Re: [web2py] IMPORTANT

2011-10-13 Thread Sebastian E. Ovide
I've seen code of conduct implemented in different companies (surely in all the big US companies that I've worked/collaborated for) and in some pubilc forums too and I find them very useful. code of conduct keep people focus on what is important in that specific environment leaving other

[web2py] Re: Web2py/modj/tomcat

2011-10-13 Thread Sergio
On 9 oct, 02:51, Sergio guillaume.se...@gmail.com wrote: Jythin 2.5.2 and latest Web2py work ok for me as long as apps don't use decorators. Decorators do work, the bug I stumbled upon was hidden within a decorated method. It seems to be the same bug as already reported in issue 341. I might

Re: [web2py] Re: Memory problems on Webfaction

2011-10-13 Thread Johann Spies
On 13 October 2011 10:27, MidGe degreef.mic...@gmail.com wrote: hiya spyker, Sure, I did that. I am getting to the login stage and getting thru.. but then it seems the entire system goes amnesiac and wants me to log in again. I find the support people of Webfaction very helpful. Did you

[web2py] Complicated form

2011-10-13 Thread Web2Py Freak
Dear All , i want to make a form that has name Field , email Field , Comment Field ,and 15 radio buttons but i dont want it to come from the database and when its accepted send a email with its content and i have a design for it so i need to control its places. is this possible and how can i

[web2py] Uploading 388 files

2011-10-13 Thread Johann Spies
I want to upload 388 documents and I don't want to do that by typing the name of the document and clicking on the correct file:) Using scripting I can provide the path to the file. How do I tell Web2py in a script to upload that file? Regards Johann -- May grace and peace be yours in

[web2py] populate not working with validators

2011-10-13 Thread apple
Populate does not seem to work at all with validators. The code seems to be written to take account of field length and definition. However it looks at field.requires.options. Yet field.requires is a list of validators. I am guessing that validators have been around for a long time. In which case

[web2py] On-line Of-line problems

2011-10-13 Thread miroslavgojic
I have one question. I have WEB2PY server on my local server When I don't have Internet connection my web2py server does not work, just loading some pages from online Can I resolve this or I must always be on-line

Re: [web2py] Complicated form

2011-10-13 Thread Johann Spies
On 13 October 2011 12:19, Web2Py Freak halna...@gardeniatelco.com wrote: Dear All , i want to make a form that has name Field , email Field , Comment Field ,and 15 radio buttons but i dont want it to come from the database and when its accepted send a email with its content and i have a

Re: [web2py] IMPORTANT

2011-10-13 Thread Johann Spies
If somebody has a problem with my signature, please contact me directly. I will not be offended and I do not wish to offend anyone. This thread has saddened me, however. Regards Johann -- May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord! His

[web2py] Re: RESTful interfaace

2011-10-13 Thread Arturo Filastò
When I try to use the suggested decorator I get this error: Traceback (most recent call last): File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/ lib/python2.7/gluon/restricted.py, line 192, in restricted exec ccode in environment File

Re: [web2py] Re: Memory problems on Webfaction

2011-10-13 Thread MidGe
Yes, I did. They were very keen to help but they quickly sent me back to this group for some help.

Re: [web2py] reports in Web2Py

2011-10-13 Thread Ovidio Marinho
you have not installed the plugin? Ovidio Marinho Falcao Neto ovidio...@gmail.com 83 8826 9088 - Oi 83 9334 0266 - Claro Paraiba-Brasil 2011/10/13 Naleen Yadav naleenya...@gmail.com Creating reports in Web2Py Hello

[web2py] Re: On-line Of-line problems

2011-10-13 Thread MidGe
I am afraid that if you have WEB2PY server on your local server, then you must always be on-line. Also, nobody else may be able to find your site, if you are just serving it from your local server. Have you thought about that?

Re: [web2py] reports in Web2Py

2011-10-13 Thread José Luis Redrejo Rodríguez
2011/10/13 Naleen Yadav naleenya...@gmail.com: Creating reports in Web2Py Hello All, I'm a newbie on web2py and looking to create Reports in web2py, but unable to find something suitable for a newbie on the internet. Tried some videos on vimeo (http://vimeo.com/18601633) but didn't get the

Re: [web2py] IMPORTANT

2011-10-13 Thread Christopher Steel
I like the Ubuntu approach. Values and perhaps a code of conduct at a later date if we feel it is needed. Massimo did a good job of summarizing the Web2py values and the three examples Bruno gave are a great place to start. I like the Ubuntu example because it is short, sweet and to the point

[web2py] on Crud accept

2011-10-13 Thread Web2Py Freak
Dear All , i have a crud.create form and i want to send an email on its accept , how can i do that ??

Re: [web2py] Re: web2ruby possible?

2011-10-13 Thread Miguel Lopes
what about D? On Thu, Oct 13, 2011 at 4:49 AM, wwwgong wen.g.g...@gmail.com wrote: Vote for node.js On Sep 11, 5:40 pm, dustin.b dustin.bens...@googlemail.com wrote: 1+ vote for node.js ;) On 11 Sep., 21:14, David Marko dma...@tiscali.cz wrote: Or to node.js :-)

[web2py] Re: on Crud accept

2011-10-13 Thread Anthony
You can use crud.settings.create_onaccept (see http://web2py.com/book/default/chapter/07#Settings) or crud.create(..., onaccept=lambda form: your code) (see http://web2py.com/book/default/chapter/07#Methods). Anthony On Thursday, October 13, 2011 8:47:03 AM UTC-4, Web2Py Freak wrote: Dear

[web2py] Re: on Crud accept

2011-10-13 Thread Web2Py Freak
can i do it like this : crud.create(...,onaccept=lambda form:mail.send('halna...@gardeniatelco.com','Contact Us form by : ' +form.vars.your_email,'htmlh4Full Name :'+form.vars.your_name+'/ h4h4 Email :'+form.vars.your_email+'/h4/brph3Comment is :/ h3'+ form.vars.comment+'/p/brp Band

[web2py] how to get request.vars if var name is like v[0].op

2011-10-13 Thread juanduke
Hi all: Have a question (possible very simple). In my view, I've some js code that append data to a js array like this: myarray.push({someKey: someValue, anotherKey: another value}) after a few pushes, I'm gettin an array like this myarray[0] : {someKey: someValue, anotherKey: another value}

[web2py] Re: on Crud accept

2011-10-13 Thread Anthony
I think so. Give it a try. You can also write a separate function (e.g., send_mail), and then just do crud.create(..., onaccept=send_mail). On Thursday, October 13, 2011 9:04:24 AM UTC-4, Web2Py Freak wrote: can i do it like this : crud.create(...,onaccept=lambda

[web2py] Re: RESTful interfaace

2011-10-13 Thread Arturo Filastò
On Oct 13, 1:13 pm, Arturo Filastò a...@baculo.org wrote: When I try to use the suggested decorator I get this error: Traceback (most recent call last):   File /opt/local/Library/Frameworks/Python.framework/Versions/2.7/ lib/python2.7/gluon/restricted.py, line 192, in restricted     exec

[web2py] Re: featured web2py apps

2011-10-13 Thread Arturo Filastò
List: - app name GlobaLeaks - app author Random GlobaLeaks Developers - app description GlobaLeaks is an open source project aimed to create a worldwide, anonymous, censorship-resistant, distributed whistleblowing platform. - where to get it https://github.com/globaleaks/globaleaks -

[web2py] compute field and reference

2011-10-13 Thread andrej burja
what is the syntax of compute, if i use reference in the table definition db.define_table('item', Field http://www.web2py.com/book/default/docstring/Field('unit_price','double'), Field http://www.web2py.com/book/default/docstring/Field('quantity',db.quantity), Field

[web2py] Re: on Crud accept

2011-10-13 Thread Web2Py Freak
thnx its working now but i want to ask you somthing , how can i do it in a function : def send_mail(): mail.send('halna...@gardeniatelco.com','Contact Us form by : ' +form.vars.your_email,'htmlh4Full Name :'+form.vars.your_name+'/ h4h4 Email :'+form.vars.your_email+'/h4/brph3Comment is :/ h3'+

[web2py] Re: compute field and reference

2011-10-13 Thread Anthony
Does this work: compute=lambda r: r['unit_price'] * db.quantity(r['quantity']).quantity_field 'quantity_field' would be the name of the field in db.quantity that stores the quantity you want to multiply. Anthony On Thursday, October 13, 2011 9:30:14 AM UTC-4, andrej burja wrote: what is

[web2py] Re: on Crud accept

2011-10-13 Thread Anthony
You have to do: def send_mail(form): The form will be passed as an argument to send_mail (same as if you use a lambda). Note, you don't have to name the argument 'form' -- call it whatever you want. Anthony On Thursday, October 13, 2011 9:32:35 AM UTC-4, Web2Py Freak wrote: thnx its

[web2py] Re: on Crud accept

2011-10-13 Thread Web2Py Freak
but how can i bass it then ? how the function know what to pass ?

[web2py] About book

2011-10-13 Thread Jose
Hi Massimo This [1] is missing in the book. Maybe here [2] Best Regards, Jose [1] http://groups.google.com/group/web2py/browse_thread/thread/53fce3ec3f616706/b4a989135cfe392a [2] http://www.web2py.com/book/default/chapter/06#Legacy-Databases-and-Keyed-Tables

[web2py] access to extra template files

2011-10-13 Thread Matt Broadstone
Hello, I am trying to dynamically load templates that I have stored in a subdirectory of one of my views. The structure looks like this: app/ views/ test/ index.html list.html edit.html add.html templates/ first.html

[web2py] Re: how to get request.vars if var name is like v[0].op

2011-10-13 Thread Ross Peoples
I recently ran into this. Instead of looking for request.vars.myarray, you have to do it like this: myarray = request.vars.get('myarray[]', None) When you get an array as a var, '[]' gets appended to the name of the var, and since you can't use brackets for Python variable names, you have to

[web2py] serving a zip file

2011-10-13 Thread Matt Broadstone
Hi, In our project, we are trying to provide the ability to download a dataset in a zipped format. We've been transitioning old code to use web2py, and while I've been able to serve files using web2py elsewhere (images, for instance), I can't quite figure out how to serve this particular file.

[web2py] Re: IMPORTANT

2011-10-13 Thread Christopher Steel
For me this seems like it is mainly a question of how one goes about expressing individual culture within the context of a multinational, multicultural community, however, I think it also alludes to some of the secret sauce that helps make Web2py such an awesome product. As far as personal (or

[web2py] Re: Display Loading' animated gif or js : How to

2011-10-13 Thread Vineet
@juanduke, @Paolo, Thanks for sharing your time ideas. I successfully implemented your idea by juanduke. The url -- http://www.ajaxload.info/ is excellent. Regarding Paolo's code, I need to re-structure my code somewhat (which I will definitely do). Then I will implement the idea. In case of

Re: [web2py] how to get request.vars if var name is like v[0].op

2011-10-13 Thread Jonathan Lundell
On Oct 13, 2011, at 6:08 AM, juanduke wrote: Have a question (possible very simple). In my view, I've some js code that append data to a js array like this: myarray.push({someKey: someValue, anotherKey: another value}) after a few pushes, I'm gettin an array like this myarray[0] :

[web2py] Re: access to extra template files

2011-10-13 Thread Anthony
The templates are not directly accessible as html files. They are web2py view files and must be processed server-side by web2py before sending a response to the browser. If you want to apply a completely different view to the current page, you'll probably have to reload the page. Note, if you

[web2py] Re: on Crud accept

2011-10-13 Thread Anthony
You don't have to pass it -- crud will automatically pass the form as the first and only argument to your onaccept or onvalidation function. Anthony On Thursday, October 13, 2011 9:44:12 AM UTC-4, Web2Py Freak wrote: but how can i bass it then ? how the function know what to pass ?

[web2py] Re: Python 2.7 on GAE (experimental)

2011-10-13 Thread howesc
on GAE using python2.7 is supposed to give us concurrent requests, which as GAE changes their pricing model is going to make a big difference in cost for us. I just hope they move python2.7 support out of experimental before they raise the rates on us.

[web2py] Re: on grid and smartgrid search feature

2011-10-13 Thread stefaan
1. Before reading your email again it was not clear to me how to get the query to be activated until I tried to see what would happen if I click on the   and/or buttons.  Only then I saw that those buttons add the query with an 'and' or 'or'  to the existing query. I had the same trouble

[web2py] Re: IMPORTANT

2011-10-13 Thread pbreit
I haven't seen anything meriting some new speech code. If I have missed something perhaps someone could elaborate. There are a lot of different cultures here which is terrific. Live and let live. Let's move on.

Re: [web2py] Re: Python 2.7 on GAE (experimental)

2011-10-13 Thread Jonathan Lundell
On Oct 13, 2011, at 7:47 AM, howesc wrote: on GAE using python2.7 is supposed to give us concurrent requests, which as GAE changes their pricing model is going to make a big difference in cost for us. I just hope they move python2.7 support out of experimental before they raise the rates

[web2py] Re: IMPORTANT

2011-10-13 Thread Eric
Agreed. No need for any policy IMHO. I'm not by nature a follower of any philosophy or religion, but I'm not bothered by anyone's signature unless it contains an ad hominem attack and/or a blanket attack on a specific group of people. And I've not seen any such signature on this list.

[web2py] Re: serving a zip file

2011-10-13 Thread pbreit
My first suggestion would be to save the files to disk and serve statically if possible.

[web2py] Re: Better off-line book?

2011-10-13 Thread peter
WinHTTrack is able to create an offline copy of the book on your computer. The links work, but the search facility does not. I found this useful when I was away from internet access for a while. Peter On Oct 13, 1:57 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Actually that is a

Re: [web2py] using web2py globals in modules

2011-10-13 Thread Bruno Rocha
for use the global variables in modules the new recommended way is using current object. in models/***.py from gluon import current current.foo = bar in modules/***.py from gluon import * foo = current.foo # current already has session, request, response and T http://zerp.ly/rochacbruno Em

[web2py] Re: compute field and reference

2011-10-13 Thread pbreit
Quantity is not a number? What does your quantity table look like?

Re: [web2py] Uploading 388 files

2011-10-13 Thread Bruno Rocha
a fun way is using splinter to emulate a browser action. http://splinter.cobrateam.info/ http://zerp.ly/rochacbruno Em 13/10/2011 07:23, Johann Spies johann.sp...@gmail.com escreveu: I want to upload 388 documents and I don't want to do that by typing the name of the document and clicking on

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread pbreit
I just read the Cherokee thread and, while things like this rarely bother me, I was shocked at how dismissive, insensitive and infantile the reaction was from the project community.

Re: [web2py] Re: On-line Of-line problems

2011-10-13 Thread Miroslav Gojic
I know that my site on my local server is not visible in public network *I have virtual Ubuntu on VmWare player and for testing it is OK* But next week I will make new server on public address and what than, it is on academic network, we have to way network, it is intranet and internet if

[web2py] Re: Bug in included table, or am I using this incorrectly?

2011-10-13 Thread nick name
I would classify this as a bug, or at least warranting mention in the documentation - it causes the appadmin to break for the including tables, which is very confusing. This is specifically for the unique=True, whose validator is IS_NOT_IN_DB(). Perhaps a better solution would be a UNIQUE()

Re: [web2py] how to get request.vars if var name is like v[0].op

2011-10-13 Thread juanduke
Thanks for the reply!! I resolved this way: On the client side: add one more parameter to the request, the lenght of the array, ( arrayLenght ) On the server side: get the request.vars.arrayLenght create an empty list data iterate in range (0 to arrayLenght) and for each step use: myKey1

Re: [web2py] Re: Can I turn off new Query feature in grid/smartgrid

2011-10-13 Thread Jim Steil
Thank you sir, I appreciate the help. -Jim On 10/12/2011 12:30 PM, Massimo Di Pierro wrote: SQLFORM.gird(,search_widget=None) On Oct 12, 12:02 pm, Jim Steilj...@qlf.com wrote: Hi Wondering if I can turn off (not display) the new query button in my SQLFORM.grid and

[web2py] Re: using web2py globals in modules

2011-10-13 Thread pepper_bg
Thanks for the reply, Bruno! I was completely missing the current.xxx shortcut. My example above was incorrect though. Even the code with exec_environment I posted would have worked if my_fun() had no arguments. For the sake of simplifying the post I omitted the arguments. So I was actually

Re: [web2py] Re: serving a zip file

2011-10-13 Thread Matt Broadstone
On Thu, Oct 13, 2011 at 11:34 AM, pbreit pbreitenb...@gmail.com wrote: My first suggestion would be to save the files to disk and serve statically if possible. I would prefer not to touch the disk if possible, these are not huge files just logs. I think I'm very close, when I serve this without

[web2py] Re: using request.restful() for POST ?

2011-10-13 Thread Anaconda
If this method no longer works, is there another way to post data to the database using services? On Oct 12, 11:29 pm, Anaconda kerwinfra...@gmail.com wrote: I have been going through the video tutorial on this at http:// vimeo.com/21133657 and i can get everything to work except the Post

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread pbreit
== Apologies for Off Topic == The most surprising thing to me is that Alvaro, Max and the others did not make even the slightest attempt to try and understand that the feedback could be reasonable. Their reactions were even more insulting than the logo itself. If a European came to me with

[web2py] Re: serving a zip file

2011-10-13 Thread peter
As I have reported previously in this forum, I think that response.stream does not quite stream zip files correctly. So if I were you I would first stream a static zip file, when this is working then try and get your code above working. What I suggest you change in the code above is

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread Vinicius Assef
Let's move on, guys? On Thu, Oct 13, 2011 at 2:32 PM, pbreit pbreitenb...@gmail.com wrote: == Apologies for Off Topic == The most surprising thing to me is that Alvaro, Max and the others did not make even the slightest attempt to try and understand that the feedback could be reasonable.

[web2py] Re: manual file upload using SQLFORM.factory

2011-10-13 Thread Alex
right, I completely forgot that the url is validated by web2py before anything else is called.

[web2py] Re: web2py hosting

2011-10-13 Thread GoldenTiger
I posted in http://web2py.pythonanywhere.com On Oct 12, 5:36 am, Bryan Barnard bmbarn...@gmail.com wrote: I just got a beta account with pythonanywhere, and want to test it out. I'm new to web2py. Can you provide any info on how you went about setting it up? On Sat, Oct 8, 2011 at 3:42 AM,

Re: [web2py] Re: web2py hosting

2011-10-13 Thread Vinicius Assef
good! On Thu, Oct 13, 2011 at 3:13 PM, GoldenTiger goldenboy...@gmail.com wrote: I posted in  http://web2py.pythonanywhere.com On Oct 12, 5:36 am, Bryan Barnard bmbarn...@gmail.com wrote: I just got a beta account with pythonanywhere, and want to test it out. I'm new to web2py. Can you

[web2py] Re: compute field and reference

2011-10-13 Thread Anthony
On Thursday, October 13, 2011 11:36:34 AM UTC-4, pbreit wrote: Quantity is not a number? What does your quantity table look like? db.item.quantity is a reference to db.quantity.id, so it's a number, but not the quantity of interest. Presumably there's a field in db.quantity that stores the

[web2py] upload and download with multiparty filter

2011-10-13 Thread miroslavgojic
Hi, I need to create upload and download page: On both page there is filter what should be applied for upload or download. Upload form have filter with 4 drop down list and one input field for text after this there is field for file selection and button for upload. I need to select some values

Re: [web2py] Uploading 388 files

2011-10-13 Thread Johann Spies
On 13 October 2011 17:39, Bruno Rocha rochacbr...@gmail.com wrote: a fun way is using splinter to emulate a browser action. http://splinter.cobrateam.info/ I looks very interesting. Thanks. I will try it. Regards Johann -- May grace and peace be yours in abundance through the full

Re: [web2py] Re: IMPORTANT

2011-10-13 Thread Ivica Kralj
Won't somebody please think of the children? Web2py is everybody’s baby and any negative vibe in community might hinder further development. Like most of people said, let's move on. Live and let live!!! On 13 October 2011 18:59, Vinicius Assef vinicius...@gmail.com wrote: Let's move on,

Re: [web2py] Re: Better off-line book?

2011-10-13 Thread ~redShadow~
On Thu, 2011-10-13 at 08:35 -0700, peter wrote: WinHTTrack is able to create an offline copy of the book on your computer. The links work, but the search facility does not. I found this useful when I was away from internet access for a while. Peter Of course there are many tools to do

[web2py] Re: using web2py globals in modules

2011-10-13 Thread Massimo Di Pierro
Not quite, You should not do from gluon import * foo = current.foo but from gluon import * def myfunction(): foo = current.foo and than call and run myfunction when/where you need. variable = current.anything is very dangerous at top level in a module because it is executed when the

[web2py] Re: using request.restful() for POST ?

2011-10-13 Thread Massimo Di Pierro
What do you mean does not work. It should work. On Oct 13, 1:29 am, Anaconda kerwinfra...@gmail.com wrote: I have been going through the video tutorial on this at http:// vimeo.com/21133657 and i can get everything to work except the Post requests. I may be calling it incorrectly in my

[web2py] Re: Uploading 388 files

2011-10-13 Thread Massimo Di Pierro
I have used mechanize and I was pretty impressed. http://wwwsearch.sourceforge.net/mechanize/ On Oct 13, 10:39 am, Bruno Rocha rochacbr...@gmail.com wrote: a fun way is using splinter to emulate a browser action. http://splinter.cobrateam.info/ http://zerp.ly/rochacbruno Em 13/10/2011

[web2py] Re: using request.restful() for POST ?

2011-10-13 Thread Anaconda
Hi Massimo, thank you for taking time to answer my question. It probably does work, i am making a mistake. I have been following the video tutorial you have online and i can get the GET queries to work but not the post. This is the get request http://127.0.0.1:8000/myapp/api/get_person/1.json,

[web2py] Re: compute field and reference

2011-10-13 Thread pbreit
Yeah, just seemed weird that quantity was relational, unless perhaps the type of quantity varies (ie, boxes, teaspoons, dozens, etc.). But then you have to do more than just multiple.

Re: [web2py] Re: using web2py globals in modules

2011-10-13 Thread Bruno Rocha
variable = current.anything is very dangerous at top level in a module because it is executed when the module is imported the first time, not for every request. The first time the a request arrives it works fine. If a second request arrives in another thread variables will point to the

[web2py] Re: compute field and reference

2011-10-13 Thread Anthony
Good point. On Thursday, October 13, 2011 8:13:54 PM UTC-4, pbreit wrote: Yeah, just seemed weird that quantity was relational, unless perhaps the type of quantity varies (ie, boxes, teaspoons, dozens, etc.). But then you have to do more than just multiple.

[web2py] Re: using web2py globals in modules

2011-10-13 Thread pepper_bg
from gluon import * def myfunction():     foo = current.foo Great, good to know... How do I apply this to current.cache though? Sounds to me this automatically means I can't use the @cache(...) decorator outside of a controller (Python just barfs at @current.cache(...)). I guess I could still

[web2py] Re: using web2py globals in modules

2011-10-13 Thread Massimo Di Pierro
You are correct you cannot but I think I may be able to fix this. Please open an issue and I can modify the definition the cache object and make it work On Oct 13, 8:56 pm, pepper_bg ilief...@gmail.com wrote: from gluon import * def myfunction():     foo = current.foo Great, good to

[web2py] Re: serving a zip file

2011-10-13 Thread Brian M
I wrote a controller a few weeks ago that does this. Takes in big dataset and splits it into multiple CSV files bundled into a zip, all using cStringIO Here's part of it. -- if record_count 1000: #split into chunks of 500 each and bundle up in a zip file

[web2py] Re: IMPORTANT

2011-10-13 Thread Rufus
On Oct 13, 7:06 am, Johann Spies johann.sp...@gmail.com wrote: If somebody has a problem with my signature, please contact me directly. I will not be offended and I do not wish to offend anyone. Johann, I wanted to contribute to this thread before it was shut down. I noticed your

[web2py] Back to home page every time i click cancle button

2011-10-13 Thread Saurabh S
tr class=submitrow td{{=form.custom.submit}}/td tdinput style=margin-left:0px id=cancel class=submit type=reset onclick=window.history.back() value=Cancel/td i want to replace on-click function with something that always redirects me to my home pagesuppose my home

Re: [web2py] Re: Better off-line book?

2011-10-13 Thread ma...@rockiger.com
Hi Samuele, use wget: wget --recursive -l 1 --no-clobber --page-requisites --html-extension --convert-links --restrict-file-names=windows --domains web2py.com --no-parent http://www.web2py.com/book This way you get the whole book properly link. Everything ist in there.