Re: [web2py] Re: uWSGI 0.9.9

2011-09-11 Thread Roberto De Ioris
> the one that works with 0.9.8.5 > > uwsgi --protocol http --socket 127.0.0.1: --pythonpath > /home/myusername/web2py --module wsgihandler -d > /home/myusername/tmp/uwsgi.log -t 20 --async 24 --ugreen --limit-as 64 -r > --no-orphans -M -p 1 --touch-reload /home/myusername/tmp/uwsgireload.txt

Re: [web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-11 Thread Bruno Rocha
http://blog.gilsondev.com/2011/01/13/interview-creator-of-web2py/

[web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Phyo Arkar
Anyone have a working tutorial for web2py MVC and Qooxdoo ? I am wondering how to use Web2py's response.view template code inside JS files coz Qooxdoo's class definations are in JS file . Somthing i haven't tried.

[web2py] Re: Crud.update Multiple

2011-09-11 Thread Serbitar
Sure, I know that. But I am explicitly looking for the convenience of crud that also automatically generates the forms for that. I basically want to auto-generate forms that allow updating of multiple values. I know how to do it with custom forms, but that is quite tedious. A crud solution would b

[web2py] Re: what other tools do you use with web2py

2011-09-11 Thread rif
I use SASS provided by compass and it really makes CSS more pleasant. I never used CoffeeScript as I stay on jQuery syntax 95% of javascript code.

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
I have checked pyjs, looks great. What can't you do with pyjs? I want to make cockpit like application with tabs and embedded graphs. Must be possible with pyjs. Do you agree? regards, Richard Op 10 sep 2011, om 22:22 heeft Carl het volgende geschreven: > Have a look at pyjs.org > It conver

[web2py] Re: Use the bundled python interpreter

2011-09-11 Thread Christian
No one any idea? On 9 Sep., 16:04, Christian wrote: > Hello, > > I'd like to use the python interpreter bundled with the web2py.app (on > mac) to have a "clean environment" on every host. When trying to start > from commandline with > web2py.app/Contents/MacOS/python web2py.app/Contents/Resources

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Carl
I would say it's worth a look for charts & graphs. Here's one example: http://pyjs.org/examples/gcharttestapp/output/GChartTestApp.html

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
That example and the info hierarchy and tabs example are the widgets we will be using. Looks fine to us. however I do not have a clear view on how pyjama is used within web2py. I have looked at the pyjamas example http://www.web2py.com/appliances/default/show/45 but I can't figure out what is sp

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Carl Roach
The AJAX is the only 'bit' that is Web2py specific. Your mental model will need to shift to "writing an application in Pyjamas rather than writing web pages". That applications, thru ajax can communicate with your Web2py instance. On 11 September 2011 11:52, Richard Dijkstra wrote: > That example

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Phyo Arkar
This is the same problem i am facing too. And i am looking into Qooxdoo for that. So far it is very promising in UI part of the code. Zero HTML , Zero CSS needed and code is quite simple (just the tutorial make it so complex , actual coding does not need to be that complex). Only problem i am hav

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Carl, Thank for the conceptual advise. Besides the examples is also a tutorial for pyjama - web2py available. Op 11 sep 2011, om 12:55 heeft Carl Roach het volgende geschreven: Or a brief pyjama-w2p cookbook recipe like: - create database - create webpage thru pyjama - connect ... using ajax

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Carl Roach
you might try asking for help here: http://www.linkedin.com/groups?gid=3634078&trk=hb_side_g otherwise... work through the example of ajax and then look at the examples folder of pyjamas for code that creates and manages UI. On 11 September 2011 12:39, Richard Dijkstra wrote: > Carl, > > Thank f

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Carl Roach
and when you need to take a break try this app written in Pyjamas... http://pymines.appspot.com/ On 11 September 2011 12:43, Carl Roach wrote: > you might try asking for help here: > http://www.linkedin.com/groups?gid=3634078&trk=hb_side_g > > otherwise... work through the example of ajax and th

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Carl, Thanx, we'll meet on linkedin. Richard Op 11 sep 2011, om 13:43 heeft Carl Roach het volgende geschreven: > you might try asking for help here: > http://www.linkedin.com/groups?gid=3634078&trk=hb_side_g > > otherwise... work through the example of ajax and then look at the examples >

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Alexei Vinidiktov
I don't have much experience with qooxdoo, but I've used it to build a web app that adds phonetic transcription to English texts www.phonetizer.com I use web2py on the back end and qooxdoo on the front end. I use a simple json-rpc web service to communicate between web2py and qooxdoo. I also hav

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Phyo Arkar
Anyone have experience with qooxdoo? It seems that only way web2py applicable with QooXDoo is as a JSON-RPC Server. Whole view logic will be only in Qooxdoo , cannot use any Template langauge of web2py i guess. If anyone have any expeirence , enlighten me. On 9/11/11, Phyo Arkar wrote: > Anyon

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Alexei Vinidiktov
Forgot you say that you can add todo items both by clicking tha "Add task" button and pressing the enter key when entering a task. You can delete todo items by clicking them in the todo list. On Sun, Sep 11, 2011 at 6:59 PM, Alexei Vinidiktov < alexei.vinidik...@gmail.com> wrote: > I don't have m

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Alexei Vinidiktov
Yes, that sounds right. The whole view logic resides within the qooxdoo app. On Sun, Sep 11, 2011 at 6:59 PM, Phyo Arkar wrote: > Anyone have experience with qooxdoo? > > It seems that only way web2py applicable with QooXDoo is as a JSON-RPC > Server. Whole view logic will be only in Qooxdoo , c

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Phyo Arkar
AH sorry i write this post before read the previous post. Yeah as it seems all view code needs to go into Qooxdoo , and web2py as Json RPC only. hmm.. so half of web2py potential will only be used, pyjamas todo tutorial i cannot register at all , ur mail sender seems to be down. it saids unable

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Alexei Vinidiktov
Oops, sorry. I'll see if I can fix it. It's been a long time since I touched the app last. On Sun, Sep 11, 2011 at 7:05 PM, Phyo Arkar wrote: > AH sorry i write this post before read the previous post. > > Yeah as it seems all view code needs to go into Qooxdoo , and web2py > as Json RPC only. hm

[web2py] web2py app with no CSS or javascript?

2011-09-11 Thread David Watson
I'm using the latest stable release of web2py. I need to produce an app that has no CSS or javascript. Is the quickest way to do this just stripping these things from layout.html or is there a setting somewhere that would cause the rendering to go plain-jane? Thanks, David

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Phyo Arkar
That page should have a CAPCHA . spambots will like to spam registration it till your mailserver down with registrations. One thing i am liking about qooxdoo is that really eliminate HTML CSS and Graphics skills needed to develop a desktop like web-app easily. Normally desiging web2py app needs a

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Alexei Vinidiktov
You are right about the CAPTCHA. The reason I'm not using it is that at the moment the site is only a playground where I'm getting familiar with web2py and qooxdoo and testing things out. Please try again. Registration should work this time. On Sun, Sep 11, 2011 at 7:20 PM, Phyo Arkar wrote: > T

Re: [web2py] Re: Computing a field from the value of another field

2011-09-11 Thread Chris Rowson
Thank you everyone for the advice. Chris On Sep 11, 2011 4:47 AM, "pbreit" wrote: > Good point.

[web2py] web2py.com is down

2011-09-11 Thread Anthony
http://www.downforeveryoneorjustme.com/web2py.com

[web2py] Howto customize DB(or Form) Validator in web2py?

2011-09-11 Thread minhcd
Here are my 2 tables defintion: db.define_table('question', Field('category_id',db.category), Field('content'), Field('number_of_options','integer'), Field('has_options_detail','boolean',default=False)) ## Has or not has detail for each option db.define_table('options_detail', ##

[web2py] Re: Howto customize DB(or Form) Validator in web2py?

2011-09-11 Thread Anthony
This should do it: db.options_detail.question_id.requires = IS_IN_DB( db(db.question.has_options_detail==True), 'question.id') Note, the IS_IN_DB validator can take a DAL Set object as the first argument, which enables you to filter the referenced table based on any criteria. (You cou

[web2py] Re: web2py app with no CSS or javascript?

2011-09-11 Thread Anthony
I don't think there's any setting. You could strip them out of layout.html, or create your own layout.html. On Sunday, September 11, 2011 8:16:15 AM UTC-4, David Watson wrote: > > I'm using the latest stable release of web2py. I need to produce an > app that has no CSS or javascript. Is the quic

[web2py] Re: Use the bundled python interpreter

2011-09-11 Thread Anthony
I don't know how it works on the Mac, but on Windows, you start the binary version at the command line by entering 'web2py.exe' (can also pass command line options). Maybe it's the same on Mac -- i.e., just enter 'web2py.app'? On Sunday, September 11, 2011 6:32:46 AM UTC-4, Christian wrote: > >

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Anthony, Do you (and Massimo, I belief you are working closely together) have experience with Pyjama and web2py? I have only found a posting in 2009 when it all started. Richard D. Op 11 sep 2011, om 13:50 heeft Richard Dijkstra het volgende geschreven: > Carl, > > Thanx, we'll meet on l

Re: [web2py] Re: web2py app with no CSS or javascript?

2011-09-11 Thread Jonathan Lundell
On Sep 11, 2011, at 6:48 AM, Anthony wrote: > I don't think there's any setting. You could strip them out of layout.html, > or create your own layout.html. I believe that certain aspects of the interface depend on JavaScript, like anything requiring a second button (delete?), the delete confirm

Re: [web2py] Re: Use the bundled python interpreter

2011-09-11 Thread Jonathan Lundell
On Sep 11, 2011, at 6:53 AM, Anthony wrote: > I don't know how it works on the Mac, but on Windows, you start the binary > version at the command line by entering 'web2py.exe' (can also pass command > line options). Maybe it's the same on Mac -- i.e., just enter 'web2py.app'? In OS X use the co

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Bruno Rocha
I use Wijmo. www.wijmo.com http://zerp.ly/rochacbruno Em 10/09/2011 14:39, "apple" escreveu: > The two best things about web2py: > Ability to achieve a lot with a very small number of lines of > code > Being able to use python in the view templates > > The worst thing: > Finding that 2/3 of the

Re: [web2py] Re: Crud.update Multiple

2011-09-11 Thread Richard Vézina
I made this a wild ago, but never go any further... Here the thread... http://groups.google.com/group/web2py/browse_thread/thread/50af0d67554c94d9/dfc30ce6fb4455eb?pli=1 Richard On Sun, Sep 11, 2011 at 3:55 AM, Serbitar wrote: > Sure, I know that. But I am explicitly looking for the conveni

[web2py] Re: web2py.com is down

2011-09-11 Thread Massimo Di Pierro
Yes it is down. I am trying to restart but the console form the host does not allow me to. It allowed me to shut it down but not to reboot. I tried restore an image and I get the same issue. It seems a problem is with the datacenter. I am out of town today so I cannot check very frequently. I trust

Re: [web2py] Re: web2py.com is down

2011-09-11 Thread Phyo Arkar
what hosting You use? VPS ? On 9/11/11, Massimo Di Pierro wrote: > Yes it is down. I am trying to restart but the console form the host > does not allow me to. It allowed me to shut it down but not to reboot. > I tried restore an image and I get the same issue. It seems a problem > is with the da

[web2py] Re: web2py.com is down

2011-09-11 Thread Massimo Di Pierro
Yes. New data point... the host is now "running a task". Not sure if the restore or the restart... On Sep 11, 10:45 am, Phyo Arkar wrote: > what hosting You use? VPS ? > > On 9/11/11, Massimo Di Pierro wrote: > > > > > > > > > Yes it is down. I am trying to restart but the console form the host

Re: [web2py]Web2py MVC and Qooxdoo

2011-09-11 Thread Phyo Arkar
that never runs , giving me error in json response , too bad. And the javascript alone really have 600KB ? is that compiled with source-all ? On 9/11/11, Alexei Vinidiktov wrote: > You are right about the CAPTCHA. The reason I'm not using it is that at the > moment the site is only a playground

[web2py] Re: web2py.com is down

2011-09-11 Thread Valter Foresto
http://www.web2py.com/ is up and running.

Re: [web2py] Re: web2py.com is down

2011-09-11 Thread Phyo Arkar
confirmed , its back yay! was it coz bossie award , too many hits flooded and downed? On 9/12/11, Valter Foresto wrote: > http://www.web2py.com/ is up and running.

Re: [web2py] Re: web2py.com is down

2011-09-11 Thread Jonathan Lundell
On Sep 11, 2011, at 10:38 AM, Phyo Arkar wrote: > was it coz bossie award , too many hits flooded and downed? I'd guess that it's up to us to make use of the Bossie to drive traffic to the site. I wonder how many potential users read InfoWorld? The biggest utility of the award is that it helps

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Anthony
I don't have experience with Pyjamas, but there is this section in the book: http://web2py.com/book/default/chapter/09#JSONRPC-and-Pyjamas Anthony On Sunday, September 11, 2011 10:03:43 AM UTC-4, Richard wrote: > > Anthony, > > Do you (and Massimo, I belief you are working closely together) have

[web2py] web2ruby possible?

2011-09-11 Thread António Ramos
hello why not translate web2py to ruby? is this a good question or what?

[web2py] Re: confused about permissions

2011-09-11 Thread monotasker
Thanks Anthony. I notice it's been a few months since that issue was posted. I realize that changes can't happen overnight, but is there any sense of when a fix might be released? At the moment this basically means the (simple and elegant) crud authorization is useless to me. (I've never learned ho

[web2py] Re: confused about permissions

2011-09-11 Thread Anthony
I don't know when that will be fixed (up to Massimo). Quick simple workaround -- somewhere in a model file after the last table definition (or even in the appadmin.py controller): auth.settings.table_permission.table_name.requires=IS_EMPTY_OR(IS_IN_SET(db.tables)) That will update the validator

[web2py] Error running on Ubuntu 10.10 using source

2011-09-11 Thread aXe
Hey guys i started working on my new ubuntu10.10 and as soon as i start the administrative interface i get an error saying - Traceback (most recent call last): File "gluon/restricted.py", line 192, in restricted File "C:/_dev/temp/web2py/applications/welcome/models/db.py", line 18, in File

Re: [web2py] what other tools do you use with web2py

2011-09-11 Thread Richard Dijkstra
Thanx, for the tip; we will update you on our progress. Op 11 sep 2011, om 20:21 heeft Anthony het volgende geschreven: > http://web2py.com/book/default/chapter/09#JSONRPC-and-Pyjamas

[web2py] Issues with TAG() encoding and XML().flatten()

2011-09-11 Thread jotbe
Hi List, I just started my first Web2Py sample project (the Wiki from the book) and got it even managed to integrate the HTML5 editor Aloha: http://aloha-editor.org/ My pages should use Markmin instead of HTML and therefore I am converting the HTML to Markmin using TAG().flatten() and markmin_ser

[web2py] Re: web2ruby possible?

2011-09-11 Thread David Marko
Or to node.js :-)

Re: [web2py] web2ruby possible?

2011-09-11 Thread Jonathan Lundell
On Sep 11, 2011, at 11:21 AM, António Ramos wrote: > hello > > why not translate web2py to ruby? > > is this a good question or what? > Go for it.

[web2py] Re: Making slides with web2py and markmin

2011-09-11 Thread guruyaya
Ummm, why are you using [[ for links and images instead of just one [ ? It doesn't work for me, when I user the [[ syntax. On Sep 11, 1:36 am, Massimo Di Pierro wrote: > No. It makes the view. You just return it. > > On Sep 10, 3:53 pm, António Ramos wrote: > > > > > > > > > Humm, dont i need a

[web2py] Re: Ajax Call -Determining which button was pressed

2011-09-11 Thread Cliff
Assuming you build your buttons in the controller, you could make this: Then in your javascript, after document.ready, something like this: jQuery('.button').click(function(){ //any browser-side processing code would go here val value=this.id; jQuery('#tmp').val(value); ajax(

[web2py] jqueryui testing Sortable

2011-09-11 Thread António Ramos
hello i´m testing jqueryui examples -> Sortable http://jqueryui.com/demos/sortable/ but it does not work *this is my controller* def test(): return dict() *my view* {{extend 'layout.html'}} #sortable { list-style-type: none; margin: 0; padding: 0; width: 60%; } #sortable li { margin: 0

Re: [web2py] web2ruby possible?

2011-09-11 Thread Bruno Rocha
I am more interested in some web2go http://golang.org/

Re: [web2py] jqueryui testing Sortable

2011-09-11 Thread Bruno Rocha
Have you included jqueryui JavaScript and Css files? 2011/9/11 António Ramos > hello > i´m testing jqueryui examples -> Sortable > > > http://jqueryui.com/demos/sortable/ > > but it does not work > > > *this is my controller* > def test(): > return dict() > > *my view* > > > {{extend 'layout

Re: [web2py] jqueryui testing Sortable

2011-09-11 Thread Bruno Rocha
{{extend 'layout.html'}} *http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/ui-lightness/jquery-ui.css"; type="text/css" media="all" /> http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"; type="text/javascript">* #sortable { list-style-type: none; margin: 0; padding:

Re: [web2py] jqueryui testing Sortable

2011-09-11 Thread Bruno Rocha
Also, have you seen this: http://dev.s-cubism.com/plugin_tablepermuter or this: http://web2py.com/plugins/default/sortable

Re: [web2py] jqueryui testing Sortable

2011-09-11 Thread António Ramos
I tought that jqueryui was includes in web2py. Thank you 2011/9/11 Bruno Rocha > Also, have you seen this: http://dev.s-cubism.com/plugin_tablepermuter > > or this: http://web2py.com/plugins/default/sortable >

[web2py] set current languages error [open]

2011-09-11 Thread weheh
Why when I set current languages: T.set_current_languages('en','en-en') do I get this ticket when I try to go to appadmin/index? Traceback (most recent call last): File "N:\web2py\gluon\restricted.py", line 192, in restricted exec ccode in environment File "N:/web2py/applications/YAKiToM

Re: [web2py] web2ruby possible?

2011-09-11 Thread Jonathan Lundell
On Sep 11, 2011, at 1:35 PM, Bruno Rocha wrote: > I am more interested in some web2go http://golang.org/ You'd have to work the compiler into the app-development cycle. But I don't think Go is sufficiently dynamic.

[web2py] Re: web2ruby possible?

2011-09-11 Thread dustin.b
1+ vote for node.js ;) On 11 Sep., 21:14, David Marko wrote: > Or to node.js :-)

[web2py] How to create a many-to-one (foreign key) relation to a table not yet defined?

2011-09-11 Thread Luca
I have two tables, let's call them pages and revisions. Every page has many revisions, so every revision contains the page as a foreign key. The page has also one special revision which is the "live" one. I am doing (cutting out the unnecessary code): db.define_table('page', Field('live_

[web2py] Re: How to create a many-to-one (foreign key) relation to a table not yet defined?

2011-09-11 Thread Luca
Oh, I think I see; I should do the first as Field('live_revision', 'reference revision')

Re: [web2py] Re: error in import pyserial

2011-09-11 Thread Fabiano Faver
I'm dealing whit this exact issue now, i cant import pyserial. same thing above, its not finding wintypes. and it seems that some manage to import it. I'm willing to control a external device with web2py through serial port.

[web2py] Re: web2py.com is down

2011-09-11 Thread Massimo Di Pierro
Because I was in a hurry and had limited connectivity I did restore a september 4 backup. (which is good because I never tried a VPS.net restore and I am glad worked out of the box). So I do not have the logs of the last few days. I run thin on ram and that may be the problem. I will try get more

[web2py] Re: Error running on Ubuntu 10.10 using source

2011-09-11 Thread Massimo Di Pierro
What's in your db.py? On Sep 11, 12:23 pm, aXe wrote: > Hey guys i started working on my new ubuntu10.10 and as soon as i > start the administrative interface i get an error saying - > > Traceback (most recent call last): >   File "gluon/restricted.py", line 192, in restricted >   File "C:/_dev/t

[web2py] Re: Issues with TAG() encoding and XML().flatten()

2011-09-11 Thread Massimo Di Pierro
Are you sure your input is UTF8? The web2py markmin_serializer is in gluon/html.py and it is relatively straightforward. Nothing can really go bad there. I suspect your input has not been parsed at all into the web2py object representation. the parsing is done by TAG(input) (not by XML(input)) and

[web2py] Re: Making slides with web2py and markmin

2011-09-11 Thread Massimo Di Pierro
markmin requires [[...]] not [...] On Sep 11, 2:29 pm, guruyaya wrote: > Ummm, why are you using [[ for links and images instead of just one > [ ? It doesn't work for me, when I user the [[ syntax. > > On Sep 11, 1:36 am, Massimo Di Pierro > wrote: > > > > > > > > > No. It makes the view. You ju

[web2py] Re: set current languages error [open]

2011-09-11 Thread Massimo Di Pierro
pushing a fix in trunk, please check it in 5 mins. On Sep 11, 4:06 pm, weheh wrote: > Why when I set current languages: > > T.set_current_languages('en','en-en') > > do I get this ticket when I try to go to appadmin/index? > > Traceback (most recent call last): >   File "N:\web2py\gluon\restrict

[web2py] Re: web2ruby possible?

2011-09-11 Thread Massimo Di Pierro
I would prefer coffeescript on top of node.js On Sep 11, 4:40 pm, "dustin.b" wrote: > 1+ vote for node.js ;) > > On 11 Sep., 21:14, David Marko wrote: > > > > > > > > > Or to node.js :-)

Re: [web2py] Instant Admin third-party security audit?

2011-09-11 Thread Richard Vézina
Hello Eric, It seems that Massimo as already kind of reviewed it : http://groups.google.com/group/web2py/browse_thread/thread/52bd952c11127462/650cb90d4d4ab680?hide_quotes=no&pli=1 It seems to be planned to include/replace the actual admin... RIchard On Sat, Sep 10, 2011 at 5:51 PM, Eric wrote

[web2py] Re: error in import pyserial

2011-09-11 Thread Massimo Di Pierro
If you are running from source you may need to install Mark Hammond win32 extensions. On Sep 11, 6:27 pm, Fabiano Faver wrote: > I'm dealing whit this exact issue now, i cant import pyserial. same thing > above, its not finding wintypes. and it seems that some manage to import it. > I'm willing t

[web2py] Re: Instant Admin third-party security audit?

2011-09-11 Thread Massimo Di Pierro
I have not reviewed it for security, although I did not find anything suspicious either. On Sep 11, 7:43 pm, Richard Vézina wrote: > Hello Eric, > > It seems that Massimo as already kind of reviewed it > :http://groups.google.com/group/web2py/browse_thread/thread/52bd952c11... > > It seems to be

[web2py] Re: confused about permissions

2011-09-11 Thread Anthony
OK, looks like this has now been fixed in trunk: http://code.google.com/p/web2py/source/detail?r=dc83425d850190b0306cf59285178f106b1ae9d3 On Sunday, September 11, 2011 2:39:17 PM UTC-4, Anthony wrote: > > I don't know when that will be fixed (up to Massimo). Quick simple > workaround -- somewh

[web2py] Re: error in import pyserial

2011-09-11 Thread Fabiano Faver
i'm using admin interface. just tried a 'import serial' and copied pyserial from python site-packages to web2py site-packages

[web2py] Re: Crud.update Multiple

2011-09-11 Thread weheh
I don't think this can be done with crud, but I'm always ready and expecting to be amazed by some hidden web2py secret. In theory, I don't see why one shouldn't be able to give crud a list of records to be updated and then have crud build the form with multiple record entries. This could be mighty

[web2py] Re: Crud.update Multiple

2011-09-11 Thread Massimo Di Pierro
rows = db(yourquery).select(mytable.id, mytable.myfield) form = SQLFORM.factory(*[Field('name_%s'%r.id, default=r.myfield) for r in rows]) if form.process().accepted: for key,value in form.vars.items(): db(mytable.id==key[5:]).update(myfield = value) form.process().accepted is the sam

[web2py] Re: error in import pyserial

2011-09-11 Thread Massimo Di Pierro
If you are using the binary for windows than I do not know what is wrong. If you are suing the source distribution of web2py then you may be missing the win32 extensions and you need to install those separately. I never understood why they do not ship with Python. On Sep 11, 8:57 pm, Fabiano Faver

[web2py] physics examples in web2py + processing.js

2011-09-11 Thread Massimo Di Pierro
Not really server side intensive, mostly client side but fun project. http://tests.web2py.com/physics2d

[web2py] How to flash a message after a callback

2011-09-11 Thread Noel Villamor
I have a button which does the following callback: ajax('{{=URL('callback')}}',['btn1'],':eval');" Then I have the following callback function in my controller: def callback(): db(db.tbl.id==100).update(data='sampledata') jquery = ??? return jquery I can use jquery = "alert('Lame ta

Re: [web2py] How to flash a message after a callback

2011-09-11 Thread Jonathan Lundell
On Sep 11, 2011, at 7:57 PM, Noel Villamor wrote: > I have a button which does the following callback: > > ajax('{{=URL('callback')}}',['btn1'],':eval');" > > Then I have the following callback function in my controller: > > def callback(): >db(db.tbl.id==100).update(data='sampledata') >

[web2py] Re: How to flash a message after a callback

2011-09-11 Thread Anthony
On Sunday, September 11, 2011 10:57:27 PM UTC-4, Noel Villamor wrote: > > I have a button which does the following callback: > > ajax('{{=URL('callback')}}',['btn1'],':eval');" > > Then I have the following callback function in my controller: > > def callback(): > db(db.tbl.id==100).updat

[web2py] Trunk - rev 894137606632 breaks web2py!

2011-09-11 Thread Brian M
Massimo, The change made to gluon/compileapp.py in rev 894137606632appears to breakboth web2py under worth Windows 7 and Ubuntu 11.04. The failure is such that a ticket is immediately created and when yo

[web2py] question about loading a component during a callback

2011-09-11 Thread weheh
I have a component. The controller is standard: # controller def index(): blah blah form=crud(db.mytable,record_id) return dict(form=form) # view index.html ... LOAD("index","index.load",ajax=True) # view index.load {{=show_form(form)}} # model def show_form(form): return DI

[web2py] Re: How to flash a message after a callback

2011-09-11 Thread Noel Villamor
Thank you guys!

[web2py] Re: How to flash a message after a callback

2011-09-11 Thread Noel Villamor
Book states: Code in models, views and controllers is enclosed in web2py code that looks like this: try: execute models, controller function and view except: rollback all connections log the traceback send a ticket to the visitor else: commit all connections save coo

[web2py] Re: physics examples in web2py + processing.js

2011-09-11 Thread Noel Villamor
Massimo, I feel like a toddler in a playpen right now. Too many toys I can't decide which one to play! Nice and fun projects you have there. On Sep 12, 2:56 pm, Massimo Di Pierro wrote: > Not really server side intensive, mostly client side but fun project. > > http://tests.web2py.com/physics2d

Re: [web2py] Re: physics examples in web2py + processing.js

2011-09-11 Thread Ivica Kralj
Cool The power of web2py and MDP :) On 12 September 2011 06:12, Noel Villamor wrote: > > Massimo, I feel like a toddler in a playpen right now. Too many toys I > can't decide which one to play! > > Nice and fun projects you have there. > > On Sep 12, 2:56 pm, Massimo Di Pierro > wrote: >

[web2py] Re: web2ruby possible?

2011-09-11 Thread Rahul
Hey is it possible to earn the speed of CYTHON compiled web2py applications in web2py in any way? Not sure if it is the right place to ask this question.. :-P Rahul On Sep 11, 8:22 pm, Massimo Di Pierro wrote: > I would prefer coffeescript on top of node.js > > On Sep 11, 4:40 pm, "dustin.b" wr