[web2py] introducing-git-goggles

2011-11-24 Thread António Ramos
http://teebes.com/blog/22/introducing-git-goggles seems interesting

Re: [web2py] can web2py be used as a static website generator?

2011-11-24 Thread Manuele
On 20/11/2011 23:49, Robert Shaver wrote: But can I put an HTML file in a directory on the server and reach it from the web? That's what I think of as a static web page. just putting your html file in static folder or subfolder maybe resolve your quest? than you can reach your files with an

[web2py] how to execute a controller from command line

2011-11-24 Thread elffikk
hi, is it possible to execute a controller from command line without running a wsgi server? I want to use that in a long running applications which from time to time will call different controllers

[web2py] Using Fast CGI

2011-11-24 Thread Web2Py Freak
Dear ALL, I want to use a normal python host and i want to know how can i use fast CGI for this ??

Re: [web2py] Using Fast CGI

2011-11-24 Thread Vasile Ermicioi
http://web2py.com/book/default/chapter/11 and what hosting do you use now?

[web2py] Re: Using Fast CGI

2011-11-24 Thread Web2Py Freak
i want to use arvix and i picked python as my language , now what i want to know is what would i upload to the host the full framework or my website , i dont know where to start

Re: [web2py] Re: github hg repo

2011-11-24 Thread Bruno Rocha
I was an hg lover, for a long time I resisted to use git. But now, I am discovering git github and I am really enjoying to work with git. May be because I like more github than bitbucket or gcode.

[web2py] Re: introducing-git-goggles

2011-11-24 Thread szimszon
Nice

[web2py] Re: ValueError: need more than 1 value to unpack

2011-11-24 Thread Rahul
Hi Massimo, now contains - import datetime; now = datetime.datetime.now() # For date time Thanks, Rahul D On Nov 22, 7:22 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote:         form.vars.updated_on= now what's now?         form.vars.posted_by = Rahul posted_by must be an

[web2py] Re: SQLFORM upload type and long file+path names

2011-11-24 Thread Anthony
On Thursday, November 24, 2011 12:06:24 AM UTC-5, Massimo Di Pierro wrote: 1) Is there an easy way to overload the default behavior of the SQLFORM so it stores the filename in the database, instead of encoding it in the renamed-file? I see the Field class has a custom_store/ retrieve

[web2py] Access remote oracle database

2011-11-24 Thread Humberto
Hi, I just started using web2py and I'm don't know how to connect to my remote oracle database. According with the chapter 6 of the official book the url should be the following: oracle://username/password@test There are no parameters for the server ip address in the example, then I tried this:

Re: [web2py] Re: github hg repo

2011-11-24 Thread rif
I really tried to switch from hg to git (several times) but did not find sufficient reasons to stick with it.

[web2py] new to web2py/python

2011-11-24 Thread chandrakant kumar
Hello I'm new to web2py/python, web development in general. can you suggest me the appropriate learning path. I've used django for couple of months. regards

Re: [web2py] new to web2py/python

2011-11-24 Thread Richard Vézina
Read the book... Also there is a breif introduction to python in the first or second chapter... Richard On Thu, Nov 24, 2011 at 11:37 AM, chandrakant kumar k.03chan...@gmail.comwrote: Hello I'm new to web2py/python, web development in general. can you suggest me the appropriate learning

Re: [web2py] new to web2py/python

2011-11-24 Thread António Ramos
Dont be afraid to ask People here tend to be very helpfull with newbies like you and me. Dont know why :) 2011/11/24 Richard Vézina ml.richard.vez...@gmail.com Read the book... Also there is a breif introduction to python in the first or second chapter... Richard On Thu, Nov 24,

[web2py] About transactions

2011-11-24 Thread Jose
Hello as I make the following actions run within the same transaction form = SQLFORM(my_table) if form.accepts(request.vars, session): id = int(form.vars.id) doc = my_table[id] doc.update_record(state=1) other_table.insert(documento=doc, ...)

[web2py] Re: how to execute a controller from command line

2011-11-24 Thread Massimo Di Pierro
You can do python web2py.py -S welcome/default/index -M -N but it will not call the view On Nov 24, 5:13 am, elffikk elff...@gmail.com wrote: hi, is it possible to execute a controller from command line without running a wsgi server? I want to use that in a long running applications which

[web2py] Re: how to execute a controller from command line

2011-11-24 Thread Massimo Di Pierro
If you want to call the view just do wget http://127.0.0.1:8000/welcome/default/index On Nov 24, 12:26 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: You can do python web2py.py -S welcome/default/index -M -N but it will not call the view On Nov 24, 5:13 am, elffikk

[web2py] Re: Access remote oracle database

2011-11-24 Thread Massimo Di Pierro
I think oracle://myusername:mypassword@server_ip_address:1521/database_name On Nov 24, 8:43 am, Humberto humbfd...@gmail.com wrote: Hi, I just started using web2py and I'm don't know how to connect to my remote oracle database. According with the chapter 6 of the official book the url should

[web2py] Re: About transactions

2011-11-24 Thread Massimo Di Pierro
They run in the same transactions by default. On Nov 24, 10:58 am, Jose jjac...@gmail.com wrote: Hello as I make the following actions run within the same transaction     form = SQLFORM(my_table)     if form.accepts(request.vars, session):         id = int(form.vars.id)         doc =

[web2py] My ideas/proposals for the CMS

2011-11-24 Thread ~redShadow~
It's been some time since I started thinking about which structure should be given to the web2py-based CMS. So far, I came out with some experiments and tons of brainstorming-level documentation of how I thing stuff should be made. So, here it is some stuff: Project homepage: http://w2cms.com/

[web2py] Re: Access remote oracle database

2011-11-24 Thread Humberto
web2py already comes with native oracle support? I installed pyodbc and cx_oracle, but I still can't connect to my remote oracle database. I tested a connection with postgres (I needed to install psycopg2) and it's working fine. Ps. My OS is Windows 7 x64. Ps2. I tried running the web2py binary

Re: [web2py] Re: how to execute a controller from command line

2011-11-24 Thread Vasile Ermicioi
python web2py.py -S welcome/default/index -M -N is what I was looking for, but I need the ability to execute it from python and want to pass arguments and vars would like to do that without subprocesses (like os.system or others) something like import gluon.main

Re: [web2py] My ideas/proposals for the CMS

2011-11-24 Thread Bruno Rocha
Does it works on Google App Engine? I will take a look and test today! Thanks for sharing! On Thu, Nov 24, 2011 at 4:34 PM, ~redShadow~ redsha...@hackzine.org wrote: It's been some time since I started thinking about which structure should be given to the web2py-based CMS. So far, I came

Re: [web2py] My ideas/proposals for the CMS

2011-11-24 Thread ~redShadow~
On Thu, 2011-11-24 at 16:56 -0200, Bruno Rocha wrote: Does it works on Google App Engine? I will take a look and test today! Thanks for sharing! Thanks for testing! -- That's why I shared :) (Long Live Open Source) -- Samuele ~redShadow~ Santi

[web2py] Re: My ideas/proposals for the CMS

2011-11-24 Thread Gour
On Thu, 24 Nov 2011 19:34:52 +0100 ~redShadow~ redsha...@hackzine.org wrote: * Different kind of contents (page, article, ...), referred as node, managed by the same code, but with different fields/views/behavior. This is very similar to drupal content management, for who is familiar with it.

[web2py] Re: About transactions

2011-11-24 Thread Jose
On 24 nov, 15:31, Massimo Di Pierro massimo.dipie...@gmail.com wrote: They run in the same transactions by default. Nop! Please see the following example model: tb_1 = db.define_table('t1', Field('field1'), Field('field2', 'integer') ) tb_2 = db.define_table('t2',

[web2py] How to include T from gluon in custom module

2011-11-24 Thread monotasker
I'm writing a plugin and (as recommended) putting my plugin classes in the modules folder. I'm using from gluon import * to get gluon classes in the module file, but I'm still getting an error message about translation strings: global name 'T' is not defined. Do I need to import T from a

Re: [web2py] Re: My ideas/proposals for the CMS

2011-11-24 Thread ~redShadow~
On Thu, 2011-11-24 at 20:05 +0100, Gour wrote: On Thu, 24 Nov 2011 19:34:52 +0100 ~redShadow~ redsha...@hackzine.org wrote: * Different kind of contents (page, article, ...), referred as node, managed by the same code, but with different fields/views/behavior. This is very similar to

Re: [web2py] How to include T from gluon in custom module

2011-11-24 Thread Bruno Rocha
in module from gluon import current class MyClass(object): def __init__(self): self.T = current.T # important only assign current objects inside instance methods. Never do it as class attributes or on module top level. On Thu, Nov 24, 2011 at 5:31 PM, monotasker

Re: [web2py] How to include T from gluon in custom module

2011-11-24 Thread monotasker
Thanks again Bruno.

[web2py] Re: web2py solution for debbuging with FirePHP/Firebug

2011-11-24 Thread faultyzebra
Hello, The file is not available at this link http://www.box.net/shared/dtm0dhgze9 anymore. Can you re-upload it or make it available in any other form? Your gesture will be highly appreciated. Regards, FZ

[web2py]

2011-11-24 Thread massimo.dipie...@gmail.com
Who is user web2py on github?From my Android phone on T-Mobile. The first nationwide 4G network.

Re: [web2py] Re: orderby='random' on Google App Engine

2011-11-24 Thread Bruno Rocha
Isn't random sort suported in GAE ? * rows = db(query).select().sort(lambda row: random.random()) File /base/data/home/apps/s~movucahq/0-1.354917246392574252/gluon/dal.py, line 5789, in select return self.db._adapter.select(self.query,fields,attributes) File

[web2py] Re: About transactions

2011-11-24 Thread Anthony
But what about your first example, without the try...except? Are you saying that if the other_table.insert() fails, the doc.update_record() still succeeds in committing? I don't think that should be the case. If there's an uncaught exception before the response is returned, web2py should roll

Re: [web2py] Re: how to execute a controller from command line

2011-11-24 Thread Anthony
Maybe exec_environment: http://web2py.com/book/default/chapter/04#Execution-Environment On Thursday, November 24, 2011 1:43:11 PM UTC-5, elffikk wrote: python web2py.py -S welcome/default/index -M -N is what I was looking for, but I need the ability to execute it from python and want to

[web2py] Re: About transactions

2011-11-24 Thread Anthony
Note, in your try...except example, you could do: except: db.rollback() redirect(URL('error')) See http://web2py.com/book/default/chapter/06#commit-and-rollback. Anthony On Thursday, November 24, 2011 5:40:39 PM UTC-5, Anthony wrote: But what about your first example,

[web2py] Re: table inheritance and defined requires

2011-11-24 Thread GOwin
Nik, declare your validators before you clone your model. I've encountered this issue before and the problem was because I wasn't* *declaring validators of the master table *BEFORE* I define the new gholas (i.e. clones) table. When I re-located the offending .requires immediately after the

[web2py] Re: Access remote oracle database

2011-11-24 Thread Massimo Di Pierro
Web2py supports oracle. Requires cxoracle and rinning from source. What problem do you experience? On Nov 24, 12:42 pm, Humberto humbfd...@gmail.com wrote: web2py already comes with native oracle support? I installed pyodbc and cx_oracle, but I still can't connect to my remote oracle

[web2py] Re: About transactions

2011-11-24 Thread Massimo Di Pierro
Anthony is right if you catch the exception yourself web2py stll commits because does not detect failure. If catch the exception and want to rollback you have to be explicit. Still. It is in a transaction. On Nov 24, 5:11 pm, Anthony abasta...@gmail.com wrote: Note, in your try...except

Re: [web2py] Re: how to execute a controller from command line

2011-11-24 Thread Vasile Ermicioi
yep, that it is, I should read again the book :) thank you Massimo, thank you Anthony

Re: [web2py] Ajax and table rows.

2011-11-24 Thread Nik Go
Cliff, you alluded that this doesn't work, but it's actually a valid signature and should work: IS_IN_DB(db(db.categories.parent_table==request.args(0)),'categories.id',' categories.name') just as valid as the following signatures: IS_IN_DB(db(db.categories.parent_table==request.args(0)),

[web2py] Re: Access remote oracle database

2011-11-24 Thread tomt
Do you have the oracle client installed on your web2py machine? If you do, you should be able to test the connection to oracle with 'sqlplus database/password'. oracle-instantclient is available for free from www.oracle.com/technetwork/index.html. I'm using this on my linux machine to access a

[web2py] Re: About transactions

2011-11-24 Thread Jose
On 24 nov, 21:43, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Anthony is right  if you catch the exception yourself web2py stll commits because does not detect failure. If catch the exception and want to rollback you have to be explicit. Still. It is in a transaction. Ok, I

Re: [web2py] Re: My ideas/proposals for the CMS

2011-11-24 Thread Bruno Rocha
Right now I am developing a Social-CMS. I am in very beggining of the project, I have all the ideas and directions but for now only article user management. But I am working to finish all the features in one month ( I have a deadline with a client) My goal is a model-less app (No models, I

[web2py] Re: About transactions

2011-11-24 Thread Anthony
On Thursday, November 24, 2011 9:27:06 PM UTC-5, Jose wrote: def test(): form = SQLFORM(tb_1, 1) if form.accepts(request.vars, session): try: tb_2.insert(field1='test', field2='1xbx123') except: db.rollback()

[web2py] Any simple open-source resources for web2py with database management via restful api?

2011-11-24 Thread haikuvend Resident
Any help is gladly appreciated!

[web2py] Re: Any simple open-source resources for web2py with database management via restful api?

2011-11-24 Thread Massimo Di Pierro
http://web2py.com/book/default/chapter/09#RESTful-Web-Services On Nov 24, 8:29 pm, haikuvend Resident haikuv...@gmail.com wrote: Any help is gladly appreciated!

[web2py] Re: issue with form.process in default/user

2011-11-24 Thread Massimo Di Pierro
My answer did not get posted. Trying again... auth.settings.register_onvalidation = do_my_postvalidation_stuff auth.messages.registration_successful = 'Thank you for registering' form = auth.register() #does its own call to form.process() OR form = SQLFORM(db.auth_user) if