Re: [web2py] Re: Newbie questions

2011-03-19 Thread Niklas Rosencrantz
On Wed, Mar 16, 2011 at 12:46 PM, Anthony  wrote:

> On Wednesday, March 16, 2011 5:29:09 AM UTC-4, Nick Rosencrantz wrote:
>
>> Hi
>> I just deployed my first attempt to try web2py with google app engine
>> (http://matochsovklockan.appspot.com)
>> Basically it works while a few links return "invalid request" eg
>> http://matochsovklockan.appspot.com/examples/default/index
>>
>
> That URL is looking for the 'examples' app that comes with web2py. Note, if
> you used the default app.yaml file that comes with web2py for GAE
> deployment, the 'examples' and 'admin' apps won't be deployed on GAE -- they
> are excluded in the skip_files section of app.yaml. If you want to deploy
> the 'examples' app, you'll have to edit app.yaml accordingly. This is
> explained in the "Google App Engine" section of chapter 11 of the book (I'd
> provide a link, but the online book happens to be down right now).
>
> Anthony
>
Thanks Anthony, now I understand what's going on with my start. I think
web2py seems an exciting and powerful approach to web development. /Nick
Rosencrantz


[web2py] Re: Newbie questions

2011-03-16 Thread Anthony
On Wednesday, March 16, 2011 5:29:09 AM UTC-4, Nick Rosencrantz wrote:

> Hi 
> I just deployed my first attempt to try web2py with google app engine 
> (http://matochsovklockan.appspot.com) 
> Basically it works while a few links return "invalid request" eg 
> http://matochsovklockan.appspot.com/examples/default/index 
>
 
That URL is looking for the 'examples' app that comes with web2py. Note, if 
you used the default app.yaml file that comes with web2py for GAE 
deployment, the 'examples' and 'admin' apps won't be deployed on GAE -- they 
are excluded in the skip_files section of app.yaml. If you want to deploy 
the 'examples' app, you'll have to edit app.yaml accordingly. This is 
explained in the "Google App Engine" section of chapter 11 of the book (I'd 
provide a link, but the online book happens to be down right now).
 
Anthony


[web2py] Re: Newbie Questions.

2010-04-13 Thread mdipierro
2) You are right and misunderstood your question.

The fact is on GAE you can have date, time and datetime field types
and you can search by date ==, <, >, <=, >= but you cannot manipulate
dates (+,month,day,year). For example you can do

  db(db.mytable.mydatefield>datetime.date(2009,12,31)).select()

but you cannot do

  db(db.mytable.mydatefield.year()==20010).select()


Massimo

On Apr 13, 2:11 pm, Yanni  wrote:
> Thank you Massimo.
> re 1.  I noticed that I was looking at wrong views/controllers/etc ,
> and my applications DID load. I apologize for the false report.
> re 2. I will get back to you on this, on your FAQ I saw that GAE
> doesn't allow for time/datetime . I am probably confused.
> re 3. Thank you.
>
> On Apr 13, 11:54 am, mdipierro  wrote:
>
> > On Apr 13, 1:44 pm, Yanni  wrote:
>
> > > Ok, so I'm a bit confused.
>
> > > 1. I am using web2py on my Windows installation, however, after I stop
> > > and restart the service, all my work disappears (the views,
> > > controllers, etc).  How do I prevent this from happening?
>
> > This should not happening. I have never heard of it before. Which
> > web2py version? binary of source? Which windows version? How do you
> > start web2py?
>
> > > 2. Is there a way around GAE not allowing the timestamp option? The
> > > application I am planning requires that the date-submitted is written
> > > into the database, not necessarily the time.
>
> > Field('fieldname','datetime') works well on GAE. Perhaps I did not
> > understand the question.Try use it and if you enconuter any problem
> > show us the code.
>
> > > 3. Is there a list of plugins somewhere?
>
> >http://web2py.com/plugins
>
> > The list is partial. new ones will be posted. I did not have the time
> > yet to post users plugins.
>
> > Massimo


-- 
To unsubscribe, reply using "remove me" as the subject.


[web2py] Re: Newbie Questions.

2010-04-13 Thread Yanni
Thank you Massimo.
re 1.  I noticed that I was looking at wrong views/controllers/etc ,
and my applications DID load. I apologize for the false report.
re 2. I will get back to you on this, on your FAQ I saw that GAE
doesn't allow for time/datetime . I am probably confused.
re 3. Thank you.



On Apr 13, 11:54 am, mdipierro  wrote:
> On Apr 13, 1:44 pm, Yanni  wrote:
>
> > Ok, so I'm a bit confused.
>
> > 1. I am using web2py on my Windows installation, however, after I stop
> > and restart the service, all my work disappears (the views,
> > controllers, etc).  How do I prevent this from happening?
>
> This should not happening. I have never heard of it before. Which
> web2py version? binary of source? Which windows version? How do you
> start web2py?
>
> > 2. Is there a way around GAE not allowing the timestamp option? The
> > application I am planning requires that the date-submitted is written
> > into the database, not necessarily the time.
>
> Field('fieldname','datetime') works well on GAE. Perhaps I did not
> understand the question.Try use it and if you enconuter any problem
> show us the code.
>
> > 3. Is there a list of plugins somewhere?
>
> http://web2py.com/plugins
>
> The list is partial. new ones will be posted. I did not have the time
> yet to post users plugins.
>
> Massimo


-- 
To unsubscribe, reply using "remove me" as the subject.


[web2py] Re: Newbie Questions.

2010-04-13 Thread mdipierro


On Apr 13, 1:44 pm, Yanni  wrote:
> Ok, so I'm a bit confused.
>
> 1. I am using web2py on my Windows installation, however, after I stop
> and restart the service, all my work disappears (the views,
> controllers, etc).  How do I prevent this from happening?

This should not happening. I have never heard of it before. Which
web2py version? binary of source? Which windows version? How do you
start web2py?

> 2. Is there a way around GAE not allowing the timestamp option? The
> application I am planning requires that the date-submitted is written
> into the database, not necessarily the time.

Field('fieldname','datetime') works well on GAE. Perhaps I did not
understand the question.Try use it and if you enconuter any problem
show us the code.

> 3. Is there a list of plugins somewhere?

http://web2py.com/plugins

The list is partial. new ones will be posted. I did not have the time
yet to post users plugins.

Massimo


-- 
To unsubscribe, reply using "remove me" as the subject.