[web2py] Re: Starting WEB2Py over network

2012-12-16 Thread Seelife
Hi Folks, can anyone suggest a way to deal with firewalls and run rocket so that we can share the App? my usual error when rocket tries to open the welcome page is : Traceback (most recent call last): File "gluon/restricted.py", line 205, in restricted File "F:/Web2Py/applications/welcome/mo

Re: [web2py] many things break with multiple controllers

2012-12-16 Thread Vinicius Assef
On Sat, Dec 15, 2012 at 1:17 AM, Lewis wrote: > > After attempting to delete a category that still references items, the > following error resulted: > > 'str' object has no attribute 'format' str.format() was introduced in Python 2.6. What Python version are you using? > > All I did today was

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-16 Thread Vinicius Assef
Brypthon doesn't support string interpolation, too. :-( On Sun, Dec 16, 2012 at 6:40 PM, Arnon Marcus wrote: > From what I saw, it does not support many fundamental features of python, > like class-inheritance (class, classMethod) modules (__import__, from, as), > scope (globals, nonlocal) and pa

[web2py] Script for nginx/uWSGI/web2py install on Webfaction

2012-12-16 Thread HittingSmoke
I've been learning web2py on Webfaction off and on for a while now. The web2py install script on the Webfaction wiki is quite outdated and runs on an Apache instance that can barely stay within the default memory limits without serious tweaking. Responsiveness with web2py/apache out of the box

[web2py] Re: Webfaction Deployment and Tuning Web2py Slice.

2012-12-16 Thread HittingSmoke
How do you do this on Webfaction (use web2py/uwsgi with the native nginx instance)? I've asked for this specifically and been told by Webfaction staff that it's not actually possible to use a framework with the native nginx instance, only with static and PHP apps. Right now I'm using a custom n

Re: [web2py] 'Row' object has no attribute powerTable

2012-12-16 Thread Bruno Rocha
what happens if you just return the Rows without using powerTable, it works? def test(): return db(db.pagos.id_clientes==session.cliente_id).select(db.pagos.id ,db.pagos.fecha,db.pagos.monto,db.pagos.comments,orderby=~db.pagos.fecha) --

[web2py] Re: NEWINSTALL not working

2012-12-16 Thread Ron McOuat
Created issue 1225 http://code.google.com/p/web2py/issues/detail?id=1225 --

[web2py] 'Row' object has no attribute powerTable

2012-12-16 Thread FERNANDO VILLARROEL
Dear All. I am trying to use powerTable plugin, but i am receiving the following error: return ogetattr(self, key) AttributeError: 'Row' object has no attribute 'pagos' My code: @auth.requires_login() def pagos(): reg=db(db.pagos.id_clientes==session.cliente_id).select(db.pagos.id,d

[web2py] Processing user entries prior to database commit

2012-12-16 Thread Dave Cenker
I first must say that I have developed 2 different web applications using Django in the past and I am very impressed and encouraged by what web2py can offer to the web framework community. However, I am having trouble carrying out a seemingly simple task without much ado after reviewing all the

[web2py] Re: fail to use web2py in IPython Notebook

2012-12-16 Thread Massimo Di Pierro
Unfortunately I am not sure you can run web2py with Ipython notebook. The reason is that the notebook is a web interface and the statements are executed server side. The notebook server may execute the statements in different threads (I am not sure but from the tracebacks that is what it looks

[web2py] Re: Running the scheduler as a windows service using nssm

2012-12-16 Thread Massimo Di Pierro
Agreed. Can you help us write it? On Sunday, 16 December 2012 18:34:08 UTC-6, Tim Richardson wrote: > > Thanks for the tips. I've implemented two schedulers. Now I understand the > difference between starting the scheduler with 1 app vs > 1 apps. > > nssm is very easy to use. > > I think for Win

[web2py] Re: Moving from 2.0.2 to R-2.3.1: undefined with globals in models

2012-12-16 Thread Massimo Di Pierro
No change. This should work file. If you could post your code we could check if something is wrong. On Sunday, 16 December 2012 17:53:22 UTC-6, Daniel Gonzalez wrote: > > Hi, > > My application is using 2.0.2 I have some global variables defined in > db.py which I am using in my controllers. > N

[web2py] Re: web2py interactive shell in windows does not start the browser

2012-12-16 Thread Massimo Di Pierro
As you say -S starts the shell but not the web server. Without -S it starts the web server. The reason is that you may want one without the other. On Sunday, 16 December 2012 14:38:53 UTC-6, Bhaskar Ramachandran wrote: > > I am new to web2py but very excited to learn and use it on a long term

Re: [web2py] Specify password strengh, with error feedback

2012-12-16 Thread Massimo Di Pierro
Which you can find here: http://web2py.com/examples/static/epydoc/web2py.gluon.validators.IS_STRONG-class.html On Sunday, 16 December 2012 17:49:51 UTC-6, Jonathan Lundell wrote: > > On 16 Dec 2012, at 3:47 PM, Daniel Gonzalez > > wrote: > > Is is possible to specify what kind of password is all

Re: [web2py] raspberry pi

2012-12-16 Thread Massimo Di Pierro
anyserver.py ships with web2py in the main folder. Run it with -h for info. ;-) On Sunday, 16 December 2012 16:57:12 UTC-6, wwwgong wrote: > > Hi Massimo, > The ease of running web2py/python/RaspberryPi out of box speaks loudly > about the quality and lightweightness of the whole stack. > I watc

[web2py] fail to use web2py in IPython Notebook

2012-12-16 Thread wwwgong
I have watched video at https://vimeo.com/21185623 and try to use web2py inside IPython Notebook, but run into the following error: form = SQLFORM(db.ipynotebooks) ---AttributeError Traceback (mo

[web2py] Re: Running the scheduler as a windows service using nssm

2012-12-16 Thread Tim Richardson
Thanks for the tips. I've implemented two schedulers. Now I understand the difference between starting the scheduler with 1 app vs > 1 apps. nssm is very easy to use. I think for Windows deployment, running the scheduler as a service would be a very common use-case. Perhaps worthy of a paragra

[web2py] Moving from 2.0.2 to R-2.3.1: undefined with globals in models

2012-12-16 Thread Daniel Gonzalez
Hi, My application is using 2.0.2 I have some global variables defined in db.py which I am using in my controllers. Now I have tried to move to the latest web2py version (2.3.1), and those globals can not be accessed from the controllers. Has there been any important change in this regard? Do I

Re: [web2py] Specify password strengh, with error feedback

2012-12-16 Thread Jonathan Lundell
On 16 Dec 2012, at 3:47 PM, Daniel Gonzalez wrote: > Is is possible to specify what kind of password is allowed? For example, > let's say I want: > length >=8 > at least 1 uppercase > at least 1 lowercase > at least 1 number > at least 1 char in a pre-defined set() > I would also like to give the

[web2py] Specify password strengh, with error feedback

2012-12-16 Thread Daniel Gonzalez
Hi, Is is possible to specify what kind of password is allowed? For example, let's say I want: - length >=8 - at least 1 uppercase - at least 1 lowercase - at least 1 number - at least 1 char in a pre-defined set() I would also like to give the end-user information about why the

[web2py] Re: Prevent calling compute when doing an update

2012-12-16 Thread Daniel Gonzalez
Mmmm ... I see. I actually went another route: I am passing all existing parameters to the update_record function, changing only the password. By passing the existing parameters, it seems the compute function is not called. On Saturday, December 15, 2012 3:26:41 PM UTC+1, Massimo Di Pierro wrot

[web2py] web2py interactive shell in windows does not start the browser

2012-12-16 Thread Bhaskar Ramachandran
I am new to web2py but very excited to learn and use it on a long term from now. I am having trouble starting an interactive shell (I am using Windows 7 OS and have installed python2.5 and pywin32 but not ipython as i don't want ipython shell). I have the latest web2py source copied to C:\.

Re: [web2py] raspberry pi

2012-12-16 Thread wwwgong
Hi Massimo, The ease of running web2py/python/RaspberryPi out of box speaks loudly about the quality and lightweightness of the whole stack. I watched your talk web2py: "Web Development Should be Easy" today and agree that the key to attract young pro

[web2py] Re: Find book reference to new features

2012-12-16 Thread Massimo Di Pierro
The short answer is no but it may be possible in the near future. The information is the versioning of the book On Sunday, 16 December 2012 14:26:38 UTC-6, Arnon Marcus wrote: > > How can one find in the book, where are all of the additions describing > features that where added since a given ve

[web2py] webgrid and row_created

2012-12-16 Thread Kenneth
Hello, I'm using webgrid in an application and I'm trying to insert an delete image into the table to shows all rows in an table. When clicking on the delete image I want an onclick event to trigger a Javascript that confirms and deletes that row. To do that I need the rownumber. Looks like t

[web2py] Re: Webassets in web2py

2012-12-16 Thread Arnon Marcus
And in that regard, on a more general sense, I think web2py could use a notion of dev-vs-production modes. I know many people would implement things differently, but I think that if this be a core functionality, different modules could be used for different modes. What we ended up doing, is qua

[web2py] Re: Webassets in web2py

2012-12-16 Thread Arnon Marcus
10 for the long and detailed answer. Couple of things: 1. I've been using web2py in production in my workplace for almost 3 years now, and "admire tha hell outa it". That said, it's not a 'toy' for me. It's a workplace-production tool, and I treat it as such. I appreciate web2py's origins and

[web2py] Re: Single page apps vs Web2py

2012-12-16 Thread Arnon Marcus
Is there somewhere I can find examples of this? > > Are there any exotic experimentation for tight-integration with certain modern SPA frameworks? By "exotic" I mean, let's say, well, my 'dream implementation' of such an integration, would go something like this: Have web2py's views be sent to

[web2py] Re: Webassets in web2py

2012-12-16 Thread Niphlod
I'll try to explain why web2py integrates some features and why others are left alone There is mch going on web development since more or less html5 was presented. A lot of libraries, frameworks, js development, etc gained much more attention also because html5 coincided with mobile dev

[web2py] Re: LOAD() and response.js - characters being escaped??

2012-12-16 Thread Brian M
Thanks guys, I wondered if it might be something like that but also thought backwards compatibility was a big thing. Guess I've got an excuse to just update to the new layout with bootstrap too and get the look of my apps all uniform. On Sunday, December 16, 2012 8:37:58 AM UTC-6, Niphlod wrote

Re: [web2py] Find book reference to new features

2012-12-16 Thread Arnon Marcus
Um, that links to the change-log... I said: "...let's say that now, this 2.3.1 version came out. I *read the change-log*, and it's not descriptive enough about what the new features are and how to use them...How can I find the parts that relate only to this release?" On Sunday, December 16, 20

Re: [web2py] Interesting - Brython (python to javascript)

2012-12-16 Thread Arnon Marcus
>From what I saw, it does not support many fundamental features of python, like class-inheritance (class, classMethod) modules (__import__, from, as), scope (globals, nonlocal) and parsing (exec, eval). I think these are trivial for python developement, and should have some kind of design-patter

Re: [web2py] Find book reference to new features

2012-12-16 Thread Bruno Rocha
http://web2py.com/examples/default/changelog --

[web2py] Find book reference to new features

2012-12-16 Thread Arnon Marcus
How can one find in the book, where are all of the additions describing features that where added since a given version? Say, we've been using version 1.8.95 or something, is there a way to ask the book to show only the stuff that relate to things that where added since then? I mean, let's say

[web2py] Re: Webassets in web2py

2012-12-16 Thread Arnon Marcus
10x Massimo - That's good to know. But this actually has very little to do with what I suggested... :) It's good to know that we can have this control over our static-files browser-reloading. But these libraries don't do (just) that... They are for compiling / transpiling/ processing CoffeScrip

[web2py] Re: Query results from 2 children tables from same parent ordered by date

2012-12-16 Thread Mamisoa Andriantafika
Sorry I still get: "Cannot | incompatible Rows objects". I'll change the field name "date" you are very right. Le dimanche 16 décembre 2012 15:49:57 UTC+1, Massimo Di Pierro a écrit : > > My bad. Thry this: > > fields1 = [db.dataset1.date, db.dataset1.param1, db.dateset1.patient_id] > fields2 = [

Re: [web2py] Can we override DAL API functions?

2012-12-16 Thread at
Thanks a lot for your help although I couldn't understand your reply completely but it gives me chance to think in a different way .. I am new to this web2p2y planet :) lemme try what you've suggested; hope it would give better understanding thanks again best regards On Friday, 14 December 201

Re: [web2py] Re: custom form validation doesn't work

2012-12-16 Thread Jonas Fredriksson
I send the app to your gmail address. On Sun, Dec 16, 2012 at 4:35 PM, Massimo Di Pierro wrote: > This should work. I do not see why it does not work. Can you email me, > perhaps privately, an example app so I can reproduce it? > > > On Sunday, 16 December 2012 09:26:54 UTC-6, jonas wrote: >> >>

Re: [web2py] Re: Image Tutorial and linked_tables

2012-12-16 Thread Massimo Di Pierro
Which web2py version? This was discussed some time ago and I believe the behavior was changed in 2.3.1. Can you please confirm? On Sunday, 16 December 2012 08:50:11 UTC-6, Lanae wrote: > > I have been going through the book tutorial verbatim, and ran into the > same problem. I fixed it a differe

Re: [web2py] Re: Image Tutorial and linked_tables

2012-12-16 Thread Lanae
I have been going through the book tutorial verbatim, and ran into the same problem. I fixed it a different way, by commenting out this line, which the book has you add while creating db.py: db.comment.image_id.writable = db.comment.image_id.readable = False This now allows 'Comments' links to

Re: [web2py] Re: custom form validation doesn't work

2012-12-16 Thread Massimo Di Pierro
This should work. I do not see why it does not work. Can you email me, perhaps privately, an example app so I can reproduce it? On Sunday, 16 December 2012 09:26:54 UTC-6, jonas wrote: > > here is the custom form: > > {{=form.custom.begin}} > > date: {{=form.custom.widget.created_on}}

Re: [web2py] Re: custom form validation doesn't work

2012-12-16 Thread Jonas Fredriksson
here is the custom form: {{=form.custom.begin}} date: {{=form.custom.widget.created_on}} name: {{=form.custom.widget.created_by}} mail: {{=form.custom.widget.mail}} link: {{=form.custom.widget.link}} comment:{{=form.custom.widget.comment}} {{=form.custom.sub

[web2py] Re: Query results from 2 children tables from same parent ordered by date

2012-12-16 Thread Massimo Di Pierro
My bad. Thry this: fields1 = [db.dataset1.date, db.dataset1.param1, db.dateset1.patient_id] fields2 = [db.dataset2.date, db.dataset2.test1, db.dateset2.patient_id] rows = ( db(db.dataset1).select(*fields1) | db(db.dataset2).select(*fields2) ).sort(lambda row: row.date) Mind that having a column

[web2py] Re: Query results from 2 children tables from same parent ordered by date

2012-12-16 Thread Mamisoa Andriantafika
Hi again, "|" seems not to work because the column numbers is different between the 2 tables? Le samedi 15 décembre 2012 20:23:44 UTC+1, Massimo Di Pierro a écrit : > > If you have lots of records you may be able to do it with a database view > but that may be db specific. > > If you don't hav

[web2py] Div into Markmin

2012-12-16 Thread David Alvarez
I found a module to include in the syntax Markmin div, but I can not do the installation, the module is called Markdiv and attachment to see if anyone can make it work, or explain how to include html code in Markmin, Thanks -- ?#---

[web2py] Re: Webassets in web2py

2012-12-16 Thread Massimo Di Pierro
Static asset management is already integrated in web2py and it is much easier to use than those libraries. ;-) Thanks to Niphlod for that: http://web2py.com/books/default/chapter/29/04?search=static+asset#Static-asset-management On Sunday, 16 December 2012 08:04:55 UTC-6, Arnon Marcus wrote: > >

[web2py] Re: LOAD() and response.js - characters being escaped??

2012-12-16 Thread Niphlod
please update web2py.js to the latest version if you're coming from 1.99.4 probably the file in your app is named web2py_ajax.js . As soon as it is updated, it will "decode" the escaped js commands and flashes back to "normal". On Sunday, December 16, 2012 6:04:51 AM UTC+1, Brian M wrote: >

[web2py] Re: LOAD() and response.js - characters being escaped??

2012-12-16 Thread Massimo Di Pierro
You need to upgrade web2py.js (copy it from welcome to your app). On Saturday, 15 December 2012 23:04:51 UTC-6, Brian M wrote: > > I'm also noticing that my response.flash is getting escaped as well, so > everything reads as Some%20flash%20message :( > > On Saturday, December 15, 2012 10:56:07 PM

[web2py] Re: custom form validation doesn't work

2012-12-16 Thread Massimo Di Pierro
Hello Jonas, Can you show us your custom form, the one that does not work. Validation and form processing are done before the view is execued therefore it cannot affect form validation and processing. perhaps that is something in the custom form that prevents error messages from being displayed

[web2py] Re: Running the scheduler as a windows service using nssm

2012-12-16 Thread Niphlod
checking on services is easy: reboot your machine and see if it the process is restarted. On the new task manager (WS2008 and on) you can have a column showing the command line that the process is running. On XP, WS2003, etc that doesn't have natively this functionality, you can use procexp.ex

[web2py] Re: Webassets in web2py

2012-12-16 Thread Arnon Marcus
And/Or this one: http://42coffeecups.com/ On Sunday, December 16, 2012 1:57:19 PM UTC+2, Arnon Marcus wrote: > > Any thoughts on this? > > http://elsdoerfer.name/docs/webassets/index.html > > Has anybody tried integrating it in web2py? > Should it be included in it's future releases? > How should

[web2py] Running the scheduler as a windows service using nssm

2012-12-16 Thread Tim Richardson
I used nssm to create a service which runs a scheduler instance. I'm using AcitveState python 2.7 on a windows 2003 server. I told nssm to run pythonw.exe d:\web2py2x\web2py.py -K app1,app2 The service runs so I guess all is well, and I've made it automatic whch I hope means it comes back after

[web2py] Webassets in web2py

2012-12-16 Thread Arnon Marcus
Any thoughts on this? http://elsdoerfer.name/docs/webassets/index.html Has anybody tried integrating it in web2py? Should it be included in it's future releases? How should one approach using it in development/production with web2py? How could files be auto-compiled-on-save by this, via web2py's

Re: [web2py] Re: applying BEAUTIFY to UL in controller

2012-12-16 Thread praveen krishna
The objects in UL are lists in controller.I am confused how to implement the syntax given in the documentation to my issue. These are list of objects in UL : hits_forward_mismatch.append(LI(PRE( '%s \n' % record.filename, '\n %s' % query_forward_mismatch1,