Hi Massimo,
Thank you very much, I get my answer from your point three of case
two(there are no tables either, until data is stored), now I can find
the entity from GAE web interface, so I can do CRUD operation on
datastore viewer. although I still get "No databases in this
application" messag
Im thinking to create an insert and update form with fields taken from
multiple tables. Person has address, email and phone instances on
separate tables, but for simple interaction, they should be present on
same form view. What is the best way to solve this kind of situation
at the moment, does S
Seems to work like a charm except for the js on the 'all' button in
IE7. Works in Firefox(of course). I like it!
On Nov 20, 10:31 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> mr.freeze,
>
> I fixed the problem and it is in trunk. I added some js effects to the
> resolve page. It can be made better
I have an app that on one page I have a set of fields (first 20 fields
of say 50) I have manually placed. All saves well and when I go to
another page and come back all is well.
On a separate page, I edit the rest of these fields. Part of these
are check box fields and some others including tex
Great stuff.
Thanks for the help Massimo.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, sen
Please explain in some detail what you are doing and post your code. I
am not sure I understand.
If you run locally using the built-in web server + sqlite thee are two
cases:
1) tables are created and you can see results in sql.log from admin
2) tables are not created and you can see the erro
Fascinating, but let's keep this list on topic. ;-)
Massimo
On Nov 20, 11:25 pm, mmstud <[EMAIL PROTECTED]> wrote:
> It must have been edited, i can't believe, huh...
>
> On Nov 21, 3:03 am, kaj <[EMAIL PROTECTED]> wrote:
>
> > and thanks Massimo for such a good bargain!
>
> > Btw folks, take a
Hi Massimo,
It is no problem that develope application locally then export on
GAE, but my question is that it does not work both on local and remote
(app.appspot.com) as well, the table I defined in db.py does not be
created, so I can not continue to next job.
On 11月21日, 上午11时56分, mdipierro <
It must have been edited, i can't believe, huh...
On Nov 21, 3:03 am, kaj <[EMAIL PROTECTED]> wrote:
> and thanks Massimo for such a good bargain!
>
> Btw folks, take a look at this video - it aint over until its over! -
> and this guy certainly proved that for sure,
> completely amazing...
>
> h
mr.freeze,
I fixed the problem and it is in trunk. I added some js effects to the
resolve page. It can be made better but this is sufficient for now
since I expect the usage to be rare.
massimo
--~--~-~--~~~---~--~~
You received this message because you are subscr
Hi sharekey,
we should make a distinction: develop for GAE or develop on GAE.
with the current web2py you can develop for GAE. You develop on your
machine and then you upload your app as explained in various articles
here
http://mdp.cti.depaul.edu/AlterEgo
admin, appadmin and tickets do no
Yes we should.
Meanwhile I suggest you replace
post_save=SQLFORM(db.videos,_video,fields=_update_clip_fields)
with
post_save=SQLFORM(db.videos,_video,fields=_update_clip_fields+
['id'],showid=False)
Massimo
On Nov 20, 8:32 pm, ceej <[EMAIL PROTECTED]> wrote:
> Hey Massimo,
>
> I think for th
Can you please try without -M perhaps there is an error in there.
If without -M works, then you need you debug your model first using
the administrative interface.
The error you are getting is very generic from a catch-all except. Not
very informative.
Massimo
On Nov 20, 8:26 pm, shlo <[EMAIL PR
Hi Massimo,
Do you have any good idea for develope data-drive application on
GAE?
On 11月20日, 下午9时59分, mdipierro <[EMAIL PROTECTED]> wrote:
> This is *very* dangerous. You are allowing anybody to manipulate your
> data on GAE as they please.
>
> Massimo
>
> On Nov 20, 6:56 am, Jonathan Benn <[
Hi Jonathan,
I try my test follow your steps, but it still doesn't work yet.
The browser print "No databases in this application" message as
before. howerver, thanks for your help!
On 11月20日, 下午8时56分, Jonathan Benn <[EMAIL PROTECTED]> wrote:
> I have the same issue with appadmin. Here is my *
Hey Massimo,
I think for the SQLFORM custom forms you should add to
{{=post_save.hidden_fields()}} and maybe even a {{=post_save.form_start
()}} {{=post_save.form_end()}} function so it can include the correct
headers like enctype="multipart/form-data" into the form. This would
make make updates
thx! that did it!
-wj
On Thu, Nov 20, 2008 at 5:32 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> {{variable='hi'}}
> {{=XML(variable)}}
>
> On Nov 20, 6:03 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
>> I've been looking (i'm sure it's simple), but in {{response.var}} if
>> var is html, like hi,
yes, the output i received was with 1.51.
On Nov 20, 6:33 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> Do you have 1.51. 1.51 should write the taceback instread of the
> RestrictedError.
>
> On Nov 20, 6:14 pm, shlo <[EMAIL PROTECTED]> wrote:
>
> > so I wrote a module (test.py):
> > import time
>
>
As far as I know, you return one dictionary to the view with as many
key/value pairs as you want. Typically something like:
def two_forms():
myvariable='web2py rocks'
form1=SQLFORM(db.person)
form2=SQLFORM(db.place)
if form1.accepts(request.vars,session):
response.flash='f
Ok i got it working (something wrong with the version control) thank
you both for your help :)
On Nov 20, 5:27 pm, ceej <[EMAIL PROTECTED]> wrote:
> I had a look into it but it appears to be fine, it's very strange as
> the application was pulled straight from version control.
>
> http://paste.po
Hi all;
I'm new to web2py, and find it fascinating.
Now I want to return a bunch of data to the view, from 5 different
tables.
Do I have to pack all the data into one dict, or is it possible to use
several dicts?
>From the documentation it seems to me that only one dict gets passed
to the view
and thanks Massimo for such a good bargain!
Btw folks, take a look at this video - it aint over until its over! -
and this guy certainly proved that for sure,
completely amazing...
http://www.innerspace.am/thebestever.wmv
--~--~-~--~~~---~--~~
You received this m
I had a look into it but it appears to be fine, it's very strange as
the application was pulled straight from version control.
http://paste.pocoo.org/show/91982/
On Nov 20, 4:28 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote:
> Try looking at / tracing thru:
> applications/admin/controllers/def
a current tarball is at www.web2py.com (released tarballs go there)
If you ever want a tarball of the current trunk you should be able to get
one from http://www.bitbucket.org/yarko/web2py/
It's a mirror that wraps the tree on demand (this one also includes T2); I
try to keep the mirror updated,
Do you have 1.51. 1.51 should write the taceback instread of the
RestrictedError.
On Nov 20, 6:14 pm, shlo <[EMAIL PROTECTED]> wrote:
> so I wrote a module (test.py):
> import time
>
> try:
> while 1:
> time.sleep(60)
> except Exception, e:
> print e
>
> and tried to run it:
> web
{{variable='hi'}}
{{=XML(variable)}}
On Nov 20, 6:03 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> I've been looking (i'm sure it's simple), but in {{response.var}} if
> var is html, like hi, how do I get it to put the html in the
> page and not textify the thing?
>
> thx,
>
> -wj
--~--~-
There was no error here actually, you're good to go with mysql. If
you're unsure, download the latest version, it has a (hopefully) less
confusing output with regard to database driver loading.
On Nov 21, 1:14 am, Erik Vandamme <[EMAIL PROTECTED]> wrote:
> After getting the pdf version of the bo
Try looking at / tracing thru:
applications/admin/controllers/default.py:index()
Around line 93 is the test for password --- also gluon/validators.py::class
CRYPT() -- might give you a hint to something corrupt installed (or partial
installed - like sha, md5, hmac)..
On Thu, Nov 20, 2008 at 6:
Do you see any session files in the session dir ? Are you running
web2py directly or through a web server ?
On Nov 21, 1:13 am, ceej <[EMAIL PROTECTED]> wrote:
> I've set the perssions to 777 (rexrexrex). So it shouldn't be that.
>
> On Nov 20, 4:03 pm, achipa <[EMAIL PROTECTED]> wrote:
>
> > cac
yes, the GAE data admin has some "bugs"It can not recognize a new table
which has no item.
2008/11/20 Yarko Tymciurak <[EMAIL PROTECTED]>
> yes - but good for local development _only_
>
>
> On Thu, Nov 20, 2008 at 7:59 AM, mdipierro <[EMAIL PROTECTED]>wrote:
>
>>
>> This is *very* dangerous. You
so I wrote a module (test.py):
import time
try:
while 1:
time.sleep(60)
except Exception, e:
print e
and tried to run it:
web2py1.51> web2py.exe -S myapp -M -R applications\myapp\modules
\test.py
and got this error:
default applications appear to be installed already
web2py En
After getting the pdf version of the book today and unzipping the
source , i tried installing it: but i have Mysql installed??
[EMAIL PROTECTED]:~/Public/web2py$ python web2py.py -S welcome
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2008
Version 1.47 (2008-10-27
I've set the perssions to 777 (rexrexrex). So it shouldn't be that.
On Nov 20, 4:03 pm, achipa <[EMAIL PROTECTED]> wrote:
> cache.disk should not prevent that... sounds more like wrong
> permissions for your sessions dir to me ?
>
> On Nov 21, 12:56 am, ceej <[EMAIL PROTECTED]> wrote:
>
> > Ok, a
If you see his cursor move or you view pages in sync, that's a remote
desktop solution right there :) Nothing wrong with that, just unsure
you want to just through hoops to get that sort of functionality in
web2py when most OS's give you that out of the box. If that's not
enough there are IDEs and
I've been looking (i'm sure it's simple), but in {{response.var}} if
var is html, like hi, how do I get it to put the html in the
page and not textify the thing?
thx,
-wj
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Gr
cache.disk should not prevent that... sounds more like wrong
permissions for your sessions dir to me ?
On Nov 21, 12:56 am, ceej <[EMAIL PROTECTED]> wrote:
> Ok, as you know this isn't my first time installing web2py. I've just
> installed it on a clean centos 5.2 OS it starts fine, but when I go
Ok, as you know this isn't my first time installing web2py. I've just
installed it on a clean centos 5.2 OS it starts fine, but when I go to
log into admin it looks like it's logging in but then takes me to the
login again with no errors. I checked the nohup output and it has
WARNING:root:no cache
I would rather have Massimo (for example) looking at code with me, and
catching that parameter that needs to be a dict, not a list... (and - w/o
voice - just being able to see his cursor go, and fix it - "Oh! Thanks!").
This is the essence of team programming for me. And this is faster than
posti
With docs and sketches, I understand (and embrace) the concept. But
with code, I think the situation is different. The way you described
it it almost sounded better to work collaboratively through a remote
desktop. Then you see what the other guy is doing, can jump in to type
in things (esp if you
Yeah Massimo, just got it, ordering and download worked fine
Cheers
Erik Vandamme
On Nov 19, 12:45 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> http://www.lulu.com/content/4968879
>
> This is without the Wiley cover since Wiley could not accommodate the
> requirements but it is the same book.
> I
I personally think this would be very handy as projects grow. For
some reason saving occasionally triggers a conflict when I am the only
one editing. The md5 hashes come back different. I can reproduce by
adding a line then hitting save twice (with any amount of pause
between the saves). Firef
relax ... think pair programming; implemented over the net. try a
spreadsheet on google docs - 2 or 3 people; each w/ a different color cursor
- editing together; open up your options.
This isn't that... yet... it's just a 'try this";
On Thu, Nov 20, 2008 at 3:24 PM, achipa <[EMAIL PROTECTED]>
If you ask me (and you don't :) remotely concurrently developing a
*single* app is a bad idea, as your edits have no guarantee of
atomicity/transactions, so you *will* be tripping over each other on
more changes than you would probably care. Working on two+ copies of
the same application (on the s
What for? SQLTable or SQLTABLE? I am confused.
Massimo
On Nov 20, 3:06 pm, Baron <[EMAIL PROTECTED]> wrote:
> > The easiest way to construct an SQLTable is to use define_table (as in a
> > model like db.py).
>
> You say 'easiest' - is there an alternative way to instantiate an
> SQLTable objec
> The easiest way to construct an SQLTable is to use define_table (as in a
> model like db.py).
You say 'easiest' - is there an alternative way to instantiate an
SQLTable object?
On Nov 19, 9:20 pm, billf <[EMAIL PROTECTED]> wrote:
> OK, I see. The objects passed to itemize are an SQLTable and
Hi People,
please give this a try:
http://groups.google.com/group/web2py/web/web2py.app.admin.tar
you can call it admin2
when you save a file it saved the .bak and if the .bak is there you
can restore using the button at the bottom
Moreover if two people edit the same file and user A saves fi
Thanks Yarko. I like the 'Its All Text' plugin but I guess my
intention was more to propose a new feature than to solve the actual
problem :) I was also thinking of a more automated solution. I use
wing for most of my debugging but would love to see the web editor
strive for feature parity with
also, it's simple... and "it's done!".
On Thu, Nov 20, 2008 at 2:05 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote:
> try the "Its All Text" plugin for Firefox - just toggle the editor when it
> comes up in the browser, and you'll have the little chicklet "edit" button
> on the bottom right of the
try the "Its All Text" plugin for Firefox - just toggle the editor when it
comes up in the browser, and you'll have the little chicklet "edit" button
on the bottom right of the form.
That's fast, and already solved.
It works sort of like this:
Session-form encoded filename created. You edit that
Hitting back in Firefox didn't work for me. Maybe because the file is
re-read on each page load. The method I am working on saves the 3
most recent versions as backups and adds a Restore button (next to
Save) and select that lets you choose which file to restore. Not very
elegant but functional
the irony: the editor mode doesn't work in Chrome (where it would be useful
to have an editor), but works everywhere else (Firefox, IE-6, Safari - which
shares a codebase w/ Chrome! - Opera)
On Thu, Nov 20, 2008 at 1:39 PM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote:
> Yes - VCS calling interface
Yes - VCS calling interface is what I remember, and I think it is a good
idea (if integrated well).
For client-end editing "from the web" with some sort of reasonable undo that
is more reliable than the browser, I suggest (ahem - hard to do, since I've
been using Chrome the past few months) using
Never mind, it was supported already exactly the way i was thinking it
should. So passing "%(id)s, %(firstname)s %(lastname)s" as a label
gives: "1, My Name"
-Marko
On Nov 20, 9:11 pm, mmstud <[EMAIL PROTECTED]> wrote:
> how big change on IS_IN_DB validator would it be to support more
> complica
Yarko, maybe including is the wrong word if Massimo is referring to my
VCS web2py patch. I'm providing a mechanism to call whatever
underlying VCS you are using in the project. It's just making web2py
smart enough to detect different VCS files, and putting a button or
two on some of the admin page
how big change on IS_IN_DB validator would it be to support more
complicated label? My label would be something like:
label = "%(id)s, %(firstname)s %(lastname)s" -> "1, My Name"
That would prevent ambiguity, that is case, when listing persons with
one label only...
I tried to create new argume
Using post_save=SQLFORM(db.videos,_video,fields=_update_clip_fields)
can you not specify just certain fields you would like to update
because I'm getting SyntaxError: user is tampering with form. (_video)
being my records.
On Nov 20, 10:24 am, ceej <[EMAIL PROTECTED]> wrote:
> Massimo, I totally
Massimo, I totally missed that. I've been up to 4am working to get
some of the other projects live. Think I might need to take a nap
lol :)
On Nov 20, 10:20 am, mdipierro <[EMAIL PROTECTED]> wrote:
> if post_save.accepts(post_save,session):
>
> should be
>
> if post_save.accepts(request.vars,
if post_save.accepts(post_save,session):
should be
if post_save.accepts(request.vars,session):
but you know this already.
Massimo
On Nov 20, 12:17 pm, ceej <[EMAIL PROTECTED]> wrote:
> Hi Massimo,
>
> I've tried:
>
> _update_clip_fields=[
> 'title',
> 'description',
> 'tags'
Hi Massimo,
I've tried:
_update_clip_fields=[
'title',
'description',
'tags',
'length'
]
post_save=SQLFORM(db.videos,fields=_update_clip_fields)
if post_save.accepts(post_save,session):
response.flash="Updated Video"
return dict(_video=_video,post_save=post_save)
B
On Thu, Nov 20, 2008 at 7:52 AM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> Let me think about. I thought we were going to include a real version
> control system eventually.
>
>
We've had this discussion in the past: it makes no sense to "include" a VCS
in web2py (too many people have favorites).
What about using the back button in the browser to retrieve earlier
version?
Massimo
On Nov 20, 11:44 am, achipa <[EMAIL PROTECTED]> wrote:
> Completely forgot that patch, it's waiting to be cleaned up. Oh well.
> In any case, IMHO a simple .bak mechanism wouldn't be bad idea even if
> you have
It is not easy to compute. For example, right now I can tell you lulu
sold in 24 hours 1/4 of total "reported" sales since publishing
(Sept). The problem is that lulu is updated in real time. How and when
the publisher web site is updated is a mystery. I do not know what is
included. I suspect for
Completely forgot that patch, it's waiting to be cleaned up. Oh well.
In any case, IMHO a simple .bak mechanism wouldn't be bad idea even if
you have a VCS, it's more for cases where network/browser issues play
a trick on you. Unless you want to commit on every save, which is very
likely not the c
It would be interesting to know (let's say after a month) the ratio of
pdf-s sold compared to the number of paper books sold. Just out of
curiosity, I hope a ratio does not count as top secret business data.
On Nov 19, 6:06 am, mdipierro <[EMAIL PROTECTED]> wrote:
> That may conflict. I do not kn
On Thu, Nov 20, 2008 at 21:48, mdipierro <[EMAIL PROTECTED]> wrote:
>
> def strip_first_row(in,out):
> in=open(in,'rb')
> out=open(out,'wb')
> for i,row in enumerate(in):
> if i>0: out.write(row)
>
> def add_header(columns=['table.field1',table.field2','etc']):
> in=op
yes - but good for local development _only_
On Thu, Nov 20, 2008 at 7:59 AM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> This is *very* dangerous. You are allowing anybody to manipulate your
> data on GAE as they please.
>
> Massimo
>
> On Nov 20, 6:56 am, Jonathan Benn <[EMAIL PROTECTED]> wrote:
>
I have solved the problem to connect to lulu.com and i purchased a
copy of the Manuals pdf.
I belive that the Manual will force to grow w2py's user community.
Thanks to everybody
Thanks Massimo
On 20 Kasım, 10:43, artien <[EMAIL PROTECTED]> wrote:
> Works fine for me. Seems like a problem on you
This is *very* dangerous. You are allowing anybody to manipulate your
data on GAE as they please.
Massimo
On Nov 20, 6:56 am, Jonathan Benn <[EMAIL PROTECTED]> wrote:
> I have the same issue with appadmin. Here is my *very* quick & dirty
> solution (use at your own risk!).
>
> There are 3 modifi
You only need to edit the gluon/restricted.py
and replace this line in log(...):
cPickle.dump(d,open(os.path.join
(request.folder,'errors',f),'wb'))
check if you are on gae by trying to import google (as done in other
places). If so define a table for the tickets and insert "d" in that
Just bought it, so some coffey and a nice afternoon with reading...
hmm nice
//Fredrik
On 19 Nov, 02:45, mdipierro <[EMAIL PROTECTED]> wrote:
> http://www.lulu.com/content/4968879
>
> This is without the Wiley cover since Wiley could not accommodate the
> requirements but it is the same book.
> I
Let me think about. I thought we were going to include a real version
control system eventually.
On Nov 20, 5:12 am, Baron <[EMAIL PROTECTED]> wrote:
> that would be great - I've been caught by that too
>
> On Nov 20, 4:24 pm, "mr.freeze" <[EMAIL PROTECTED]> wrote:
>
> > You can probably guess
yes.
db.define_table('polygon',SQLField('name'))
db.define_table('triangle',db.polygon,SQLField('area'))
db.triangle.name
On Nov 20, 3:36 am, mmstud <[EMAIL PROTECTED]> wrote:
> I send example by email. File has some rows...
>
> I also wondered if there is support for table inheritance (separat
def strip_first_row(in,out):
in=open(in,'rb')
out=open(out,'wb')
for i,row in enumerate(in):
if i>0: out.write(row)
def add_header(columns=['table.field1',table.field2','etc']):
in=open(in,'rb')
out=open(out,'wb')
out.write(', '.join(columns)
f
On Nov 20, 2:15 am, BigBaaadBob <[EMAIL PROTECTED]> wrote:
> Isn't the ticket feature one of the key features of web2py? It is
> listed on the features page.
I'll implement the ticketing feature on GAE if nobody else gets to it
before I do. It's not a super high priority for me, but I'll probab
I have the same issue with appadmin. Here is my *very* quick & dirty
solution (use at your own risk!).
There are 3 modifications to make to appadmin.py (in the controllers
folder):
1) At the beginning I disable the credentials check:
#try: hosts=(http_host, socket.gethostbyname(remote_addr))
#e
that would be great - I've been caught by that too
On Nov 20, 4:24 pm, "mr.freeze" <[EMAIL PROTECTED]> wrote:
> You can probably guess why I am suggesting this. Doh!
> Just two new lines in applications/admin/controllers/default.py under
> the edit def try/except block:
>
> try:
> olddata=d
I send example by email. File has some rows...
I also wondered if there is support for table inheritance (separate
tables or same table with class field) and hierachal data structures
in DAL? They are quite often needed yet advanced options on ORM.
-Marko
On Nov 20, 2:03 am, mdipierro <[EMAIL P
Works fine for me. Seems like a problem on your side. Try another
browser or the lulu.com main site?
On Nov 20, 9:42 am, "Cevdet Ural" <[EMAIL PROTECTED]> wrote:
> > I am getting an empty window from lulu.com link.
>
> How is it to solve ?
> [EMAIL PROTECTED]
>
>
--~--~-~--~~--
> I am getting an empty window from lulu.com link.
>
How is it to solve ?
[EMAIL PROTECTED]
> >
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send em
79 matches
Mail list logo