I know the table which define in db.py will be created automatically,
but I haven't any entity in the GAE web interface, What can I do?
On 11月20日, 下午1时50分, mdipierro <[EMAIL PROTECTED]> wrote:
> appadmin does not work well on GAE. You should use the GAE web
> interface instead.
>
> Anyway, if you
Hi,
I notice from the manual that one exports data to csv by using str()
and imports csv data using import_from_csv_file.
This produces/uses a csv file with the 1st row having column names in
the format table.field.
My situation:
==
I have 3 systems:
(a) Web2Py application that communica
Very similar to 1.49 but fixes some problem with forms introduced in
1.48,1.49.
Please check everything is fine.
Massimo
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this g
appadmin does not work well on GAE. You should use the GAE web
interface instead.
Anyway, if you get to appadmin, then your code below is doing its job.
Massimo
On Nov 19, 7:47 pm, sharekey <[EMAIL PROTECTED]> wrote:
> Hi All,
> I get "No databases in this application" when I
> browsehttp:
Hi All,
I get "No databases in this application" when I browse
http://127.0.0.1:8080/[application]/appadmin, I'm using GAE on local
(it work if I run web2py.py)
I just write below code in db.py in my app for test.
try:
from gluon.contrib.gql import * # if running on Google Ap
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=data # GRAB OLD DATA
data=request.vars.data.replace('\r\n','\n').strip()+'\n'
open(apath(filename + '.bak'),'w').wri
Never mind it was a migration issue :)
On Nov 19, 5:40 pm, ceej <[EMAIL PROTECTED]> wrote:
> I have no idea where this came from because it was all working fine I
> haven't changed anything but when I ran the command again I get
> thishttp://paste.pocoo.org/show/91854/
>
> Any ideas?
>
> Thank y
I have no idea where this came from because it was all working fine I
haven't changed anything but when I ran the command again I get this
http://paste.pocoo.org/show/91854/
Any ideas?
Thank you in advance
--~--~-~--~~~---~--~~
You received this message because yo
Hey ceej,
Congratulations, it's a very good work.
Look, I found an error here:
http://www.klasproducts.com/products/category/view/apparel/3/activewear/39
Regards,
Tito
On Wed, Nov 19, 2008 at 4:32 PM, mr.freeze <[EMAIL PROTECTED]> wrote:
>
> I would love to see a screencast/demo on how to gen
If you send me some example of elixir models I can add a layer to
support them. I did that alredy for Django and SQLAlchemy.
Massimo
On Nov 17, 1:40 am, mmstud <[EMAIL PROTECTED]> wrote:
> Earlier this year i made a web app with Pylons using Elixir as ORM
> front layer. I got a project lately an
It is but it does not work on GAE because GAE does not allow writing
to file system. It will be added. It is not difficult. It just was not
a priority since most people debug locally and then deploy on GAE.
Massimo
On Nov 19, 5:15 pm, BigBaaadBob <[EMAIL PROTECTED]> wrote:
> Isn't the ticket fea
Isn't the ticket feature one of the key features of web2py? It is
listed on the features page.
On Nov 19, 2:53 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> It would not be too difficult but would it really be necessary? The
> google error logs are not too bad.
>
> Massimo
>
> On Nov 19, 1:45 pm, A
Billf, your answer must have come to wrong topic?
On Nov 17, 10:18 am, billf <[EMAIL PROTECTED]> wrote:
> Massimo
>
> The problem with the above example is that, tho' it works fine first
> time thru', subsequent executions (for me at least) result in
>
> "'users' referenced before assignment"
>
>
Yeah, I've just started using web2py so if the tickets give the same
functionality as the logs then sure.
Thanks :)
Andrew
On Nov 19, 1:53 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> It would not be too difficult but would it really be necessary? The
> google error logs are not too bad.
>
> Mass
It would not be too difficult but would it really be necessary? The
google error logs are not too bad.
Massimo
On Nov 19, 1:45 pm, Andrew <[EMAIL PROTECTED]> wrote:
> Okay thanks. Got it working. I was trying to access the admin / ticket
> interface which I overlooked isn't supported in GAE.
>
>
Okay thanks. Got it working. I was trying to access the admin / ticket
interface which I overlooked isn't supported in GAE.
Is it possible to make a version that uses GQL for tickets and such so
we can use admin / ticket interface on GAE? Or would that be a great
undertaking?
On Nov 19, 12:36 pm
That is not normal. Which version are you using?
Massimo
On Nov 19, 12:23 pm, Andrew <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I was following the guide here:
>
> http://mdp.cti.depaul.edu/AlterEgo/default/show/186
>
> and simply deployed the default web2py and hit my appspot page and
> only go
I would love to see a screencast/demo on how to generate a multilevel
menu dynamically from a database. Maybe it could be worked into a new
web2py feature. Possibly some pseudocode like response.menu=SQLMENU
(rows=rows,groupby='category',direction='"vertical') where the groupby
is a reference to
{{myvar={} }}
or
{{myvar=dict()}}
On Nov 19, 12:16 pm, "Wes James" <[EMAIL PROTECTED]> wrote:
> I tried to create a dict var in a layout:
>
> {{myvar={}}}
>
> but web2py didn't like that.
>
> -wj
--~--~-~--~~~---~--~~
You received this message because you are sub
I noticed (in google's Chrome browser at least) that the update of images
(top, center box) pervented me from being able to select, scroll down,
look at the bottom of the screen it was a bit of a cat-and-mouse game
actually: every time I would scroll down and "almost" select / click
somethin
Nope the site doesn't use t2, it's all created from scratch. The menu
bar at the top? It's generated dynamically from the database. I'm
going to be making a few screen casts soon, so if there's anything
else you'd like to know how to do feel free to email me :)
On Nov 19, 8:33 am, "mr.freeze" <[E
oh, yah - i could do this in my controller before returning it - no duh...
thx Yarko (again...)
-wj
On Wed, Nov 19, 2008 at 11:39 AM, Yarko Tymciurak <[EMAIL PROTECTED]> wrote:
> two separate comments:
> - if initializing a dict is not working in templating engine, then that
> should be worked
Next feature...web2lisp
=P
mdipierro wrote:
Or...
{{=T('$%i.%.2i',(int(total),int(100.0*(total-int(total}}
and use web2py to translate '$%i.%.2i'
Massimo
On Nov 19, 11:24 am, "Wes James" <[EMAIL PROTECTED]> wrote:
I have an amount that I want to format as 4500 -> $4,500.
two separate comments:
- if initializing a dict is not working in templating engine, then that
should be worked out;
- do the sorting in your controller - let your view do color / layout
management - don't force data manipulation on it if you can avoid it...
unless you want to be doing this under
There is recent discussion (including a step-by-step) of this here:
http://groups.google.com/group/web2py/browse_thread/thread/e9fc4ce13070cd21/af77ece522d2f6d9
Perhaps that will help?
On Nov 19, 12:23 pm, Andrew <[EMAIL PROTECTED]> wrote:
> Hey guys,
>
> I was following the guide here:
>
> htt
What I'm trying to do is sort a dict passed from my controller:
{{a=schols.items()}}
{{a.sort()}}
{{schols={}}}
{{for b in a:}}
{{schols[b[0]]=b[1]}}
{{pass}}
bye the way Massimo, I commented out the code above in my layout, and
I had to do this with the for line for it to comment out right - I
Hey guys,
I was following the guide here:
http://mdp.cti.depaul.edu/AlterEgo/default/show/186
and simply deployed the default web2py and hit my appspot page and
only got:
Invalid request. It even forward it from the root of my appspot uri /
to /welcome/default/index
I checked the Appspot logs
I tried to create a dict var in a layout:
{{myvar={}}}
but web2py didn't like that.
-wj
--~--~-~--~~~---~--~~
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@goo
+1 purchased
--~--~-~--~~~---~--~~
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, send email to [EMAIL PROTECTED]
And Best of all! Massimo got our love !
Good job!
+1 thumbs up
On Wed, Nov 19, 2008 at 5:32 PM, Daniel Contag <[EMAIL PROTECTED]> wrote:
>
> Excellent!
> +1 purchases
>
>
> Daniel
>
> On Wed, Nov 19, 2008 at 02:45, mdipierro <[EMAIL PROTECTED]> wrote:
> >
> > http://www.lulu.com/content/496887
Or...
{{=T('$%i.%.2i',(int(total),int(100.0*(total-int(total}}
and use web2py to translate '$%i.%.2i'
Massimo
On Nov 19, 11:24 am, "Wes James" <[EMAIL PROTECTED]> wrote:
> I have an amount that I want to format as 4500 -> $4,500.00.
>
> Is there a routine to do this in web2py? I tried imp
Excellent!
+1 purchases
Daniel
On Wed, Nov 19, 2008 at 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.
> If you buy it, let me know if lulu.com w
I have an amount that I want to format as 4500 -> $4,500.00.
Is there a routine to do this in web2py? I tried import locale in the
controller and then use {{=locale.format('$%.2f', amount,True)}} in my
layout, but I get locale is not defined.
well, never mind. I just got this to work:
{{im
in app controller default.py
response.t2_google_search=0
response.t2_sidebar=0
in t2 layout.html
{{if response.t2_google_search:}}
{{pass}}
...
{{if response.t2_sidebar:}}
{{pass}}
--
c/ya,
-wj
--~--~-~--~~~---~--~~
You re
oops that should be {{pass}} on the end.
On Nov 19, 9:29 am, "Wes James" <[EMAIL PROTECTED]> wrote:
> Massimo,
>
> Would you mind making a response variable for the t2 google search
> box? You have response.title and response.subtitle for the t2
> layout.html. How about response.google_search=(
Well, it looks like you are doing response.title/subtitle with
{{=response.title or 'T2'}} so I guess the search could be done like
that with \ to break a large string??
{{= response.google_search or '\
\
http://www.google.com/search";>\
\
\
\
\
\
\
Very cool. What did you use do generate the products menu? Does the
site use T2?
On Nov 19, 1:06 am, ceej <[EMAIL PROTECTED]> wrote:
> Thank you all :)
>
> @Phyo, there is no caching yet but I'm implementing it. So that in
> mind I think it runs relatively quickly :)
>
> P.s. I have some other p
Massimo,
Would you mind making a response variable for the t2 google search
box? You have response.title and response.subtitle for the t2
layout.html. How about response.google_search=(0|1) and in the layout
put:
{{if response.google_search:}}
{{pass}
thx,
-wj
--~--~-~--~
Can you email me the file? I will post it on AlterEgo
On Nov 19, 8:32 am, artien <[EMAIL PROTECTED]> wrote:
> Here is the code I'm using to validate ip addresses entered in a text
> field in a form:
>
> Hope its usefull for someone, perhaps an idea for a requires IS_IP4 or
> IS_IP6? :)
>
> def ip
+1 purchased!
On Tue, Nov 18, 2008 at 6: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.
> If you buy it, let me know if lulu.com works for you.
>
>
Here is the code I'm using to validate ip addresses entered in a text
field in a form:
Hope its usefull for someone, perhaps an idea for a requires IS_IP4 or
IS_IP6? :)
def ipcheckv6(ipnummer):
Is_IP = True
splitcounter = 0
if ipnummer.count('::') > 1:
#bad formatted addres
The manual is an excellent resource! Thank you Massimo!
Timothy Farrell wrote:
Oh snap!
/me runs out to the car to get his credit card.
Alexandre Miguel de Andrade Souza wrote:
I buy it too. So easy!
2008/11/18 mdipierro <[EMAIL PROTECTED]>
http:/
Oh snap!
/me runs out to the car to get his credit card.
Alexandre Miguel de Andrade Souza wrote:
I buy it too. So easy!
2008/11/18 mdipierro <[EMAIL PROTECTED]>
http://www.lulu.com/content/4968879
This is without the Wiley cover since Wiley could not accommodate the
Cool! That's easier than I thought it'd be
Cheers Massimo
On Nov 19, 1:40 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> python web2py.py -S yourapp -M -R yourdaemon.py &
>
> try -h for all command line options.
>
> Massimo
>
> On Nov 19, 7:28 am, Coalescence <[EMAIL PROTECTED]> wrote:
>
> > Hi guys
Hi guys,
How would I go about updating information in the database from the
command line driven python app, or a daemon?
I understand I could just interface with the database in the usual
manner, but I'd like to keep using the framework modules to keep
consistency.
Any ideas or tips most welcom
I believe I have mentioned several times since earlier this year that
I had web2py running on my N810 withj apps specially made for it :-)
I gave a talk about this experience at the Nokia Maemo Summit in
Berlin last September.
--~--~-~--~~~---~--~~
You received th
python web2py.py -S yourapp -M -R yourdaemon.py &
try -h for all command line options.
Massimo
On Nov 19, 7:28 am, Coalescence <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> How would I go about updating information in the database from the
> command line driven python app, or a daemon?
>
> I unde
I do not think this is a web2py issue. It is the web server (cherrypy)
that kills all long running processes. All web servers do it. Perhaps
the proper way is to run an background process with pxssh and have
web2py proxy for it,.
On Nov 19, 12:09 am, artien <[EMAIL PROTECTED]> wrote:
> Yeah I hav
I buy it too. So easy!
2008/11/18 mdipierro <[EMAIL PROTECTED]>
>
> 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.
> If you buy it, let me know if lulu.com works for you.
>
> Please do not red
OK, I see. The objects passed to itemize are an SQLTable and,
optionally, an SQLQuery, that basically filters the rows returned.
The easiest way to construct an SQLTable is to use define_table (as in
a model like db.py). That's why I was suggesting an in-memory
database which Massimo has now imp
> When you say "these tables are Python objects", I assume you are
refererring to your temporary data(?)
No, to the table input to itemize. This input is a python object. So
can this object be instantiated directly without going through a
database?
On Nov 19, 5:36 pm, billf <[EMAIL PROTECTED]>
51 matches
Mail list logo