[web2py] How to join data from several tables into one jqgrid?

2010-11-09 Thread Johann Spies
How do I provide a complex query which selects data from varius tables to jqgrid? Regards Johann --  May grace and peace be yours in abundance through the full knowledge of God and of Jesus our Lord!  His divine power has given us everything we need for life and godliness through the full knowl

Re: [web2py] Re: MARKMIN HELPER

2010-11-09 Thread Bruno Rocha
I am finishing a new project today, which every content is wrote in markmin http://natalanimal.com.br/ This is a site of an animal protection association, which aims to raise donations and sponsors to animals at Christmas. I made it based on e-store, I am almost finishing some details. Thank you

[web2py] Re: MARKMIN HELPER

2010-11-09 Thread mdipierro
done On Nov 9, 11:21 pm, Bruno Rocha wrote: > Minor suggestion for MARKMIN() > > If I am fetching the Markmin content from database, and database field is > empty (None), MARKMIN raises an error. > > I am solving this problem with : > > MARKMIN(myfield or ' ') > > But, I think MARKMIN can itself

[web2py] ssl and http web2py command line issues

2010-11-09 Thread Dave Johnson
If you start up web2py with key/cert for SSL, web2py runs in SSL mode. In the startup message it says you can connect via http, but if you attempt to connect via plain http, you will get a "Bad Request" in your browser. [d...@thinkbox web2py]$ python web2py.py -c mycert.pem -k mycert.pem -i 192

[web2py] Re: Selecting from dropdown using Ajax

2010-11-09 Thread Alex
You are definitely correct. I mis-read what you had, but what I put up, you can still use as well if you need to pass args via the URL. In any case, if I am understanding this correctly, it seems to be more of a problem of getting the selected value of the option, correct? There are probably sev

[web2py] MARKMIN HELPER

2010-11-09 Thread Bruno Rocha
Minor suggestion for MARKMIN() If I am fetching the Markmin content from database, and database field is empty (None), MARKMIN raises an error. I am solving this problem with : MARKMIN(myfield or ' ') But, I think MARKMIN can itself resolve what to do if the received arg is NoneType) File "/

Re: [web2py] Re: Error routing

2010-11-09 Thread Jonathan Lundell
On Nov 9, 2010, at 9:06 PM, Ruiwen Chua wrote: > > Is there no way around it? Or..? > > I'd just prefer my URLs to be clean. The users dont' really need to > see all the additional information. You might try setting error_handler instead of routes_onerror. > > //Ruiwen > > On Nov 10, 11:36 am

[web2py] Re: Error routing

2010-11-09 Thread Ruiwen Chua
Is there no way around it? Or..? I'd just prefer my URLs to be clean. The users dont' really need to see all the additional information. //Ruiwen On Nov 10, 11:36 am, mdipierro wrote: > No. Why? > > On Nov 9, 5:16 am, Ruiwen Chua wrote: > > > > > > > > > Hi all, > > > I'm trying to route error

[web2py] Re: Not getting a result from query

2010-11-09 Thread Alex
Are you sure there are records coming back? Try doing a "print records" and make sure data is coming back. Sounds like it just may be an empty result set from the query. On Nov 9, 6:50 pm, Lorin Rivers wrote: > I think I'm close: > given this controller > > my_macaddr = db4().select(db4.data_ta

[web2py] Re: Using the results of a select/option in a query

2010-11-09 Thread Alex
You should be able to access the variables passed by your form through: request.vars ex. Given a form with this control: You can access this in the controller through: request.vars.chatText On Nov 9, 6:04 pm, Lorin Rivers wrote: > OK, I answered my own question from before. > > I now have i

[web2py] Re: Confirmation message in SQLFORM

2010-11-09 Thread CesarBustios
Oh! I think i have to read the whole book before asking questions xD Thanks man! On Nov 9, 9:47 pm, DenesL wrote: > Hi Cesar, > > that is the default > behaviourhttp://web2py.com/book/default/chapter/10#Confirmation-on-Delete > > On Nov 9, 8:41 pm, CesarBustios wrote: > > > > > > > > > Hi, aft

[web2py] Re: Error routing

2010-11-09 Thread mdipierro
No. Why? On Nov 9, 5:16 am, Ruiwen Chua wrote: > Hi all, > > I'm trying to route errors like 400, 403 and 404 to nice, clear URLs > like '/error/', '/forbidden/' and '/whoops/'. > > Unfortunately, the Web2Py Book's section on error routing > (http://www.web2py.com/book/default/chapter/04?search=

[web2py] Re: Pyodbc error with web2py under Apache and mod_wsgi

2010-11-09 Thread mdipierro
you may have different python versions installed. Check the one used by modwsgi On Nov 9, 3:02 pm, azarkowsky wrote: > Hi, > > I'm relatively new to web2py and am attempting to set up my production > environment for the first time.  I'm running Apache2.2 with mod_wsgi, > python 2.7, & web2py 1.88

[web2py] Re: running web2py on Android?

2010-11-09 Thread mdipierro
http://code.google.com/p/android-scripting/issues/detail?id=276 On Nov 9, 6:18 pm, pallav wrote: > I checked and the line was already commented out. > > I don't know how to run web2py with the switch -N because I have to > run it from inside the interactive python shell by typing import > web2py.

[web2py] Re: Error routing

2010-11-09 Thread Ruiwen Chua
On Nov 9, 7:16 pm, Ruiwen Chua wrote: > Hi all, > > I'm trying to route errors like 400, 403 and 404 to nice, clear URLs > like '/error/', '/forbidden/' and '/whoops/'. > > Unfortunately, the Web2Py Book's section on error routing > (http://www.web2py.com/book/default/chapter/04?search=error#Ro

[web2py] Re: Confirmation message in SQLFORM

2010-11-09 Thread DenesL
Hi Cesar, that is the default behaviour http://web2py.com/book/default/chapter/10#Confirmation-on-Delete On Nov 9, 8:41 pm, CesarBustios wrote: > Hi, after clicking the submit button (when deleting), is there a way > to send a confirmation message like saying "Are you sure man, really > really

[web2py] Upload a file to db and store all metadata to separated db fields

2010-11-09 Thread Alexandre Augusto
Hi Massimo and Cesar. First of all another one zillion thxz to the Extremely Amazing Framework ever created ! I have a sittuation that is not the same as Cesar: http://groups.google.com/group/web2py/browse_thread/thread/c83cd69dee02c9b1/065c44106598d69b?lnk=gst&q=upload+#065c44106598d69b but some

[web2py] Pyodbc error with web2py under Apache and mod_wsgi

2010-11-09 Thread azarkowsky
Hi, I'm relatively new to web2py and am attempting to set up my production environment for the first time. I'm running Apache2.2 with mod_wsgi, python 2.7, & web2py 1.88.2 on Win XP SP3. If I run web2py without Apache by running: 'python web2py.py -a "" -i 127.0.0.1 -p 8000' I can access both m

[web2py] Re: Selecting from dropdown using Ajax

2010-11-09 Thread oneroler
Alex, Thanks. I thought based on the book that the 2nd argument of ajax was passing the values to request.vars.variable. I pasted some of the code from the book below for reference (http://web2py.com/book/default/ chapter/10?search=ajax#The-ajax-Function). Based on this I originally had the cod

[web2py] Confirmation message in SQLFORM

2010-11-09 Thread CesarBustios
Hi, after clicking the submit button (when deleting), is there a way to send a confirmation message like saying "Are you sure man, really really sure???" or something like that? Thanks!

[web2py] Re: twilio context ($100 prize)

2010-11-09 Thread Richard
nice service, and a cost-effective way to get publicity. On Nov 10, 12:50 am, mdipierro wrote: > http://blog.twilio.com/2010/11/attention-pythonistas-twilio-has-a-con...

[web2py] Not getting a result from query

2010-11-09 Thread Lorin Rivers
I think I'm close: given this controller my_macaddr = db4().select(db4.data_table.MacAddr, distinct=True) def display_form(): form = FORM(TR("Select a MAC Address :", SELECT(_name='MacAddrSelect', *[OPTION(my_macaddr[i].MacAddr, _value=str(my_macaddr[i].MacAddr)) for i in range(len(my_ma

[web2py] Re: running web2py on Android?

2010-11-09 Thread pallav
I checked and the line was already commented out. I don't know how to run web2py with the switch -N because I have to run it from inside the interactive python shell by typing import web2py.web2py and hitting enter. What does the switch -N do? I can try to simulate the same effect by modifying th

[web2py] Using the results of a select/option in a query

2010-11-09 Thread Lorin Rivers
OK, I answered my own question from before. I now have in my controller: my_macaddr = db4().select(db4.data_table.MacAddr, distinct=True) def display_form(): form = FORM(TR("Select a MAC Address :", SELECT(_name='MacAddrSelect', *[OPTION(my_macaddr[i].MacAddr, _value=str(my_macaddr[i].Mac

Re: [web2py] Re: is there a "insert or replace" for the DAL

2010-11-09 Thread Stef Mientki
thanks Massimo, works great ! cheers, Stef On 09-11-2010 20:12, mdipierro wrote: > No but you can do > > db(condition).update(**d) or db.table.insert(**d) > On Nov 9, 1:00 pm, Stef Mientki wrote: >> hello, >> >> I wonder if there is a "insert or replace" or another mechanism, when insert >> fail

Re: [web2py] unicode problem in DAL

2010-11-09 Thread Stef Mientki
On 05-11-2010 23:26, Tomeu Roig wrote: > > Hi, before to make the insert, you need change the string ascii to utf8, > > Newvalue=value.encode(utf-8) > first of all a small type, quotes around utf-8 needed. Newvalue=value.encode( ' utf-8' ) But then it still doesn't work in my situation. I

[web2py] Re: minimal URL rewrite

2010-11-09 Thread Wikus van de Merwe
You can define all the functions of the default controller that you want to match: FUNCTIONS = ["A", "B", "C"] routes_in = ( ('/', '/myapplic/default/index'), ('/(%s)' % "|".join(FUNCTIONS), r'/myapplic/default/\1')) routes_out = ( ('/myapplic/default/index', '/'), ('/myapplic/default/(%s)' % "|

[web2py] Re: making layout plugin

2010-11-09 Thread cjrh
On Nov 9, 3:52 pm, mdipierro wrote: > This could be another typos in the book. > > layout.html should be > > {{extend 'plugin_layout_name/layout.html'}} > {{include}} Fixed in the book.

[web2py] Re: many-to-many, use list:reference or separate table?

2010-11-09 Thread mdipierro
Speedwise, you should use many2many if you plan to search the referee by the refereed. If you only need the refereed after you already have the referee you can use list:reference. If you are on GAE list:reference is better because native and GAe has no joins. On Nov 9, 2:43 pm, Carlos wrote: > Hi

[web2py] Re: dynamic representation for crud.select / SQLTABLE

2010-11-09 Thread mdipierro
Right. I would not use crud.select(table,query) but simply rows=db(query).select() On Nov 9, 2:38 pm, Carlos wrote: > Hi Massimo, > > Thanks, but do you mean to loop through the rows after calling > crud.select (which returns a list a of dictionaries)?. > > Or what do you mean by 'build your row'

[web2py] many-to-many, use list:reference or separate table?

2010-11-09 Thread Carlos
Hi all, I am wondering, with respect to many-to-many relationships, is it better to use "list:reference" or a separate table (with foreign keys)?. I refer to 'simple' many-to-many where no extra attributes need to be stored (otherwise the separate table is the only choice). Thanks, Carlos

[web2py] Re: dynamic representation for crud.select / SQLTABLE

2010-11-09 Thread Carlos
Hi Massimo, Thanks, but do you mean to loop through the rows after calling crud.select (which returns a list a of dictionaries)?. Or what do you mean by 'build your row' in each loop?. Is it possible to create a dummy/transient table field in order to assign the required dynamic value during thi

[web2py] Re: ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2010-11-09 Thread mdipierro
Has anybody else here had a similar problem? massimo On Nov 9, 11:29 am, David Zejda wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Hi :) > > E.g. now the exception was raised by the web2py internal db > initialization routine: > > 28: db = SQLDB('mysql://myus:myp...@localhost:330h

[web2py] Re: "UnicodeDecodeError: 'ascii' codec can't decode byte ...

2010-11-09 Thread mdipierro
As a debug check. I'd like to see what you gate if you "print data" before the update. Just in case what you put it in it is not what you get. On Nov 9, 1:25 pm, Omri wrote: > in the qooxdoo application, I define data as > data = {name: "Prüfung", textfield : "Etwas mit umlaut- üäüöö"} > and then

Re: [web2py] Re: "UnicodeDecodeError: 'ascii' codec can't decode byte ...

2010-11-09 Thread Omri
in the qooxdoo application, I define data as data = {name: "Prüfung", textfield : "Etwas mit umlaut- üäüöö"} and then send it through an asynchronous call (using qx.io.remote.Rpc.callAsync) On Tue, Nov 9, 2010 at 19:42, mdipierro wrote: > can you print data? What is in data? > > On Nov 9, 12:2

[web2py] Re: IMG helper and _width

2010-11-09 Thread mdipierro
{{=IMG(_src=URL(r=request,a='base',c='static',f='base/card/logos/' + logo[0].link) _width="228px")}} should be {{=IMG(_src=URL('static','base/card/logos/%s' % slogo[0].link), _width="228px")}} , was missing On Nov 9, 1:07 pm, annet wrote: > I get an error on the following code: > > {{=IMG(_src=

[web2py] Re: is there a "insert or replace" for the DAL

2010-11-09 Thread mdipierro
No but you can do db(condition).update(**d) or db.table.insert(**d) On Nov 9, 1:00 pm, Stef Mientki wrote: > hello, > > I wonder if there is a "insert or replace" or another mechanism, when insert > fails ? > > thanks, > Stef Mientki

[web2py] IMG helper and _width

2010-11-09 Thread annet
I get an error on the following code: {{=IMG(_src=URL(r=request,a='base',c='static',f='base/card/logos/' + logo[0].link) _width="228px")}} Traceback (most recent call last): File "/Library/Python/2.5/site-packages/web2py_1.87.3/gluon/ restricted.py", line 186, in restricted ccode = compile

[web2py] is there a "insert or replace" for the DAL

2010-11-09 Thread Stef Mientki
hello, I wonder if there is a "insert or replace" or another mechanism, when insert fails ? thanks, Stef Mientki

[web2py] Re: dynamic representation for crud.select / SQLTABLE

2010-11-09 Thread mdipierro
Sorry there is not. You may better off looping {{for row in rows:}} ... build your row ... {{pass}} On Nov 9, 12:37 pm, Carlos wrote: > Hi all, > > I'm using crud.select / SQLTABLE, and I need to show one column with > links/actions generated dynamically based on conditions found for each > row

[web2py] Re: "UnicodeDecodeError: 'ascii' codec can't decode byte ...

2010-11-09 Thread mdipierro
can you print data? What is in data? On Nov 9, 12:20 pm, Omri wrote: > I did some tryouts and it seems that the only problem is with the > update method, and then only when called through service.jsonrpc. I > created the following model: > > db.define_table("debug_stuff", >         Field("name",

[web2py] Re: Windows binary distribution

2010-11-09 Thread mdipierro
true On Nov 9, 12:19 pm, Branko Vukelic wrote: > On Tue, Nov 9, 2010 at 4:12 PM, Bruno Rocha wrote: > > I Just included PySerial and another modules to access peripherals on host > > machine. > > I just take web2py, include my app folder and the modules/binaries I needed, > > I dont think it bro

[web2py] Re: Command-line support

2010-11-09 Thread mdipierro
Many things you can already do: On Nov 9, 11:40 am, blackthorne wrote: > I think it would be important to have it all, but at least... > generate model > sync model > create application (skeleton) mkdir applications/myapp cp -r applications/welcome/* application/myapp > install packet applicati

[web2py] dynamic representation for crud.select / SQLTABLE

2010-11-09 Thread Carlos
Hi all, I'm using crud.select / SQLTABLE, and I need to show one column with links/actions generated dynamically based on conditions found for each row data. I believe I can not use 'represent' because that's linked to a single field only (lambda field: ...). Is there something like "lambda row:

[web2py] Re: Manipulate Rows Object and/or SQLTABLE

2010-11-09 Thread mdipierro
I see two options: 1) use db.table.field.represent = lambda value: DIV(value) and give any representation you want to the field value. 2) If this does not work make your own SQLTABLE helper: def mytable(rows, cols): return TABLE(*[TR(*[TD(row[c]) for c in cols]) for row in rows) On

[web2py] Re: "UnicodeDecodeError: 'ascii' codec can't decode byte ...

2010-11-09 Thread Omri
I did some tryouts and it seems that the only problem is with the update method, and then only when called through service.jsonrpc. I created the following model: db.define_table("debug_stuff", Field("name", length=100), Field("textfield", "text"), format="%(name)s") and d

Re: [web2py] Re: Windows binary distribution

2010-11-09 Thread Branko Vukelic
On Tue, Nov 9, 2010 at 4:12 PM, Bruno Rocha wrote: > I Just included PySerial and another modules to access peripherals on host > machine. > I just take web2py, include my app folder and the modules/binaries I needed, > I dont think it broke any license. or I am wrong? You can't break GPL if you

[web2py] Re: Command-line support

2010-11-09 Thread blackthorne
I think it would be important to have it all, but at least... generate model sync model create application (skeleton) install packet application compile application pack application uninstall application update language files change admin password upload (from url) & install packed application Sec

[web2py] Manipulate Rows Object and/or SQLTABLE

2010-11-09 Thread villas
I want to customize the result of SQLTABLE so that it can make me a nice table without lines and lines of code in my view file. To achieve that, I need for example to: 1) Add columns to hold icons and links and extra stuff. 2) Customize the rows, e.g. links which depend on content, different i

Re: [web2py] Re: ProgrammingError: (2014, "Commands out of sync; you can't run this command now")

2010-11-09 Thread David Zejda
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi :) E.g. now the exception was raised by the web2py internal db initialization routine: 28: db = SQLDB('mysql://myus:myp...@localhost:330h6/mydb', pool_size=10) Traceback (most recent call last): File "/opt/web2py/gluon/restricted.py", line 188,

[web2py] Can´t do redirect

2010-11-09 Thread yamandu
After upgraded I got exception when try to redirect using redirect(URL()). I used to do : return redirect(URL(r=request, f='modelo')) but it works no more, gives me a ticket that don´t tells the error just the line. The folowing is an exerpt from the ticket thrown by the book example: def redire

[web2py] [Link] Form validation design

2010-11-09 Thread Bruno Rocha
Interesting about form validation design http://webdesign.tutsplus.com/articles/design-theory/user-experience-designing-form-validation-the-right-way/

[web2py] Re: Plugin_JqGrid long-polling

2010-11-09 Thread AsmanCom
How can I add the JavaScript: var server_time="test" to the vars dict: callback = URL(r=request,c='plugin_jqgrid',f='data', vars=dict(tablename=table._tablename, columns=','.join(columns), fieldname=fieldname or '',

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-09 Thread Branko Vukelic
On Tue, Nov 9, 2010 at 1:44 PM, Bruno Rocha wrote: > I just need to find out how to edit .svg in a Mac. I'll try InkScape for > Mac/X11 It's an Inkscape SVG, so Inkscape would be your best bet. Just so you know, line wrapping is manual (that's how I did it, that is). -- Branko Vukelić bg.bra

[web2py] Re: making layout plugin

2010-11-09 Thread mdipierro
This could be another typos in the book. layout.html should be {{extend 'plugin_layout_name/layout.html'}} {{include}} but replacing the file entirely is fine. On Nov 9, 4:25 am, John Murphy wrote: > There are numerous web2py themes, but none of them are very good. So I > decided to make a n

[web2py] making layout plugin

2010-11-09 Thread John Murphy
There are numerous web2py themes, but none of them are very good. So I decided to make a nice one based on: http://demo.woothemes.com/?name=meta-morphosis. I'm creating a layout plugin according to these instructions: - http://web2py.com/book/default/chapter/13#Layout-plugins - http://www.web2py.c

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-09 Thread Branko Vukelic
On Tue, Nov 9, 2010 at 3:04 PM, Branko Vukelic wrote: > On Tue, Nov 9, 2010 at 1:44 PM, Bruno Rocha wrote: >> I just need to find out how to edit .svg in a Mac. I'll try InkScape for >> Mac/X11 > > It's an Inkscape SVG, so Inkscape would be your best bet. Just so you > know, line wrapping is manu

[web2py] Re: number of logged users

2010-11-09 Thread mdipierro
This is not a well defined concept. You can look into sessions/ and figure out which files were modified within the last N minutes. On Nov 9, 4:50 am, salbefe wrote: > Hello, > > I would like to know how can I obtain the number of the current users > that are logged on. > > Thanks in advance!

[web2py] Re: How to switch back to English for the Admin interface?

2010-11-09 Thread mdipierro
wait. You should not need to delete files. The language is set by your browser. On Nov 9, 3:41 am, Stefan Scholl wrote: > Oops, found it 5 minutes later. > > In case somebody wants to switch back to English, too: > > Delete (or rename) your language in applications/admin/languages

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-09 Thread Bruno Rocha
I am working on Inkscape for Mac! very nice!, I should never open coreldraw or Illustrator anymore. Thank you! 2010/11/9 Branko Vukelic > On Tue, Nov 9, 2010 at 3:04 PM, Branko Vukelic > wrote: > > On Tue, Nov 9, 2010 at 1:44 PM, Bruno Rocha > wrote: > >> I just need to find out how to edit .

[web2py] Re: new admin in trunk

2010-11-09 Thread mdipierro
Perfect. Thanks. I did not know. On Nov 9, 1:54 am, Branko Vukelic wrote: > On Tue, Nov 9, 2010 at 8:05 AM, mdipierro wrote: > >> - 'logout' in french ('deconnexion') is too long for the button area > >> (top right buttons in the design view). > > > this is a major problem. Now that all buttons

Re: [web2py] Re: RFC: Why web2py rocks

2010-11-09 Thread Bruno Rocha
I just need to find out how to edit .svg in a Mac. I'll try InkScape for Mac/X11 2010/11/9 Branko Vukelic > On Tue, Nov 9, 2010 at 2:54 AM, Bruno Rocha wrote: > > Branko, I want to have a portuguese version, do you mind if I edit the > file > > translating into portuguese? > > Sure, Bruno. Here

[web2py] Re: Command-line support

2010-11-09 Thread blackthorne
Well, shell mode is not quite what I was looking for but thank you. Many of us, prefer to use a common IDE such as Netbeans or Emacs or Wing, or even an OS like Emacs. The command-line is a first class tool for developers and it is great to integrate with my IDE or bash script. It would be nice to

[web2py] Re: Windows binary distribution

2010-11-09 Thread cjrh
On Nov 9, 2:27 pm, Bruno Rocha wrote: > I use this script to create my custom web2py.exe > > http://code.google.com/p/web2py/source/browse/setup_exe.py I just saw the Makefile in the web2py folder now. It does everything it seems, except on Windows if you don't have a make available :( Will tr

[web2py] Re: Command-line support

2010-11-09 Thread mdipierro
What operations specifically do you want to do in shell mode? On Nov 9, 7:20 am, blackthorne wrote: > Well, shell mode is not quite what I was looking for but thank you. > Many of us, prefer to use a common IDE such as Netbeans or Emacs or > Wing, or even an OS like Emacs. The command-line is a f

[web2py] Re: Windows binary distribution

2010-11-09 Thread cjrh
On Nov 9, 3:34 pm, mdipierro wrote: > It is a delicate process that can go wrong and the produced binaries > may violate the GPL license. That's a fair point. I think I am going to use Portable Python (2.6.1) and the source distro of web2py. That also gives me a no- install version. Among oth

Re: [web2py] Windows binary distribution

2010-11-09 Thread Bruno Rocha
I use this script to create my custom web2py.exe http://code.google.com/p/web2py/source/browse/setup_exe.py 2010/11/9 cjrh > Is there a recipe somewhere showing how the binary win version of > web2py is produced? I would like to make my own custom zip for > easier in-house distribution, and u

[web2py] twilio context ($100 prize)

2010-11-09 Thread mdipierro
http://blog.twilio.com/2010/11/attention-pythonistas-twilio-has-a-contest-just-for-you-ends-1114.html

[web2py] Re: Windows binary distribution

2010-11-09 Thread mdipierro
I discourage making your own binaries using setup_exe.py unless you need to package additional binary python modules that do not come with the official distribution. It is a delicate process that can go wrong and the produced binaries may violate the GPL license. Instead this process is easier: ht

[web2py] Build custom windows binary distro

2010-11-09 Thread cjrh
I would like to make a custom binary distro zip of web2py, using a different version of python (2.6 or 2.7) and incorporating PIL. Are there any recipes somewhere showing how to setup the toolchain? I already know about the file setup_exe.py in the web2py folder, I reckon that will feature promin

[web2py] Re: RFC: Why web2py rocks

2010-11-09 Thread cjrh
On Nov 9, 12:16 am, mdipierro wrote: > This is not the first image I have seen this this format (thin and > long) but I am not sure I understand what it is intended for. Beauty. DeviantArt has a great many like this for Photoshop tutorials, for example.

[web2py] Windows binary distribution

2010-11-09 Thread cjrh
Is there a recipe somewhere showing how the binary win version of web2py is produced? I would like to make my own custom zip for easier in-house distribution, and using different version of python, for example.

Re: [web2py] Command-line support

2010-11-09 Thread Bruno Rocha
You can use from the command line -S Run in shell mode appname connect with an app -M execute the app models $python web2py.py -S appname -M to generate SQL code you have to use _ before DAL methods such as: db(...)_select() 2010/11/9 blackthorne > Is there a way so that I can use all web2py

[web2py] Command-line support

2010-11-09 Thread blackthorne
Is there a way so that I can use all web2py operations, such as generating the SQL code from the model definition from the command- line or is the web interface our only option? Thank you Best regards

Re: [web2py] Re: Windows binary distribution

2010-11-09 Thread Bruno Rocha
I Just included PySerial and another modules to access peripherals on host machine. I just take web2py, include my app folder and the modules/binaries I needed, I dont think it broke any license. or I am wrong? 2010/11/9 mdipierro > I discourage making your own binaries using setup_exe.py unles

[web2py] Error routing

2010-11-09 Thread Ruiwen Chua
Hi all, I'm trying to route errors like 400, 403 and 404 to nice, clear URLs like '/error/', '/forbidden/' and '/whoops/'. Unfortunately, the Web2Py Book's section on error routing (http:// www.web2py.com/book/default/chapter/04?search=error#Routes-on-Error) is pretty sparse, and I haven't been a

[web2py] number of logged users

2010-11-09 Thread salbefe
Hello, I would like to know how can I obtain the number of the current users that are logged on. Thanks in advance!

[web2py] Re: How to switch back to English for the Admin interface?

2010-11-09 Thread Stefan Scholl
Oops, found it 5 minutes later. In case somebody wants to switch back to English, too: Delete (or rename) your language in applications/admin/languages

[web2py] How to switch back to English for the Admin interface?

2010-11-09 Thread Stefan Scholl
Just upgraded web2py and now I get everything in German. That's not a good idea if you are a programmer. The programming world and all the terms are English. And in case of an error I can't ask here, because you can't understand the error messages. :-( Is there a way to switch back the Admin inter

[web2py] How switch back to English for the Admin interface?

2010-11-09 Thread Stefan Scholl
Just upgraded web2py and now I get everything in German. That's not a good idea if you are a programmer. The programming world and all the terms are English. And in case of an error I can't ask here, because you can't understand the error messages. :-( Is there a way to switch back the Admin inter