I would have submitted a project of my own had a known. Sorry that I
missed it.
Next time I hope to compete. Money or not. :D
BR,
Jason Brower
On Fri, 2010-08-06 at 23:38 -0700, Jason Lotz wrote:
> Kind of a shame only two apps entered.
>
> Being a bit of a newbie to web development (coming fro
Thanks!
I can feel plugins and autoinstalling coming along!
BR,
Jason
On Fri, 2010-08-06 at 15:59 -0700, mdipierro wrote:
> Now you can post and updated your apps here without asking me.
>
> http://web2py.com/appliances
>
> Massimo
me too
I have now got the url working via DNS as suggested. But encountered
another problem. I would like for each community to have a separate
database. Whenever I creaet a new community database and
corresponding tables they are physically intermixed with teh SQLLite
storage folder of the main/global
instead of
db=DAL('sqlite://storage.sqlite')
do
app='...' # somehow determine which name
db_path = os.path.join(request.folder,'databases',app)
if not os.path.exists(db_path): os.mkdir(db_path)
db=DAL('sqlite://%s/storage.sqlite' % app)
On Aug 7, 6:33 am, "david.waldrop" wrote:
> I have now go
Sorry if this appeared here before.
http://www.franciscosouza.net/2010/08/flying-with-web2py-in-google-app-engine.html
worked perfectly. I am a happy camper. One thing I am uneasy with is
knowing if it's "ok" to define databases and tables in a controller,
where to put inport statements, and in general how to partition code.
Is there a particilarly good app you would recccomend as a reference
or a place to read a
well almost perfectly. below is my code:
app=community.name
db_path = os.path.join(request.folder,'databases',app)
if not os.path.exists(db_path): os.mkdir(db_path)
mtgdb=DAL('sqlite://%s/storage.sqlite' % app)
mtgdb.define_table(
'thoughts',
Field('description','text
please try both
mtgdb=DAL('sqlite://%s/storage.sqlite' % app, folder=db_path)
and
mtgdb=DAL('sqlite://storage.sqlite', folder=db_path)
I am sure one works but I do not recall which one. Let us know.
On Aug 7, 8:55 am, "david.waldrop" wrote:
> well almost perfectly. below is my code:
>
>
One more test:
In gluon/sql.py
before line 957, print your connection string:
print msg
Would that connection string work on the shell? Which postgresql
version are you using?
On Aug 6, 6:48 am, Zhe Li wrote:
> Yeah, that works fine. It's so odd and frustrating...
>
> On Aug 6, 1:25 pm, mdi
this one worked:
mtgdb=DAL('sqlite://storage.sqlite', folder=db_path)
very cool. thanks a million
On Aug 7, 11:20 am, mdipierro wrote:
> please try both
>
> mtgdb=DAL('sqlite://%s/storage.sqlite' % app, folder=db_path)
>
> and
>
> mtgdb=DAL('sqlite://storage.sqlite', folder=db_path)
>
>
Are you in US?
Have you contributed to web2py or developed something I can look at?
Looking for a paid project to work on?
Please contact me confidentially.
DO NOT REPLY to this thread.
Thanks to Jonathan Lundell we have an experimental version in trunk of
app level routes.
To understand how it works read routes.example.py and comments in the
file gluon/rewrite.py
If you test it please report your findings here.
Massimo
On Aug 7, 2010, at 9:03 AM, mdipierro wrote:
> Thanks to Jonathan Lundell we have an experimental version in trunk of
> app level routes.
> To understand how it works read routes.example.py and comments in the
> file gluon/rewrite.py
>
> If you test it please report your findings here.
*Very* ex
Hello,
have you tested performance impact on application. Do you assume some
noticeable slowdown when using routes?
david
On 7 srp, 18:26, Jonathan Lundell wrote:
> On Aug 7, 2010, at 9:03 AM, mdipierro wrote:
>
> > Thanks to Jonathan Lundell we have an experimental version in trunk of
> > app l
I am having trouble controlling the visual aspects fo a SQLFORM. More
specifically, I want to enable a text box and a POST button on the top
of the screen and have a lsit display below it. The list is gonna be
quite large so I do not want the default 2" text box and the button
below it, but rathe
On Aug 7, 2010, at 9:32 AM, David Marko wrote:
> Hello,
> have you tested performance impact on application. Do you assume some
> noticeable slowdown when using routes?
I have not measured it, but I'd expect the effect to be trivial, perhaps
unmeasurable in that it'd be in the noise.
In particu
{{if form.errors:}}
error are {{=form.errors}}
{{pass}}
{{=form.custom.begin}}
{{=form.custom.submit}}
{{=form.custom.end}}
On Aug 7, 11:34 am, "david.waldrop" wrote:
> I am having trouble controlling the visual aspects fo a SQLFORM. More
> specifically, I want to enable a text box and a POS
i dont quite follow. Here is my code
mtgdb.define_table(
'thoughts',
Field('description','text'),
Field('author','string'),
Field('votes','integer')
)
ideaform = SQLFORM(mtgdb.thoughts, fields=['description'],
submit_button='Post', formstyle='divs')
if ideaform.ac
It works fine.
Thanks!!
On Aug 6, 5:28 pm, mdipierro wrote:
> If a field is unchecked then it is not submitted in request.vars (that
> is how html forms work). You can use
>
> request.vars.get(field,False)
>
> or
>
> form.vars[field]
>
> (as Thadeus suggested)
>
> Massimo
>
> On Aug 6, 4:17 pm,
Massimo,
I am not able to make it work.
Firstly, just little note, my original
url=URL(r=request, f='nehnutelnosti',vars={'typ':request.vars.typ,
'okres':request.vars.okres, 'druh':request.vars.druh})
can not be used because it returns
/app/default/nehnutelnosti.load?okres=1&typ=1&druh=2
so it
Is your problem the presence of the .load?
> url=URL(r=request, f='nehnutelnosti',vars={'typ':request.vars.typ,
> 'okres':request.vars.okres, 'druh':request.vars.druh})
> can not be used because it returns
> /app/default/nehnutelnosti.load?okres=1&typ=1&druh=2
if you you can specify URL(,ext
Please post a screenshot. You may be able so solve this imply with css
On Aug 7, 11:48 am, "david.waldrop" wrote:
> i dont quite follow. Here is my code
>
> mtgdb.define_table(
> 'thoughts',
> Field('description','text'),
> Field('author','string'),
> Field('votes','integer')
I think that to maintain the state, you can store the session in db,
(someone puts a link about it )
If there is a cookie, web2py checks if the session data exists
automatically.
2010/8/6 Bruno Rocha
> If I understand, he wants to save session values, even the user closes the
> browser and re
V Sobota, 7. august 2010 o 10:20 -0700, mdipierro napísal(a):
> Is your problem the presence of the .load?
>
No, that is not the main problem.
> > url=URL(r=request, f='nehnutelnosti',vars={'typ':request.vars.typ,
> > 'okres':request.vars.okres, 'druh':request.vars.druh})
> > can not be used bec
it seems i do not have privileges to add files to the thread.
On Aug 7, 1:22 pm, mdipierro wrote:
> Please post a screenshot. You may be able so solve this imply with css
>
> On Aug 7, 11:48 am, "david.waldrop" wrote:
>
>
>
> > i dont quite follow. Here is my code
>
> > mtgdb.define_table(
There is a problem with URL. Please check trunk and see if it solves
the problem for you:
This works for me
def index():
return dict()
def test1():
form=SQLFORM.factory(Field('name'))
if form.accepts(request.vars,session):
url = URL('test2',extension='html')
re
I was thinking about the same as first prize, I will give you the
organizations name, just waiting for us to complete our new Web2py
website ; )
Thanks Again,
Chris
On Aug 6, 10:33 am, NetAdmin wrote:
> Thanks for the offer to donate to the next Web2py Application
> Exhibition.
>
> You can let
Hi,
In my attempts to learn, I've been redoing the NerdDinner example from
the .NET MVC tutorial with web2py. But I'm stuck here:
http://nerddinnerbook.s3.amazonaws.com/Part10.htm section "Adding a
jQuery Animation"
Right now my code looks like this:
function AnimateRSVPMessage() {
$("#
Your code (javascript) in html need to be between
On Aug 7, 6:41 pm, Rob wrote:
> Hi,
>
> In my attempts to learn, I've been redoing the NerdDinner example from
> the .NET MVC tutorial with web2py. But I'm stuck
> here:http://nerddinnerbook.s3.amazonaws.com/Part10.htmsection "Adding a
> jQuery
I guess I should have included the whole snippet - it does include the
tags and what I have works fine the way it is... I'm just
looking for a way to mimic the OnSuccess feature of the .NET function.
Thanks.
On Aug 7, 3:18 pm, "Martin.Mulone" wrote:
> Your code (javasc
I got your screenshot.
Try this:
I have seen the screenshots. You have many options. I would try put
this in the view instead of {{=form}}
{{if form.errors:}}
error are {{=form.errors}}
{{pass}}
{{form.element('textarea')['_cols']=80}}
{{=form.custom.begin}}
{{=form.custom.widget.descrip
I am using trunk version
Version 1.82.1 (2010-08-04 18:57:33)
and the code you sent me works perfectly.
Either I do not understand the problem or this is a browser issue.
What os and browser do you use?
Massimo
On Aug 7, 2:16 pm, Julius Minka wrote:
> No, redirection doesn't work for me.
> Last
Hi Massimo,
I am using PostgreSQL 8.4.
I added print(msg) and got the message when runnning python web2.py -a
123, the string looks like
dbname='labdb' user='web2py' host='localhost' port=5432
password='test123'
I only have this error when using web2py with WSGI. But if I go to the
shell from t
Didn't you say?
db = DAL('postgres://web2py:12...@127.0.0.1:1216/labdb',
pool_size=10)
is the DB at port 1216 or 5432?
Can you try with pool_size=0 just to isolate the problem.
On Aug 7, 6:42 pm, Zhe Li wrote:
> Hi Massimo,
>
> I am using PostgreSQL 8.4.
>
> I added print(msg) and got the messa
Hi all,
I came across web2py recently and have been very impressed by it.
One of the tasks on a project I am helping with is to improve the
registration process and general security of the site.
Ofcourse that being a Java project, there is not much chance for me to apply
web2py there[ also because
Hello,
is the US thing absolut?
Kenneth
Are you in US?
Have you contributed to web2py or developed something I can look at?
Looking for a paid project to work on?
Please contact me confidentially.
DO NOT REPLY to this thread.
It is not my thing. Just gathering info for a friend. It may be ok for
foreigners if you have a business and can emit invoices.
Massimo
On Aug 7, 5:36 pm, Kenneth Lundström
wrote:
> Hello,
>
> is the US thing absolut?
>
> Kenneth
>
> > Are you in US?
> > Have you contributed to web2py or devel
On Aug 7, 7:09 pm, Sriram Durbha wrote:
> Hi all,
> I came across web2py recently and have been very impressed by it.
> One of the tasks on a project I am helping with is to improve the
> registration process and general security of the site.
> Ofcourse that being a Java project, there is not muc
This is not very web2py-ese and there are simpler ways to achieve it.
Anyway. I assume the action that needs the onsuccess is implemented as
a server-side function. You can have that function set, before
retuning:
def youraction():
response.headers['web2py-component-
command']='Animat
Can I use data from a table to build the charts and tables instead of
a comma delimited list? If yes, how?
Hi Massimo,
I'd love to hear about a more web2py-ese way to do it.
Thanks for the solution... your help is much appreciated!
-Rob
On Aug 7, 6:21 pm, mdipierro wrote:
> This is not very web2py-ese and there are simpler ways to achieve it.
> Anyway. I assume the action that needs the onsuccess i
I have a model that has a 'Address', 'Lat' and "Lon' field. When the
user enters an address, some javascript currently populates the 'Lat'
and 'Lon' fields and they get inserted into the DB via crud.create()
or crud.update().
How do I hide these fields from the user, but allow the JS to insert
th
I am Thinking to link two tables ,
"emails" and "attachments"
emails have a unique key , EmailID , which is a md5sum of the path to email
file
I am trying to link with another table which is attachment table , it will
have a field 'attachment_of' which is link to "EmailID"
To Short
How can
hi,
I use version 1.82.1 (latest) and this seems not to work
('(.*):https?://(.*)site\.com:(.*)/(.*)', '/site/$4'),
for simple site.com getting error
site - is another name :)
you can. It is cumbersome and I am looking to make it easy. Two ways
for now:
assuming
db.define_table('data',Field('x','integer'),Field('y','double'))
``
{{data = [r.x for r in db().select(db.data.y,orderby=db.data.x)]}}
{{=plugin_wiki.widget('bar_chart',data=data)}}
``:template
or
``
name: b
46 matches
Mail list logo