I want to have a variable(name) that can be read and manipulated by all
active sessions.
This is useful for a timer that I want to implement. It would make it
easy for me to still have access by multiple users if needed.
Do I really need to save it to a database first? (It would be much more
labor
whooops forgot to link the slice I made
http://www.web2pyslices.com/main/slices/take_slice/74
On Mar 13, 4:27 pm, mdipierro wrote:
> The answer to your question is long. I will try write a blog post
> about it.
>
> On Mar 12, 6:26 am, Rahul wrote:
>
>
>
> > Hi All, Massimo,
> > I'
here's my problem
File read.html ( extend Layout.html)
{{extend 'layout.html'}}
{{=post.title}}
{{include 'rating.html'}}
It works well
i change{{ include 'rating.html'}} ---> {{include}}
And in rating.html add {{ extend read.html }}
It doesn't work ... Error:NameErro
Thanks Massimo and selecta. I hope I'll get the answers soon :-)
Thank you,
Rahul
On Mar 13, 8:27 pm, mdipierro wrote:
> The answer to your question is long. I will try write a blog post
> about it.
>
> On Mar 12, 6:26 am, Rahul wrote:
>
> > Hi All, Massimo,
> > I've been designi
Hi
I've uploaded web2py to my hosting account in site5 (a shared account,
unix server)
Then I've run: python2.6 web2py.py
Now what? how can I access web2py from the browser? what is the URL to
type?
When I ran the above command in putty SSH, it replied with:
===
w
good point.
On Mar 14, 8:58 pm, Graham Dumpleton
wrote:
> You can potentially also use any error page as a tell tale fingerprint
> if defaults are used as different frameworks are going to each have
> their own.
>
> For example:
>
> http://www.web2py.com/examples/default/xxx
>
> Returns:
>
> inva
Using a database for this purpose is the most general solution.
We do not have another mechanism for that and the reason is that
everybody would want a different locking mechanism.
For example is a client is using a variable should all other clients
be locked and prevented from accessing the varia
On Mar 13, 4:25 pm, mdipierro wrote:
> If I understand you are asking for a web2py level plugin system vs an
> app level plugin system. This has nothing to do with relocation of
> plugins under an app subfolder. Am I correct?
Well maybe but consider the following
pseudo ls
/app1/.cvs
/app1/con
Good point. A view file can include as many other view files as you
like but can only extend one if itself is not included.
Think of if as a tree structure. It is either parent who decides who
the children are (include them) or the child decides who its parent is
(extend it). You can have it both
You do not have one. By default the url is (as it says)
http://127.0.0.1:8000
but that is a development setup and the url is not visible from
outside for security reasons.
You have various options depending on what you want to do:
1) run without https
python2.6 web2py.py -i 0.0.0.0 -p
I understand the argument. Each of the system have pros and cons.
If a plugin resides outside the app you have these problems:
1) app would not be portable because plugins would not be packages
with it
2) there would be problems if different apps require different
versions of the same plugins
Any
Thanks for the supportive response, Patrick. Of course you are right,
from an educational perspective, your recommended approach tends to be
most effective, in my experience also.
My problem is: i do have business need for a Wiki with all the typical
functionality -anything less would likely not b
Hi all,
Currently web2py validation works on CRUD and SQLFORM. But some of us
don't use those and build their forms by hand. But when this is the
issue we have to validate every input ourselves in the controller
which is not nice so I have came up with an idea. I can set an
error_message per field
No way. ;-)
First of all, I am not sure what is the problem you are trying to
solve. Even if you have custom forms and you build all the form html
manually you can still use the existing validation mechanism.
Second, there is a logical problem. Validators are designed to take
the input as submitt
> First of all, I am not sure what is the problem you are trying to
> solve. Even if you have custom forms and you build all the form html
> manually you can still use the existing validation mechanism.
I don't want to use crud or sqlform or any html helper. i build my
forms manually. and actually
Hello,
I'd like to format a string field in my view of a SQLFORM. I manage to
do it via :
form.element(_name='field')['_attribute']=x
Whereas it works fine for a datetime and an integer field, it doesn't
work for a string field, which I suppose is render with a textarea
widget.
Here is an exemple
Thanks very much for your reply. I find it hard to understand those
terms.
But what if I created web applications locally, on my computer, then
upload them to my web account by ftp or control panel. Can I then turn
them into websites for users to access through their browsers?
Please give me simpl
Hey let's throw a wrench in a pick IIS server error pages! :P
---
j
On Mon, 2010-03-15 at 02:06 -0700, mdipierro wrote:
> good point.
>
> On Mar 14, 8:58 pm, Graham Dumpleton
> wrote:
> > You can potentially also use any error page as a tell tale fingerprint
> > if defaults are used as different
Just a guy but you have to go to the webpage you have registered but
perhaps your ip addy...
try typing:
ifconfig
It will tell you the ip addy of your server... try that with the :8000
at the end.
BR,
Jason
On Mon, 2010-03-15 at 01:04 -0700, solom wrote:
> Hi
>
> I've uploaded web2py to my hostin
You can certainly develop your program locally just fine.
When you want to upload it to your server you still need a web2py setup
because web2py creates dynamic pages for people that view it with their
browsers.
Odds are when you access your server you use the same address as you
would with your we
You mean the ip address that my host gave to my domain name? or do you
mean the ip address of the shared server?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from th
El 15/03/2010 10:40, mdipierro escribió:
I understand the argument. Each of the system have pros and cons.
If a plugin resides outside the app you have these problems:
1) app would not be portable because plugins would not be packages
with it
I heard this argument many times from you Massi
I tried that, and putty replied me this:
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.5 (2010-03-11 15:19:08)
Database drivers available:
Starting hardcron...
WARNING:root:GUI not available because Tk library is not installed
choose a password:zmsm
I tried as you said, and putty replied with:
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2010
Version 1.76.5 (2010-03-11 15:19:08)
Database drivers available:
Starting hardcron...
WARNING:root:GUI not available because Tk library is not installed
choose a password:*
then in less than 2 or 3 minutes putty says:
killed.
Does that mean the severs closes after only 2 or 3 min.?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this
Massimo,
can not db.select() be used in /admin 0.py, etc. ?
On Saturday, March 13, 2010, snfctech wrote:
> I'm not sure I can help, but I would like to know what you're talking
> about.
>
> What "edit_area api helper"?
>
> Can't you view your tickets directly in the errors directory?
>
>
>
> > Second, there is a logical problem. Validators are designed to take
> > the input as submitted by a web form and not as passed to the input
> > function. For example for a IS_DATE a validator expects a "string" in
> > the user locale, while input expects a datetime.date object or an ISO
> > ser
Because probably Rques is type 'string' not 'text' so it rendered by a
INPUT not a TEXTAREA
On Mar 15, 5:46 am, JmiXIII wrote:
> Hello,
>
> I'd like to format a string field in my view of a SQLFORM. I manage to
> do it via :
> form.element(_name='field')['_attribute']=x
> Whereas it works fine fo
could it be a DNS issue?
can you try http://:8000 ?
On Mar 15, 6:58 am, solom wrote:
> I tried as you said, and putty replied with:
> web2py Enterprise Web Framework
> Created by Massimo Di Pierro, Copyright 2007-2010
> Version 1.76.5 (2010-03-11 15:19:08)
> Database drivers available:
> Start
> plugins as they require by some kind of "plugin panel" or so... In deed,
> that is the meaning of "plug-ins", isn't it?
> But you must to share the plugins to be portable (as you say) maybe we are
> not talking about plugins at all...(but components).
Massimo's definition of a plugin is not the
admin does not have a db and, in my opinion, should not have one.
I am still a bit lost about what you want to do.
On Mar 15, 7:21 am, Wes James wrote:
> Massimo,
>
> can not db.select() be used in /admin 0.py, etc. ?
>
> On Saturday, March 13, 2010, snfctech wrote:
> > I'm not sure I can
Thadeus is right. We have gone over this before. We should use the
work plugins ONLY for the current mechanism and use a more specific
name for other types of objects people now refer to as plugins.
When I think about hooks I think of a CMS app for example and I would
like to see a subset of curre
edit_area Ajax to data search for API items.
On Monday, March 15, 2010, mdipierro wrote:
> admin does not have a db and, in my opinion, should not have one.
>
> I am still a bit lost about what you want to do.
>
> On Mar 15, 7:21 am, Wes James wrote:
>> Massimo,
>>
>> can not db.select() be used
Alex,
once more let me clarify. I am not opposing your proposal. I am just
saying that the proposal is vague because (as far as I understand you)
what you ask can already be done. I just have never posted an example
because I do not like it. The fact I do not like it does not mean I
want to preven
You wrote a patch to editarea but I am not sure I have the latest one.
Can you email it to me again so I can see it?
massimo
On Mar 15, 8:39 am, Wes James wrote:
> edit_area Ajax to data search for API items.
>
> On Monday, March 15, 2010, mdipierro wrote:
> > admin does not have a db and, in m
You're right this a string field , but when I tried to use first
[_size] to format it like the other fields... but it does not work,
the field is always the same length. I have the same pb with another
string field. I am rendering them in a table with no attrivutes, so I
do not think that matter. I
For now look at the following links that may help you:
For an example of {{=LOAD(...)}}
http://gluonframework.wordpress.com/2010/03/07/web2py-ajax-and-forms/
You can load an action from the same app or other apps.
For ways an app can share data with another app:
http://www.web2py.com/book
There is this in base.css
input.string {
width: 420px;
}
textarea.text {
width: 420px;
height: 200px;
}
That is why the _size is ignored. You can remove the code in base.css
or use css, instead of _size.
On Mar 15, 10:18 am, JmiXIII wrote:
> You're right this a string field , but w
What is the best way to prevent caching of all files in a subfolder of
static from being cached. The files are served by web2py. Any help is
appreciated.
Thanks,
Nathan
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, sen
The latest version of pyrtf on sourceforge (as indicated in the
apendix of the web2py book: http://pyrtf.sourceforge.net) is 0.45,
however the one included in gluon/contrib is indicated as 0.46
(according to the README).
Did this come from some other place, or is that version update because
of the
On Mar 15, 2010, at 5:14 AM, solom wrote:
> then in less than 2 or 3 minutes putty says:
> killed.
> Does that mean the severs closes after only 2 or 3 min.?
This suggests that your hosting company imposes a limit on how long a program
can run. The only way you can run web2py in such an environm
Static files? In the end it is the browser that caches them. web2py
does not ask the browser to cache them.
You can try serve them using a custom controller. In this case web2py
would do (under the hood):
response.headers['Content-Type'] =
contenttype('.'+request.extension)
pyrtf is no longer maintained. The most recent I could find is:
http://newsgroups.derkeiler.com/Archive/Comp/comp.lang.python.announce/2007-05/msg00048.html
I think at this point we should consider our a for. Want to be the
maintainer? I will take your patch is applied to 0.46.
On Mar 15, 10:28 a
site5 say they support fcgi, so you should be able to use web2py/
fcgihandler.py
Something like this:
export PYTHONPATH=$PYTHONPATH:/path/to/web2py/
cat << EOF > ~/public_html/.htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(fcgihandler.py)
RewriteRule ^(.*)$ fcgihandler.py/$
p.s. make sure fcgihandler.py is executable and edit the first line:
#!/usr/bin/env python
in case python is somewhere else.
On Mar 15, 10:54 am, mdipierro wrote:
> site5 say they support fcgi, so you should be able to use web2py/
> fcgihandler.py
>
> Something like this:
>
> export PYTHONPATH=
Ok Thadeus, Massimo,
Maybe I'm wrong with my understanding of the plugins system.
This time, I wasn't talking about folder locations or hooks, but the
relation between plugins and apps portability (as a feature).
I will try to get deeper in the plugin system, really I'm not an expert
programmer
Yes, static files. I am basically asking how to set the cache control
headers for static files. Models don't get processed so I'm not sure
where to do it without hacking main.py. Am I thinking about this
wrong?
On Mar 15, 10:37 am, mdipierro wrote:
> Static files? In the end it is the browser
I think I good exercise (for all of us) would be to try create an
empty "plugins" app an try to write plugins that go in there but can
be called from other apps and see what difficulty we encounter. The
current plugins will not work this way because of the models. Shared
plugins should prob
You raise a good point. There is no way to do it because I assume on a
production system this should be done by the web server.
Perhaps we should have something like routes.static.py in the static
folder with cache configuration options for the files in there.
On Mar 15, 11:00 am, "mr.freeze" wro
Due to my lack of familiarity with Windows and my refusal to spend
time on it I am running into a problem. I cannot build the web2py
binary including ssl 1.15 in order to use rocket. A simple solution
would be to make the window binary with Python 2.6 instead of Python
2.5.
Any objection?
Massimo
On Mar 15, 2010, at 8:54 AM, mdipierro wrote:
> site5 say they support fcgi, so you should be able to use web2py/
> fcgihandler.py
The 'killed' message is ominous, though. Perhaps the use of fcgi and a
long-running web2py process requires a different account level.
I speak from experience. web2
I guess I have misinterpreted this code from my db.py which was part
of the web2py distro that I uncommented. The comments within the code
stated the sessions would be stored in memcache.
try:
from gluon.contrib.gql import * # if running on Google App Engine
except:
db = SQLDB('sqlite:/
If I understand this, the fcgi process is started by the web server
and therefore may be subject to different restrictions.
I never tried it myself on a shared hosting environment.
On Mar 15, 11:21 am, Jonathan Lundell wrote:
> On Mar 15, 2010, at 8:54 AM, mdipierro wrote:
>
> > site5 say they su
You are right. That does use memcache. I forgot about it. I will run
some tests and let you know.
Massimo
On Mar 15, 11:27 am, Ted G wrote:
> I guess I have misinterpreted this code from my db.py which was part
> of the web2py distro that I uncommented. The comments within the code
> stated the
On Mar 15, 2010, at 9:29 AM, mdipierro wrote:
> If I understand this, the fcgi process is started by the web server
> and therefore may be subject to different restrictions.
> I never tried it myself on a shared hosting environment.
That would be good, yes. Not an option for me, sadly.
Fortunate
Why should we call it something different when the rest of the open
source community views it the same as we do? I mean, that is where we
got the definition of plugin, is from other open source projects.
Iin my research of pluggable systems you have the following architecture.
Base System -> The
Ahah! One step closer to app level routes!
-Thadeus
On Mon, Mar 15, 2010 at 11:15 AM, mdipierro wrote:
> You raise a good point. There is no way to do it because I assume on a
> production system this should be done by the web server.
> Perhaps we should have something like routes.static.py
On Mar 15, 2010, at 9:42 AM, Thadeus Burgess wrote:
> Ahah! One step closer to app level routes!
Hmm, that's a good thought. I'm looking at the overall handling of URL parsing
and routing, and hadn't been thinking about this.
So what I'm thinking now is that the global routing would be only the
Mengu Not an option to add validation on the database level other
than database type options (like column type, isnull, etc etc).
Massimo's point is that SQLFORM and the Validators provide a pivotal
role in web2py, they take the incoming HTML formatted data, and
convert this to python types. (
Nope, not here.
On Mar 15, 9:20 am, mdipierro wrote:
> Due to my lack of familiarity with Windows and my refusal to spend
> time on it I am running into a problem. I cannot build the web2py
> binary including ssl 1.15 in order to use rocket. A simple solution
> would be to make the window binary
shold this problem be solved as part of an app-level routes? I was
looking at it as different.
On Mar 15, 11:42 am, Thadeus Burgess wrote:
> Ahah! One step closer to app level routes!
>
> -Thadeus
>
> On Mon, Mar 15, 2010 at 11:15 AM, mdipierro wrote:
> > You raise a good point. There is no way
This would be a good way to include more coverage within web2py since it
will span more versions. Probably the only noticeable difference would
be some deprecation warnings. Perhaps you could turn off deprecation
warnings in the build?
-tim
On 3/15/2010 11:20 AM, mdipierro wrote:
Due to my
On Mar 15, 2010, at 9:20 AM, mdipierro wrote:
> Due to my lack of familiarity with Windows and my refusal to spend
> time on it I am running into a problem. I cannot build the web2py
> binary including ssl 1.15 in order to use rocket. A simple solution
> would be to make the window binary with Pyt
How would this impact those of us who develop with the current Windows
binary image and then test/deploy with GAE which requires Python 2.5?
I hate developing directly with dev_appserver.py because it runs so
much slower.
--
You received this message because you are subscribed to the Google Group
"When all you have is a hammer, everything looks like a nail."
--/Maslow's hammer/
On 3/15/2010 11:42 AM, Thadeus Burgess wrote:
Ahah! One step closer to app level routes!
-Thadeus
On Mon, Mar 15, 2010 at 11:15 AM, mdipierro wrote:
You raise a good point. There is no way to do it be
That's a good point. I can only think of two possible implications:
- Possible deprecated messages on the console (would not show up in
production though)
- It will allow 2.6 syntax whereas production would not (so you would
have to be careful)
Neither of these would be blockers for me if I w
No objection.
The python website encourages new users to use python 2.6 anyways.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py
On Mar 14, 9:58 pm, Graham Dumpleton
wrote:
> You can potentially also use any error page as a tell tale fingerprint
> if defaults are used as different frameworks are going to each have
> their own.
Not only that, I find it very revelative that it states whether the
app is wrong, the controller
On Mar 15, 11:37 am, Thadeus Burgess wrote:
> Why should we call it something different when the rest of the open
> source community views it the same as we do? I mean, that is where we
> got the definition of plugin, is from other open source projects.
Thadeaus is hitting the same mark we have h
> You can certainly develop your program locally just fine.
> When you want to upload it to your server you still need a web2py setup
Is there any way I can just use web2py locally to create an
application, then somehow compile my application into a website that
consists of .py files only (or any
On Mar 15, 1:34 pm, solom wrote:
> > You can certainly develop your program locally just fine.
> > When you want to upload it to your server you still need a web2py setup
>
> Is there any way I can just use web2py locally to create an
> application, then somehow compile my application into a websi
On Mar 15, 6:28 am, Mengu wrote:
> > First of all, I am not sure what is the problem you are trying to
> > solve. Even if you have custom forms and you build all the form html
> > manually you can still use the existing validation mechanism.
>
> I don't want to use crud or sqlform or any html hel
I was just raising the point that if we are going to have routes for
static files, why not have routes for the app while we are at it?
At least this way, the routes would be more "portable" so that routes
can then be packed along with your app?
Or would this be trying to open a can of worms that
On Mar 15, 5:28 am, Mengu wrote:
> > First of all, I am not sure what is the problem you are trying to
> > solve. Even if you have custom forms and you build all the form html
> > manually you can still use the existing validation mechanism.
>
> I don't want to use crud or sqlform or any html help
> Draw a map out of the "territory"
> Have fun - work locally
I'm sorry, I did not understand.
So is it possible or not?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscri
On Mar 15, 2:24 pm, solom wrote:
> > Draw a map out of the "territory"
> > Have fun - work locally
>
> I'm sorry, I did not understand.
> So is it possible or not?
To understand what you are asking, you need to listerally draw
yourself a diagram of what is involved in serving a web page (static
c
As I said. Everybody here wants something different.
I am only concerned with allowing each of you to be able to provide a
proof concept of what you want and not commit to implement any change
in web2py that will be restrictive in the long term.
When I use the word "plugins" I just mean these: htt
Not at all. app level routes would be feasible and easy to implement.
I just did not have the time. The issue is not implementing as much as
designing the syntax.
Should the main routes delegate? Should it be explicit? Should it be
implicit? (I think implicit)
That we have the issue of setting ca
Perhaps this will help.
http://gluonframework.wordpress.com/
On Mar 15, 1:34 pm, solom wrote:
> > You can certainly develop your program locally just fine.
> > When you want to upload it to your server you still need a web2py setup
>
> Is there any way I can just use web2py locally to create an
It is possible to move web2py applications since they are just folder.
As explained here:
http://gluonframework.wordpress.com/
You still have to setup web2py to run a web server (the built-in one
or apache or a different one). That depends on a lot of details on
shared hosting since each one is d
On Mar 15, 2010, at 12:54 PM, mdipierro wrote:
> Not at all. app level routes would be feasible and easy to implement.
> I just did not have the time. The issue is not implementing as much as
> designing the syntax.
>
> Should the main routes delegate? Should it be explicit? Should it be
> implic
I have
routes_onerror( (*/*, '/init/default/error') )
the controller just brings up a search based on the requested_uri.
-Thadeus
On Mon, Mar 15, 2010 at 1:10 PM, Magnitus wrote:
> On Mar 14, 9:58 pm, Graham Dumpleton
> wrote:
>> You can potentially also use any error page as a tell tale
In general I think the routes.py should be in applicaitons//
On Mar 15, 3:28 pm, Jonathan Lundell wrote:
> On Mar 15, 2010, at 12:54 PM, mdipierro wrote:
>
>
>
> > Not at all. app level routes would be feasible and easy to implement.
> > I just did not have the time. The issue is not implementing
Nevermind - is working - there must have been an error somewhere else
yesterday - I am now getting results from a sqlite db :)
yhaaa!
On Mon, Mar 15, 2010 at 1:17 PM, Wes James wrote:
> On Mon, Mar 15, 2010 at 8:38 AM, mdipierro wrote:
>> You wrote a patch to editarea but I am not sure I ha
I'm building an app for finding ultimate frisbee tournaments, leagues,
and pickup games by date, geographical proximity, and other criteria
on GAE with a Flex front end. Hope to eventually expand to team,
league, and tournament management with online payments, and add a play
diagramming tool and so
The approach is sound. Devil is in the details, as usual. As for the
rest of your question, it is a python, and not a web2py, issue. Read
carefully the python doc on datetime. datetimes can be compared and
you can add and subtract them. You can also create a datetime variable
and set it to a certai
The second of those has already bitten me once. :( But then, I'm a
relative Python newbie. It would be really nice it GAE provided for
newer versions... but people have been begging for that for years.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" gr
* I was considering re-routing all mispelled urls to a default error page*
Maybe, setting it by default, could be a secure feature.
On Mon, Mar 15, 2010 at 9:31 PM, Thadeus Burgess wrote:
> I have
>
> routes_onerror( (*/*, '/init/default/error') )
>
> the controller just brings up a search base
On Mar 14, 2:51 pm, Albert Abril wrote:
> Hi!
>
> There's some way to check to check from the browser if a web is running
> web2py?
> For example, Could i know ifwww.web2py.comis running web2py from the
> browser?
>
> Just curious.
> Thanks.
Depending on your host OS you could should be able to
I did follow the steps in that site5 wiki page for django, using a
file where I saved only the lines you gave me for web2py:
export PYTHONPATH=$PYTHONPATH:/public_html/web2py/
cat << EOF > ~/public_html/web2py.htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !(fcgihandler.py)
Rew
There is a solution for you, I found this usefull for my research with
similar things: http://docs.python.org/library/datetime.html
look at timedelta object
--
Kuba
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send e
Hi,
@1 yes, routes_in does the magic for you, it works perfectly for me, you
should also consider to modifying routes_out to convert links back to
/yourapp/en/ format or you can do it "manually" in your templates ...
@2 yes, internalization framework T(...) should be used just for application
On Mar 16, 7:31 am, Thadeus Burgess wrote:
> I have
>
> routes_onerror( (*/*, '/init/default/error') )
>
> the controller just brings up a search based on the requested_uri.
>
> -Thadeus
do you reckon web2py should do this by default?
--
You received this message because you are subscribed to t
This is looking good! What about pulling the data from a web service
instead of storing in db? It seems like this would be painful to
maintain. Perhaps Massimo could expose epydocs somehow.
On Mar 15, 6:04 pm, Wes James wrote:
> You can test this by just replacing your admin with this admin. It
Nope.
The default is 404... but I do think it should say 404 instead of
Invalid Function But thats configurable in routes.py :)
-Thadeus
On Mon, Mar 15, 2010 at 7:08 PM, Richard wrote:
> On Mar 16, 7:31 am, Thadeus Burgess wrote:
>> I have
>>
>> routes_onerror( (*/*, '/init/default/err
Mind that this
export PYTHONPATH=$PYTHONPATH:/public_html/web2py/
was an example is this really the path to web2py /public_html/
web2py/ ?
At this point it should be running. I am not sure if you need to
restart apache. Perhaps they have a web interface to do so. You need
to ask them.
Massimo
add a few seconds:
>>> from datetime import datetime, timedelta
>>> d1 = datetime.now()
>>> d2 = d1 + timedelta(seconds=5)
difference in seconds:
>>> delta = d2 - d1
>>> delta.days * 86400 + delta.seconds
Richard
On Mar 15, 4:57 pm, Jason Brower wrote:
> I want to have a nifty countdown o
Yeah, I did it with dattime and in particular the timedelta function.
Thanks guys. The trick was that you have to actually seta "dummy year"
as they have called in it tutorials. Kind of weird but I understand the
issues with it.
Solved,
Jason
On Mon, 2010-03-15 at 23:59 +0100, Kuba Kucharski wrot
98 matches
Mail list logo