http://teebes.com/blog/22/introducing-git-goggles
seems interesting
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
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
Dear ALL,
I want to use a normal python host and i want to know how can i use
fast CGI for this ??
http://web2py.com/book/default/chapter/11
and what hosting do you use now?
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
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.
Nice
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
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
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:
I really tried to switch from hg to git (several times) but did not
find sufficient reasons to stick with it.
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
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
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,
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, ...)
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
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
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
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 =
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 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
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
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
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
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.
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',
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
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
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
Thanks again Bruno.
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
Who is user web2py on github?From my Android phone on T-Mobile. The first nationwide 4G network.
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
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
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
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,
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 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
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
yep, that it is, I should read again the book :)
thank you Massimo,
thank you Anthony
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)),
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
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
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
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()
Any help is gladly appreciated!
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!
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
49 matches
Mail list logo