[web2py] Re: Form submission and "view page source"

2012-06-29 Thread Neil
> > It shouldn't happen "randomly". It should only happen when you open the > same page (or any page with a form that has the same formname) in the same > browser, and then go back to the original page and try to submit the > original form. We've talked about allowing multiple versions of the

[web2py] Re: import modules

2012-06-29 Thread Corne Dickens
It depends on what you do.. Just installing with PIP or easy_install works.. Installing in web2py/site_packages and before starting web2py add site_packages to the python path also works. But in web2py its self the site_packages is added to the path, but in that case installed packages are not

Re: [web2py] Form not processed on first submit

2012-06-29 Thread Johann Spies
On Thursday, 28 June 2012 16:19:34 UTC+2, Anthony wrote: > > Hmm, this is a bit hard to follow, and I don't readily see the problem. > Somewhere, though, on the initial load, it is creating the form twice but > displaying the first version in the view (so the _formkey in the view is > outdated

[web2py] Re: image thumb

2012-06-29 Thread villas
I tried this approach of serving up resized pics on-the-fly before (using PHP). It seemed such a good idea because I could serve up pics of any size. It worked, but there was a performance hit and the server was not happy. I then introduced a way that the pics would be resized the first tim

[web2py] Re: import modules

2012-06-29 Thread Niphlod
I could use some more explanation.. the site module is imported in the interpreter anyway, staring at the docs. in the first post you say: Only it does not work with modules installed by python easy-install. > in this one Just installing with PIP or easy_install works > I'm surely missing

Re: [web2py] Routes - simple requirement, but how??

2012-06-29 Thread villas
Hi Anthony IMO most of the difficulty is not having an easy 'flow diagram' for the developer so that he can choose what to do. I agree that we will of course have to keep the parametric router now that we have it. Here are a few points: 1. The pattern router should be named the 'comprehensiv

Re: [web2py] Routes - simple requirement, but how??

2012-06-29 Thread Jonathan Lundell
On Jun 29, 2012, at 5:08 AM, villas wrote: > 4. For example, I suggest the root router should go something like this: > > default_app = myapp > ## default_app will be applied whenever the app is not obviously identifiable > > apps_with_own_routers = [app1, app2] > ## app1, app2 must have their

Re: [web2py] Re: Dynamic virtual fields

2012-06-29 Thread Richard Vézina
I try what Jay suggest, that works, but since eval is risky and not required, here what I come up with : inputs_list = [] for a in my_dict: inputs_list.append(Field(my_dict[a]['field_name']+'_f1', type='boolean', widget=SQLFORM.widgets.checkboxes.widget, req

[web2py] Re: send a tweet from web2py

2012-06-29 Thread Elcimar
Does this still works nowadays? Em quinta-feira, 7 de maio de 2009 17h01min07s UTC-3, weheh escreveu: > > awesome

Re: [web2py] Routes - simple requirement, but how??

2012-06-29 Thread Anthony
> > 1. The pattern router should be named the 'comprehensive' router. > > 2. The parametric router should be named the 'easy', 'lite' or 'limited' > router. It should start off by stating its limitations. Developers can > then immediately discard it when it doesn't meet their requirements. >

[web2py] Re: send a tweet from web2py

2012-06-29 Thread Anthony
Should, unless Twitter changed there API (in which case, probably something similar would work). Give it a try and let us know. On Friday, June 29, 2012 9:35:42 AM UTC-4, Elcimar wrote: > > Does this still works nowadays? > > Em quinta-feira, 7 de maio de 2009 17h01min07s UTC-3, weheh escreveu: >

[web2py] Virtual Machines on Google

2012-06-29 Thread Michele Comitini
It was about time. I like GAE but having a full OS gives more degrees of freedom. https://developers.google.com/compute/ mic

[web2py] Re: Using admin interface on GAE, getting errors on update or insert

2012-06-29 Thread howesc
looks like whatever you are doing has triggered a query that needs the index. have you run this in development mode on your desktop first? that should trigger the creation of the index.yaml file automagically. the missing fields in the GAE datastore viewer is because bigtable is schemaless, s

[web2py] Re: VPS Hosting in Canada

2012-06-29 Thread Don_X
hey Rod ... check out myhosting.com for a good custom VPS deal As soon as I finished with my app ... this is where I'll be heading to there VPS packages are cheaper than iweb ... good luck ... Don On Tuesday, 26 June 2012 10:22:55 UTC-4, Rod Watkins wrote: > > Hello everyone, > > I w

Re: [web2py] Re: Multi_tenant

2012-06-29 Thread Michele Comitini
Ovidio, I wonder if you could use auth.user.id or auth.membership.id as key instead of host/ip? If the above is not viable, Massimo suggestion to have separate databases is very good IMHO and you can build a Data Warehouse http://en.wikipedia.org/wiki/Data_warehouse by using postgresql clustering

[web2py] standalone we-app example

2012-06-29 Thread orsomannaro
How can I dowload a web2py standalone web-app example? Tnk.

Re: [web2py] Routes - simple requirement, but how??

2012-06-29 Thread villas
@Jonathan. Parametric Router. I just read the book again and I had overlooked that with the parametric router you cannot have app specific routes in the app folder. That is a shame because I had always thought a main advantage of having an app specific routes.py is so that it could be distribu

Re: [web2py] Routes - simple requirement, but how??

2012-06-29 Thread Jonathan Lundell
On Jun 29, 2012, at 8:47 AM, villas wrote: > @Jonathan. > Parametric Router. I just read the book again and I had overlooked that with > the parametric router you cannot have app specific routes in the app folder. > That is a shame because I had always thought a main advantage of having an > a

Re: [web2py] Re: How to populate list:reference field?

2012-06-29 Thread Alec Taylor
Thanks, got it working: groups_list = SQLTABLE(db().select(db.group_of_events.ALL, db.event.ALL, left=db.event.on(db.event.group_id==db.group_of_events.id))) :D On Thu, Jun 28, 2012 at 5:21 AM, Anthony wrote: > Have you read this > section: http://web2py.com/books/default/chapter/29/6#One-to-man

[web2py] Re: Virtual Machines on Google

2012-06-29 Thread Massimo Di Pierro
+1 On Friday, 29 June 2012 08:58:09 UTC-5, Michele Comitini wrote: > > It was about time. > I like GAE but having a full OS gives more degrees of freedom. > > https://developers.google.com/compute/ > > mic >

[web2py] Re: Specify update column

2012-06-29 Thread naveed
Awesome! Thanks, Anthony

Re: [web2py] Routes - simple requirement, but how??

2012-06-29 Thread Anthony
> > Parametric Router. I just read the book again and I had overlooked that > with the parametric router you cannot have app specific routes in the app > folder. Actually, according to the example file, you can have app-specific routes in the app folder if desired: http://code.google.com/p/

[web2py] Re: Multi_tenant

2012-06-29 Thread Maxwell Morais
Ovidio, Este link, pode te ajudar com a sua dúvida! http://balaiotecnologico.blogspot.com.br/2011/03/sua-solucao-saas-e-multi-tenant.html Em quarta-feira, 27 de junho de 2012 16h48min34s UTC-3, Ovidio Marinho escreveu: > >Ovidio Marinho Falcao Neto > Web Developer >

Re: [web2py] Re: VPS Hosting in Canada

2012-06-29 Thread Alexander Kiss
Hello to everybody, I am a new user in this group (still learning python, and looking for a framework) if someone wants a vps then I recommend them http://vpscheap.net/linux.aspx it's quite a while since I became their customer and I must say it's worth every little cent that I am paying. As

Re: [web2py] Re: VPS Hosting in Canada

2012-06-29 Thread Richard Vézina
Nice project Alex! I will be happy to heard about that. See you here soon. Richard On Fri, Jun 29, 2012 at 11:11 AM, Alexander Kiss wrote: > Hello to everybody, I am a new user in this group (still learning > python, and looking for a framework) if someone wants a vps then I > recommend them

Re: [web2py] Re: Multi_tenant

2012-06-29 Thread Cliff Kachinske
You can use auth.user.request_tenant as the default, but you must be careful because auth is not present before the user logs in. Therefore you will get key errors if a user not logged in attempts to access a function. So, insert something like the following in your model before auth creates t

[web2py] Re: Form submission and "view page source"

2012-06-29 Thread Cliff Kachinske
Couldn't a Man In The Middle attacker hijack the form key since it goes by post? Then keep hitting the server with a bogus request that includes the hijacked key. On Friday, June 29, 2012 12:51:59 AM UTC-4, Anthony wrote: > > The easiest way is to implement this is to replace self.formkey and

[web2py] Re: Form submission and "view page source"

2012-06-29 Thread Cliff Kachinske
Are you sending them back via redirect() or some other way? On Friday, June 29, 2012 3:45:26 AM UTC-4, Neil wrote: > > > >> It shouldn't happen "randomly". It should only happen when you open the >> same page (or any page with a form that has the same formname) in the same >> browser, and then g

Re: [web2py] Re: database locking web2py vs. "external" access...

2012-06-29 Thread Doug Philips
On Thu, Jun 28, 2012 at 8:04 AM, Anthony wrote: >> > Anyway, you might be better off looking into using the scheduler, or a >> > third-party task queue like Celery (a web2py Celery plugin was started >> > at >> > some point, though not sure it is complete). >> >> I don't understand, how will that

[web2py] Server side rendering requiring js library. Svg to png. D3.js

2012-06-29 Thread Andrew
Hello, I have been using the wonderful d3 library with web2 py. See http://d3js.org/ for more information. But it is aimed at the browser. It is great to visualise json output from web2py. One thing it does is generate svg content. I would like to be able to generate a png image from the s

[web2py] Re: Use of custom CSS, HTML and JS for the view

2012-06-29 Thread mrtn
Thanks a lot for the clarifications!

[web2py] debugging procedure

2012-06-29 Thread Janath
Hi, So far I have connected the algorithms that I developed in python IDLE to web2py. I would like to debug from web2py as I need to find out some errors that I do not see in IDLE. I have tried setting breakpoints, but couldn't figure out the proper way of doing it. I need to check the varia

[web2py] A page served by two different backends

2012-06-29 Thread cyan
I want to implement a page that is served by two backends, one is tornado and the other is web2py, and this concerns two questions below: 1. The tornado serves the dynamic part of the content on the page (together with some help from frontend Javascript), while the web2py handles the rest of a

[web2py] Re: A page served by two different backends

2012-06-29 Thread Massimo Di Pierro
I am not sure what you mean by "static content". web2py is good at generating dynamic content but if you have static pages and files you are better-off by-passing web2y and tornado has a StaticHandler object. On Friday, 29 June 2012 16:24:23 UTC-5, cyan wrote: > > > I want to implement a page th

[web2py] Re: Web2Py compute fields not working on update

2012-06-29 Thread web2py_Superfan
I have a much older build, and I have this issue as well. The compute field gives me an error when I do an update, 'key error' image On Wednesday, June 20, 2012 9:08:31 PM UTC-7, Brandon Reynolds wrote: > > If i am not the only one not having i think it's possible it may be a > web2py bug. I be

[web2py] Re: Web2Py compute fields not working on update

2012-06-29 Thread web2py_Superfan
as a workaround in my update statement, I updated the computed field to be the computed field via mint_order = db(db.mint_orders2.id==coin.deannas_dough.mint_orders_id).select(db.mint_orders2.ALL)[0] db(db.mint_orders2.id==mint_order.id).update(num_won=num_won+1,image_thumb=mint_order.image_thu

[web2py] Re: Use of custom CSS, HTML and JS for the view

2012-06-29 Thread mrtn
One follow-up question: More generally, if a controller action returns a form object to the view, how does the view renders the fields/variables in that form? Does the rendering depend on web2py.css and/or web2py.js? If so, does it mean that I have to manually set the variables (such as form.v

[web2py] Re: A page served by two different backends

2012-06-29 Thread cyan
By 'static content', I mean things like the layout, links, labels, buttons, input fields, tables, etc. On the other hand, values of the labels and those of the table are dynamic, such that they refreshes themselves as new values arrive via websockets. Every other pages of the app will be serve

[web2py] advice and help on csv input

2012-06-29 Thread song
Nowdays I study the web2py. I met the problems for me only. By the appadmin.py, the database was constructed. Then at the 'state' , there are problemes in the CSV import. db files # db.define_table('country', Field('name', unique=True), Field('iso'),

[web2py] Re: Use of custom CSS, HTML and JS for the view

2012-06-29 Thread Massimo Di Pierro
The rendering does not require any particular css or js. It did use css for the style of the input fields and textareas. Now it relies on boostrap.css for that. Whether this change was a good idea I am not completely sure of. web2py.js is not required for forms. It is required for slashing mess

[web2py] Re: advice and help on csv input

2012-06-29 Thread song
db.define_table('state', Field('iso','string'), #Field('country_iso',db.country), Field('code','string'), Field('name','string'), Field('level','string') ) I correct db. like above 2012년 6월 30일 토요일 오

[web2py] Re: response.menu problem

2012-06-29 Thread Annet
Hi Anthony, Thanks for your reply. I have stored the cms_menu in session. The only problem is that, whether menu items are displayed or not is set in a function, which is executed after menu.py. I solved the problem by not showing that part of the cms-menu in the functions view. That works for

[web2py] Getting auth.settings.register_next to work...

2012-06-29 Thread Doug Philips
I've been customizing how registration works for my app as a few of my app's users are getting confused by the registration verification email. Ok, so I will just have my app send them to a nice hand-holding explanatory page after they've submitted their registration information. According to The

[web2py] Re: Getting auth.settings.register_next to work...

2012-06-29 Thread Doug Philips
On Sat, Jun 30, 2012 at 2:37 AM, I wrote: > and that _next seems to override anything I set in my model for > auth.settings.registration_next. Typo, I should have written: and that _next parameter seems to override anything I set in my model for auth.settings.register_next -=D