Re: [web2py] Re: LOAD: ajax_trap errors... (still in 1.96.1)

2011-06-03 Thread Sebastian E. Ovide
tracked in http://code.google.com/p/web2py/issues/detail?id=284 On Fri, Jun 3, 2011 at 1:44 AM, ron_m wrote: > I figured out the problem. The Javascript generated looks like this: > > web2py_trap_form('('/app/default/testajax.load',)','c831268503949'); > > which is illegal because the single quo

Re: [web2py] Error With Plugin Wiki

2011-06-03 Thread Martín Mulone
You have the last web2py installed? 2011/6/3 joseph simpson > I am just starting to use the plugin wiki. > > Simple text pages appear to work, but the jqgrid component gives the error > documented in the attached screen shot. > > Any ideas on what I am doing wrong? > > Thanks for your help, > >

[web2py] Re: Social network plug-in

2011-06-03 Thread François
I can answer 4). 'friendship' is an Ajax callback defined later on. The only problem with this otherwise excellent video is that sometimes we cannot see the ends of the lines. For example around 9:50 (at the end of the URL). François On 3 juin, 02:02, François wrote: > I have a few questions o

[web2py] Re: template in crud

2011-06-03 Thread max
i will go for the controller version. thanks a lot. On Jun 2, 3:14 am, Richard Vézina wrote: > You have typo.. (see quote in red) > > Why do you want to do that like this? > > In controller you could go like this : > > db.tablename.fieldname.readable = True or False > > If you need to hide field

[web2py] components in related tables

2011-06-03 Thread 黄祥
hi, is it possible to use components in related tables? lets say like the blog that have a comment related, i want to make the comment as a components that can be use in list index and show itself. thank you so much before. e.g. === index.html === {{extend 'layout.html'}} {{for i, row in enumerat

[web2py] components in related tables

2011-06-03 Thread 黄祥
hi, is it possible to use components in related tables? lets say like a blog with comments related with it. i want to make comments as a components that can be load in index list and blog show page. thank you so much in advance.

[web2py] vps - memory problems

2011-06-03 Thread Carlos
Hi, I'm testing my production environment (vps with ubuntu 10.4 lts lucid, nginx, uwsgi, postgresql, latest web2py), and I detected some memory problems, please check: root@vps:~# htop 1 [||

[web2py] vps - memory problems

2011-06-03 Thread Carlos
Hi, I'm testing my production environment (vps with ubuntu 10.4 lts lucid, nginx, uwsgi, postgresql, latest web2py), and I detected some memory problems, please check: root@vps:~# htop 1 [||

Re: [web2py] vps - memory problems

2011-06-03 Thread Roberto De Ioris
> Hi, > > I'm testing my production environment (vps with ubuntu 10.4 lts lucid, > nginx, uwsgi, postgresql, latest web2py), and I detected some memory > problems, please check: > > > root@vps:~# htop > > 1 [|| > 1.0%] Tasks: 104 total, 1 running > 2 [ >

[web2py] Re: web2py 1.96.1 is OUT

2011-06-03 Thread Plumo
some really nice features there that make web2py more like typical python scripts. Fantastic!

[web2py] Re: component refresh with jQuery UI tab plugin

2011-06-03 Thread Massimo Di Pierro
Give a name to your components {{=LOAD(...,target='one')}} {{=LOAD(...,target='two')}} {{=LOAD(...,target='three')}} now any action can trigger a component reload response.js="web2py_component('action','target')" where action is the URL of the component and 'target' is 'one', 'two', 'three'', e

[web2py] Re: single virtual field definition for multiple table

2011-06-03 Thread Massimo Di Pierro
>>> db.define_table('itemx', Field('unit_price','double'), Field('quantity','integer'), >>> db.define_table('itemy', Field('unit_price','double'), Field('quantity','integer'), >>> class MyVirtualFields(object): def __init__(self,table): self.tabl

[web2py] Re: versioning and uploads

2011-06-03 Thread Massimo Di Pierro
in trunk. thanks On Jun 2, 5:39 pm, "Joseph.Piron" wrote: > The one created in the application folder when using the web interface > versioning option. > Haven't even noticed the distro one. What is its purpose ? > > On May 31, 5:19 pm, pbreit wrote: > > > > > > > > > Which .hgignore? The main d

[web2py] Re: Web2py and PyScripter debugging

2011-06-03 Thread Massimo Di Pierro
### no_threads_web2py.py ### from wsgiref.simple_server import make_server, demo_app from gluon import wsgibase httpd = make_server('', 8000, wsgibase) print "Serving HTTP on port 8000..." # Respond to requests until process is killed httpd.serve_forever() ### end file ### On Jun 3, 12:07 am, Dmi

[web2py] components in related tables

2011-06-03 Thread pbreit
You need to pass an I'd to show controller so it knows what comments to pull.

Re: [web2py] What is the point of CRUD?

2011-06-03 Thread Sebastian E. Ovide
I didn't look into the code but it looks like CRUD extends SQLFORM... so it is your choice in using SQLFORM and do few things by hand, or use CRUD and create a prototype in less lines and therefore in less time !... On Thu, Jun 2, 2011 at 11:50 AM, apple wrote: > In previous post it was stated t

[web2py] Re: LOAD: ajax_trap errors... (still in 1.96.1)

2011-06-03 Thread Massimo Di Pierro
fixed. there was an unwanted comma in the code. On Jun 3, 3:16 am, "Sebastian E. Ovide" wrote: > tracked inhttp://code.google.com/p/web2py/issues/detail?id=284 > > > > > > > > > > On Fri, Jun 3, 2011 at 1:44 AM, ron_m wrote: > > I figured out the problem. The Javascript generated looks like this

[web2py] Show animated gif to submit

2011-06-03 Thread Jose
Hello, I need to display a message or an animated gif to submit, similar to this [1]. I do not know how to do is put in the the function call (javascript) onclick="javascript:animatedcollapse.toggle('uploading')" This is using crud or SQLFORM. I know I can create the form manually, but I sti

[web2py] Re: Size of the list:string input box

2011-06-03 Thread max
thanks. On May 21, 5:14 pm, Anthony wrote: > On Saturday, May 21, 2011 3:56:13 AM UTC-4, max wrote: > > > I am using the   list string to enter data where the number of input > > texts. > > Can I customize the size of the input boxes  in one form because i am > > inserting large texts? > > Can't

[web2py] splitting the field values of a list:string field

2011-06-03 Thread max
I have the following use case. -- User has to input a unknown number of strings in a pref-defined format. eg. a#b#c , a1#b1#c1, a2#b1#c2 Currently i am using the list:string and allow the user to directly add the string with a hash sign. But I would prefer to format the input like this, myfie

[web2py] BUG?: Funny Bug with LOAD;

2011-06-03 Thread David J.
Maybe its not a bug; But I found a strange behavior; I am using LOAD to load some views; I also use @auth.requires_login() I just saw that If I try to reload the component after the session expires the component loads the login page where the component should go; Perhaps once the session exp

[web2py] web2py 1.96.2 is OUT & security warning

2011-06-03 Thread Massimo Di Pierro
We fixed a few more bugs (strangely most of them preexisting 1.96.1). We also addressed two security issues as I will explain later in this email: here is am reporting the 1.96.1 changelog with some additions Changelog: - "from gluon import *" imports in every python module a web2py environment (

[web2py] Noob - Using DAL outside of web2py

2011-06-03 Thread j...@qlf.com
Hi Just starting with web2py. I've been using TurboGears (w/ SQLObject) for many years and am excited about the things that web2py has to offer. On to my question... I have a need to use the DAL outside of web2py. I found the following in the manual... from gluon.shell import exec_en

[web2py] Bug with "list:string" in gae

2011-06-03 Thread Luciano
There is a problem of encoding, to write data to fields of type "list:string" in gae. When we have a field of type "list: string" and try to write data in this field, the method represents web2py run () class NoSQLAdapter (), is present in web2py/gluon/dal.py, and str (x) in line 2633. However the

[web2py] Re: Noob - Using DAL outside of web2py

2011-06-03 Thread Massimo Di Pierro
no, please do not use exec_environment. from gluon import DAL db = DAL('sqlite://',folder='/your/app/ databases',auto_import=True) print db.tables On Jun 3, 9:27 am, "j...@qlf.com" wrote: > Hi > > Just starting with web2py.  I've been using TurboGears (w/ SQLObject) for > many years and

Re: [web2py] web2py 1.96.2 is OUT & security warning

2011-06-03 Thread Praneeth Bodduluri
Updated on pypi -- Praneeth IRC: lifeeth On Fri, Jun 3, 2011 at 8:53 PM, Massimo Di Pierro wrote: > We fixed a few more bugs (strangely most of them preexisting 1.96.1). > We also addressed two security issues as I will explain later in this > email: > > here is am reporting the 1.96.1 changel

RE: [web2py] Re: Noob - Using DAL outside of web2py

2011-06-03 Thread j...@qlf.com
Thanks much for the info. Being new to web2py I don't have a feel for how things happen in the community. I just purchased/printed the book/manual and found this recipe under Core | Execution Environment. I know that I'm using a brand new release. How often do you update the manual? Are the

[web2py] Re: Bug with "list:string" in gae

2011-06-03 Thread Massimo Di Pierro
Can you please open a ticket on google code? On Jun 3, 10:16 am, Luciano wrote: > There is a problem of encoding, to write data to fields of type > "list:string" in gae. > > When we have a field of type "list: string" and try to write data in > this field, the method represents web2py run () clas

Re: [web2py] Re: Noob - Using DAL outside of web2py

2011-06-03 Thread Bruno Rocha
Dont forget to run latest 1.96.2 version... Em 03/06/2011 12:28, "Massimo Di Pierro" escreveu: > no, please do not use exec_environment. > > from gluon import DAL > db = DAL('sqlite://',folder='/your/app/ > databases',auto_import=True) > > print db.tables > > > > On Jun 3, 9:27 am, "j...@qlf.c

Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
Thanks Roberto. I can now see all options for uwsgi (including the one you mention for memory-report) here: http://projects.unbit.it/uwsgi/wiki/Doc Thanks again, Carlos

[web2py] Re: web2py 1.96.2 is OUT & security warning

2011-06-03 Thread GoldenTiger
Very good security upgrade About conditional models, what are they exactly? On 3 jun, 17:23, Massimo Di Pierro wrote: > We fixed a few more bugs (strangely most of them preexisting 1.96.1). > We also addressed two security issues as I will explain later in this > email: > > here is am reporting

[web2py] Re: LOAD: ajax_trap errors... (still in 1.96.1)

2011-06-03 Thread ron_m
Verified fixed in 1.96.2

Re: [web2py] Re: web2py 1.96.2 is OUT & security warning

2011-06-03 Thread David J.
Where do we set the response headers? On 6/3/11 12:17 PM, GoldenTiger wrote: Very good security upgrade About conditional models, what are they exactly? On 3 jun, 17:23, Massimo Di Pierro wrote: We fixed a few more bugs (strangely most of them preexisting 1.96.1). We also addressed two sec

[web2py] Inserting records using DAL outside of web2py

2011-06-03 Thread j...@qlf.com
Hi I'm using DAL outside of web2py with the following code: import sys sys.path.append('w:/web2py/library.zip') from gluon import DAL db = DAL('mysql://root:98lkjdfa@asdf09/ic2',folder='w:/web2py/applications/InfoCenter/databases', auto_import=True) print db.tables rows = db().sele

[web2py] Authorize.net CIM XML - any experts?

2011-06-03 Thread vapirix
I'm attempting to test out the CIM XML method of working with authorize.net, and I'm not entirely sure how to even display the response I'm getting. I've tried a few tricks I know, but everything is breaking. I know at this point it's gotta' be a simple thing, but my unfamiliarity with python (stil

Re: [web2py] Re: web2py 1.96.2 is OUT & security warning

2011-06-03 Thread Bruno Rocha
On Fri, Jun 3, 2011 at 1:17 PM, GoldenTiger wrote: > Very good security upgrade > > About conditional models, what are they exactly? > user requests http://127.0.0.1:8000/app and all python files under app/models folder will be executed, this is not always necessary, because not all your contro

[web2py] Re: Inserting records using DAL outside of web2py

2011-06-03 Thread Ross Peoples
Setting requires only performs validation with CRUD and SQLFORM. Doing a direct insert does not cause validation to be checked. Try using validate_and_insert() instead of insert().

Re: [web2py] Error With Plugin Wiki

2011-06-03 Thread joseph simpson
Martin: Thanks for the pointer. I installed the latest version and it works now.. Take care.. On Fri, Jun 3, 2011 at 3:12 AM, Martín Mulone wrote: > You have the last web2py installed? > > > 2011/6/3 joseph simpson > >> I am just starting to use the plugin wiki. >> >> Simple text page

RE: [web2py] Re: Inserting records using DAL outside of web2py

2011-06-03 Thread j...@qlf.com
Perfect, thanks! From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of Ross Peoples Sent: Friday, June 03, 2011 12:11 PM To: web2py@googlegroups.com Subject: [web2py] Re: Inserting records using DAL outside of web2py Setting requires only performs validation with CRUD

[web2py] Updates and Queries strange behavior

2011-06-03 Thread Francisco
Hi everyone I have a strange issue with web2py and a mysql db. So far I always developed locally in my computer and only uploaded code once development was done, and only small modifications were made then. But right now I have an app that I'm working on a web server. I have been able to add views

[web2py] Re : Re: Social network plug-in

2011-06-03 Thread François
I have asked some of these questions on Stackoverflow, because it also concerns Python. I have received interesting answers : http://stackoverflow.com/questions/6230117/python-reduce-function-and-operator François

[web2py] clarification about upgrading web2py on ajax applications

2011-06-03 Thread Sebastian E. Ovide
Hi All, when I upgrade web2py I unzip the file and just run it... then I copy manually static files (to get any new JS or CSS neded by web2py_ajax.html) and web2py_ajax.htmlfrom the welcome application into my applica

[web2py] Re: web2py 1.96.2 is OUT & security warning

2011-06-03 Thread Massimo Di Pierro
anywhere you like: response.headers['Content-Type']='test/html' On Jun 3, 11:35 am, "David J." wrote: > Where do we set the response headers? > > On 6/3/11 12:17 PM, GoldenTiger wrote: > > > > > > > > > Very good security upgrade > > > About conditional models, what are they exactly? > > > On 3

[web2py] Re: Authorize.net CIM XML - any experts?

2011-06-03 Thread Massimo Di Pierro
from gluon.contrib.AuthorizeNet import process look into gluon/contrib/AuthorizeNet.py for examples On Jun 3, 12:03 pm, vapirix wrote: > I'm attempting to test out the CIM XML method of working with > authorize.net, and I'm not entirely sure how to even display the > response I'm getting. I've

[web2py] Re: Inserting records using DAL outside of web2py

2011-06-03 Thread Massimo Di Pierro
Mind that DAL(...,auto_import=True) does NOT import validators. On Jun 3, 12:13 pm, "j...@qlf.com" wrote: > Perfect, thanks! > > From: web2py@googlegroups.com [mailto:web2py@googlegroups.com] On Behalf Of > Ross Peoples > Sent: Friday, June 03, 2011 12:11 PM > To: web2py@googlegroups.com > Subje

[web2py] Re: Updates and Queries strange behavior

2011-06-03 Thread Massimo Di Pierro
db.commit()? On Jun 3, 12:19 pm, Francisco wrote: > Hi everyone > > I have a strange issue with web2py and a mysql db. So far I always > developed locally in my computer and only uploaded code once > development was done, and only small modifications were made then. But > right now I have an app

[web2py] Re: clarification about upgrading web2py on ajax applications

2011-06-03 Thread Massimo Di Pierro
Yes. The new wb2py_ajax.html imports static/js/web2py_ajax.js Massimo On Jun 3, 12:33 pm, "Sebastian E. Ovide" wrote: > Hi All, > > when I upgrade web2py I unzip the file and just run it... > > then I copy manually static files (to get any new JS or CSS neded by > web2py_ajax.html) and > web2py_

Re: [web2py] BUG?: Funny Bug with LOAD;

2011-06-03 Thread Sebastian E. Ovide
it works for me (1.96.2)... I can see the login page in the whole page On Fri, Jun 3, 2011 at 4:09 PM, David J. wrote: > Maybe its not a bug; > > But I found a strange behavior; > > I am using LOAD to load some views; I also use @auth.requires_login() > > I just saw that If I try to reload t

Re: [web2py] BUG?: Funny Bug with LOAD;

2011-06-03 Thread David J.
Let me see are you using ajax=True or False? Because I am using ajax; and login page loaded in the content panel. I will update my trunk now and test agian. On 6/3/11 2:29 PM, Sebastian E. Ovide wrote: it works for me (1.96.2)... I can see the login page in the whole page On Fri, Jun 3,

[web2py] Re: BUG?: Funny Bug with LOAD;

2011-06-03 Thread Massimo Di Pierro
I did not change aout thing between 1.96.1 and 1.96.2 but I cannot yet confirm the problem. On Jun 3, 1:35 pm, "David J." wrote: > Let me see are you using ajax=True or False? > > Because I am using ajax; and login page loaded in the content panel. > > I will update my trunk now and test agian. >

[web2py] Trapped Ajax Links (bug?)

2011-06-03 Thread Sebastian E. Ovide
Hi All, in the view {{=LOAD(f="seba.load",ajax=True)}} in the controller def seba(): import random return dict(txt=random.random()) in seba.load {{=A ('click me', _href=URL ('seba.load'),cid

Re: [web2py] Re: Inserting records using DAL outside of web2py

2011-06-03 Thread Jim Steil
Without respecifying the validators is there a way to get them imported? This seems to be a fairly significant hole. Is there something I'm missing? -Jim On 6/3/2011 1:26 PM, Massimo Di Pierro wrote: Mind that DAL(...,auto_import=True) does NOT import validators. On Jun 3, 12:13 pm, "j

Re: [web2py] BUG?: Funny Bug with LOAD;

2011-06-03 Thread Sebastian E. Ovide
you are right, with ajax=True it doesn't work On Fri, Jun 3, 2011 at 7:35 PM, David J. wrote: > Let me see are you using ajax=True or False? > > Because I am using ajax; and login page loaded in the content panel. > > I will update my trunk now and test agian. > > > > > On 6/3/11 2:29 PM, S

Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
Hi, My models are relatively big in file size (> 200 kb in total). Is ALL this code being loaded into memory for each web request over and over again, and without reusing the same files (that do not change)?. I'm noticing a consistent increase in memory % in each of the uwsgi-python processes/

[web2py] Re: Authorize.net CIM XML - any experts?

2011-06-03 Thread vapirix
I'm using CIM, not AIM, though. On Jun 3, 1:25 pm, Massimo Di Pierro wrote: > from gluon.contrib.AuthorizeNet import process > > look into > > gluon/contrib/AuthorizeNet.py > > for examples > > On Jun 3, 12:03 pm, vapirix wrote: > > > > > > > > > I'm attempting to test out the CIM XML method of

Re: [web2py] vps - memory problems

2011-06-03 Thread Bruno Rocha
On Fri, Jun 3, 2011 at 4:03 PM, Carlos wrote: > My models are relatively big in file size (> 200 kb in total). > > Is ALL this code being loaded into memory for each web request over and > over again, and without reusing the same files (that do not change)? > Now you can use conditional models

Re: [web2py] vps - memory problems

2011-06-03 Thread Roberto De Ioris
> Hi, > > My models are relatively big in file size (> 200 kb in total). > > Is ALL this code being loaded into memory for each web request over and > over > again, and without reusing the same files (that do not change)?. > > I'm noticing a consistent increase in memory % in each of the uwsgi-pyt

Re: [web2py] components in related tables

2011-06-03 Thread Stifan Kristi
thank you so much for your hint, pbreit, i'd already put an id on the controller. e.g. page = table_0(request.args(0)) or redirect(URL(index_link)) any idea, hints or suggestion to solve this problem? thank you so much in advance. On Fri, Jun 3, 2011 at 9:12 PM, pbreit wrote: > You need to pas

Re: [web2py] Re: GAE taskqueue with Web2py 1.95.1

2011-06-03 Thread howesc
i'm curious about what that bug in db.py was that broke the dev_appserver. if we ever get to the point where development and production environments are exactly the same, think about how many QA jobs would be lost! ;) cfh

[web2py] Re: Updates and Queries strange behavior

2011-06-03 Thread Francisco
I don't think it's that (anyway I tried and no). The thing is, for example in one part I use an insert and all values are inserted except for the value corresponding to the column I recently added. Any other ideas??? On 3 jun, 13:26, Massimo Di Pierro wrote: > db.commit()? > > On Jun 3, 12:19 pm

[web2py] Re: Authorize.net CIM XML - any experts?

2011-06-03 Thread howesc
skip the XML, use SOAP. that's my solution: profile_id = 42 merchantAuthentication={'name':api_login_id, 'transactionKey':transaction_key} from pysimplesoap.client import SoapClient #@TODO: can i cache the SoapClient object? client = SoapClient(wsdl="h

[web2py] Re: clarification about upgrading web2py on ajax applications

2011-06-03 Thread Anthony
I think there were also some recent changes in some of the generic view files, if you happen to be using any of them. Anthony On Friday, June 3, 2011 10:33:01 AM UTC-7, sebastian wrote: > Hi All, > > when I upgrade web2py I unzip the file and just run it... > > then I copy manually static file

Re: [web2py] Re: GAE taskqueue with Web2py 1.95.1

2011-06-03 Thread Carl Roach
it was this definition: auth.messages.verify_email = request.env.http_host+str(URL(r=request,c='default',f='user', args=['verify_email']))+'/%(key)s to verify your email' which I had changed from: auth.messages.verify_email = request.env.http_host+URL(r=request,c='default',f='user', args=['verif

Re: [web2py] components in related tables

2011-06-03 Thread pbreit
I'm not sure exactly how your code works but I'd didn't seen an arg in this load:     {{=LOAD('default', 'blog_comment_show.load', ajax = True)}}

Re: [web2py] components in related tables

2011-06-03 Thread Stifan Kristi
o, i c, thanks so much for showing my code fault, pbreit, i'll try to fix and test it. On Sat, Jun 4, 2011 at 5:02 AM, pbreit wrote: > I'm not sure exactly how your code works but I'd didn't seen an arg in this > load: > {{=LOAD('default', 'blog_comment_show.load', ajax = True)}}

[web2py] Re: web2py 1.96.1 is OUT

2011-06-03 Thread Alessandro Iob
I have tried the new modules import feature (from mymodule import *, looks for mymodule in applications/thisapp/ modules first and then in sys.path. No more need for local_import) and it works wonderfully on OS/X but not at all on Windows. Below you can find the traceback. web2py™Version 1.96.

[web2py] Re: web2py 1.96.2 is OUT & security warning

2011-06-03 Thread alexiob
I have tried the new import behavior (placing modules inside the application's "modules" folder) and it works correctly under OS/X but not at all under Windows (XP). Below you can find the Windows traceback. web2py™ Version 1.96.2 (2011-06-03 16:11:39) Python Python 2.5.4: C:\web2py\web2py.exe

Re: [web2py] vps - memory problems

2011-06-03 Thread Jhonny5
On 3 June 2011 21:57, Roberto De Ioris wrote: > > > Hi, > > > > My models are relatively big in file size (> 200 kb in total). > > > > Is ALL this code being loaded into memory for each web request over and > > over > > again, and without reusing the same files (that do not change)?. > > > > I'm

[web2py] Re: BUG?: Funny Bug with LOAD;

2011-06-03 Thread Massimo Di Pierro
please open an issue on google code On Jun 3, 1:53 pm, "Sebastian E. Ovide" wrote: > you are right, with ajax=True it doesn't work > > > > > > > > > > On Fri, Jun 3, 2011 at 7:35 PM, David J. wrote: > >  Let me see are you using ajax=True or False? > > > Because I am using ajax; and login pa

[web2py] Re: web2py 1.96.1 is OUT

2011-06-03 Thread Massimo Di Pierro
please open a ticken on google code On Jun 3, 2:40 pm, Alessandro Iob wrote: > I have tried the new modules import feature (from mymodule import *, looks > for mymodule in applications/thisapp/ modules first and then in sys.path. No > more need for local_import) and it works wonderfully on OS/X b

Re: [web2py] Re: BUG?: Funny Bug with LOAD;

2011-06-03 Thread Sebastian E. Ovide
tracked in http://code.google.com/p/web2py/issues/detail?id=285 On Sat, Jun 4, 2011 at 12:53 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > please open an issue on google code > > On Jun 3, 1:53 pm, "Sebastian E. Ovide" > wrote: > > you are right, with ajax=True it doesn't work

[web2py] Re: Trapped Ajax Links (bug?)

2011-06-03 Thread Sebastian E. Ovide
tracked in http://code.google.com/p/web2py/issues/detail?id=286 On Fri, Jun 3, 2011 at 7:50 PM, Sebastian E. Ovide < sebastian.ov...@gmail.com> wrote: > Hi All, > > in the view > > {{=LOAD(f="seba.load",ajax=True)}} > > in the controller > > def seba(): > import random > return dict(txt=r

[web2py] ajax run unexpected in show page

2011-06-03 Thread 黄祥
hi, i have an ajax run unexpected in show page but not in index page, when i click the ajax in show page it will return an index page, not to update the value when i click like it work in index page. actually the ajax code is same for index and show page. === show.html === {{=H1(page.title

Re: [web2py] splitting the field values of a list:string field

2011-06-03 Thread Richard Vézina
This thread could be of some help for you : http://groups.google.com/group/web2py/browse_thread/thread/50af0d67554c94d9/dfc30ce6fb4455eb?pli=1 I still not work again on this aspect, hopt to do it in the future... Richard On Fri, Jun 3, 2011 at 10:44 AM, max wrote: > I have the following use ca

Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
Hi guys, Many thanks for all your suggestions. Can you please confirm / correct the following? ... Does web2py load the code from all models into memory for each and every web request?, or does it cache/reuse the same code (as long as it does not change)?. I know web2py executes all models fo

Re: [web2py] vps - memory problems

2011-06-03 Thread Bruno Rocha
On Fri, Jun 3, 2011 at 10:39 PM, Carlos wrote: > Hi guys, > > Many thanks for all your suggestions. > > Can you please confirm / correct the following? ... > > Does web2py load the code from all models into memory for each and every > web request?, or does it cache/reuse the same code (as long as

[web2py] Re: ajax run unexpected in show page

2011-06-03 Thread Massimo Di Pierro
ajax('blog_like',... should be ajax('{{=URL('blog_like.load')}}',.. > hi, > > i have an ajax run unexpected in show page but not in index page, when > i click the ajax in show page it will return an index page, not to > update the value when i click like it work in index page. actually the > a

Re: [web2py] vps - memory problems

2011-06-03 Thread pbreit
I thnk we need more guidance on how to optimize performance and memory consumption.

Re: [web2py] vps - memory problems

2011-06-03 Thread Bruno Rocha
On Fri, Jun 3, 2011 at 11:50 PM, pbreit wrote: > I thnk we need more guidance on how to optimize performance and memory > consumption. *what I am doing:* - In models only table definitions and configuration. Avoid the use of models for classes, functions and other objects. - Use of submodels w

Re: [web2py] vps - memory problems

2011-06-03 Thread Carlos
Thanks for all the recommendations. But it still worries me that web2py (or uwsgi) does not automatically (a) cache/reuse unmodified code and (b) release memory after requests are served (or while idle), after each web request, and regardless of how small or big models actually are. Carlos

Re: [web2py] Re: ajax run unexpected in show page

2011-06-03 Thread Stifan Kristi
thank you so much for your hint and correction, massimo, it works, now. web2py is so cool On Sat, Jun 4, 2011 at 9:28 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > ajax('blog_like',... > > should be > > ajax('{{=URL('blog_like.load')}}',.. > > > hi, > > > > i have an ajax run une

[web2py] Re: Authorize.net CIM XML - any experts?

2011-06-03 Thread vapirix
Brilliant. :) Thank you, I'm going to give this a shot. On Jun 3, 3:33 pm, howesc wrote: > skip the XML, use SOAP.  that's my solution: > >    profile_id = 42 >    merchantAuthentication={'name':api_login_id, >                         'transactionKey':transaction_key} > >     from pysimplesoap.cl

[web2py] Earn $1000-$2500 per month

2011-06-03 Thread rose
Earn $1000-$2500 per month If you Register your name You Get Sign-up bonus $5 AND Get $.20 cent for each referral. Further details http://www.earnbyforex.com/index.php?id=35678365 ***