Somebody that uses fastcgi could help me please?
I am stuck.
I have shared hosting account and need to depploy web2py there.
The host says I need to use fastCGI to run python apps.
What are the steps needed?
--
To unsubscribe, reply using "remove me" as the subject.
Nobody else? Need more time?
Speak up or else... I will will post the answer.
--
To unsubscribe, reply using "remove me" as the subject.
In
>('/(.*)', '/riffant/default/index/$1'),
the (.*) is not named and therefore not set to $1. This is because of
how web2py uses regex shortcuts. You can do instead
('/$anything', '/riffant/default/index/$anything'),
$anything is a catch-all shortcut.
On Apr 14, 5:18 pm, Oatman wrote:
> Yo
You're quite right, after messing around, I've fixed up a very simple
route that works with POST, as you suggest it would:
[...]
('/new', '/riffant/default/new'), # works
[...]
However, I still have a (hopefully) simple routing problem, the last
hurdle I hope before I update the GaE version (T
I do not seem an immediate problem except the fact that a thread
started by the web server starts another thread and it may get killed
for long running tasks. I suggest you look into the admin/controller/
shell.py
Massimo
On Apr 14, 8:23 pm, Paul Wray wrote:
> Hello
> I would like to make some a
you can return a dict containing a list dict(a=[]) and write your
own view .json.
On Apr 14, 6:19 pm, Thadeus Burgess wrote:
> To be able to use jQuery fullCalendar with a json data store, we need
> the ability to return an array that is the json instead of a dict.
>
> Currently, you can only
Hello
I would like to make some administative build/test tasks for a web2py
application available via the web interface, with the output presented
to the html page in real time, like console output.
The code below seems to work reasonably well, but is this sort of
thing recommended/safe? Is there
To be able to use jQuery fullCalendar with a json data store, we need
the ability to return an array that is the json instead of a dict.
Currently, you can only return a dict from your view, but not a list
that can be encoded in the format that fullCalendar supports.
--
Thadeus
--
To unsubscri
selecta wrote:
I am currently migrating a legacy db (mysql) to web2py. I have written
some tooling that I will share as soon as I'm done (e.g. some code to
convert phpmyadmin exports of sql table creates to web2py code)
Right now I am dealing with the file uploads from the legacy db. What
I have
i went through this in GAE as well, and figured this out:
#get the storage, and tickle the right part to get the database
table
ts = TicketStorage(db=request.tickets_db)
table_obj = ts._get_table(ts.db, ts.tablename,
request.application)
if table_obj:
table_obj.truncate()
Just to be certain I have upgrade to the latest web2py and nothing has
changed.
On Apr 14, 2:26 pm, Chris S wrote:
> Oh, I'm running web2py Version 1.66.2 I believe. I haven't worked on
> this project since that was the current version. Updating shouldn't
> break anything right? If so I can
Oh, I'm running web2py Version 1.66.2 I believe. I haven't worked on
this project since that was the current version. Updating shouldn't
break anything right? If so I can give that a shot.
On Apr 14, 2:24 pm, Chris S wrote:
> Sure thing.
>
> In my default.py I have defined:
>
> -
Sure thing.
In my default.py I have defined:
-
def removeticket():
from google.appengine.ext.db import GqlQuery
from google.appengine.ext import db as gdb
import datetime
#Define number of days to keep ticket
OldestTicket=14
today = datetime.datetime.
This is not a Python error
> KindError: No implementation for kind
can we see the complete traceback and the code that triggers it?
On Apr 14, 1:40 pm, Chris S wrote:
> I'm trying to use a function that I can call via a cron job to remove
> old tickets and sessions. When I try to call the funct
I'm trying to use a function that I can call via a cron job to remove
old tickets and sessions. When I try to call the function on the
ticket I get "KindError: No implementation for kind". I suspect this
is because I need to import the model for the Tickets, but I can't
find where it's defined.
No but you can do
form=crud.create(db.person, onaccept = lambda form:
redirect(URL(r=request,f='another_form',args=form.vars.id)))
On Apr 14, 11:03 am, Avik Basu wrote:
> Hi,
>
> Is it possible to use a lambda function within the next argument in a
> crud create? I would like to redirect the u
Hi,
Is it possible to use a lambda function within the next argument in a
crud create? I would like to redirect the user to a new page based on
the id of the record that was just created. Example:
form=crud.create(db.person,
next= lambda form:
redirect(URL(r=request,f='another_form',arg
That document needs to be updated. The problem is I lost the source.
If anybody would like to take the time to extract the text from the
PDF we could work on it and update it.
On Apr 14, 10:01 am, Thadeus Burgess wrote:
> There is a PDF with web2py vs some other frameworks, this might help
> you
You can work around this by customizing the log messages. Anyway,
please email me the patch since I do not see it attached.
On Apr 14, 8:51 am, chris_g wrote:
> Denes,
> I also went down this path and this is what I got. When the Auth class
> references self.user.id it appears to be expecting tha
Routing does not affect post data so I do not think that is the
problem. Can we see the form action, the generated html and the
complete routes?
On Apr 14, 7:27 am, Oatman wrote:
> Hi all,
>
> I'm having some real trouble finding out how to get forms to self-
> submit successfully, when the URL t
I would just use the current cron folder if not objections
On Apr 14, 3:16 am, AchipA wrote:
> Yeah, fairly easy. One question though about the placement of the
> scripts. Most *nixes do this by placing the split files in a separate
> cron.d directory... Should we commandeer the cron directory fo
auth.define_tables() is missing
On Apr 14, 1:24 am, Ishbir wrote:
> Okay, so far I've managed to solve all the other problems but there is
> one that I am stuck on. This is the code-
>
> http://web2py.pastebin.com/nQMduejZ
>
> I do not want to store the username/password in the database but I
> w
There is a PDF with web2py vs some other frameworks, this might help
you in figuring out key elements to compare.
http://www.scribd.com/doc/12288297/Web2py-vs-Others
There is always the speed factor, every ASP site I visit
usually takes 15 to 45 seconds to load one page.
--
Thadeus
On Wed,
Hi,
For a presentation of web2py talk I've suggested them to include a
comparison with other technologies and highlight the advantages over
technologies such as asp.net. and PHP.
Please could you help me with this.
Thanks
Jose
--
To unsubscribe, reply using "remove me" as the subject.
Write your own download function for these?
The reason is because web2py stores the filenames in a safe format.
--
Thadeus
On Wed, Apr 14, 2010 at 7:54 AM, selecta wrote:
> I am currently migrating a legacy db (mysql) to web2py. I have written
> some tooling that I will share as soon as I'm
You are absolutely correct. While testing I used sqlitebrowser to
insert records, and it inserted strings instead of integers.
Thank you very much,
Sheldon
On Apr 13, 10:01 pm, mdipierro wrote:
> I do not understand.
>
> This should be correct
>
> auth_membership.user_id=4
>
> This should no
Denes,
I also went down this path and this is what I got. When the Auth class
references self.user.id it appears to be expecting that the user
table will have a field called 'id'. From glancing at the code it
appears that self.user.id is expected to be a key in a Storage , so in
effect the name of
Hi all,
I'm having some real trouble finding out how to get forms to self-
submit successfully, when the URL they are on is re-routed using
routes.py.
My app is called Riffant & I have a form running on / (/ is re-routed
to /riffant/default/index) which doesn't work using this config:
routes_in
I am currently migrating a legacy db (mysql) to web2py. I have written
some tooling that I will share as soon as I'm done (e.g. some code to
convert phpmyadmin exports of sql table creates to web2py code)
Right now I am dealing with the file uploads from the legacy db. What
I have done so far is t
there is a jquery plugin for that
http://www.joesak.com/2008/11/19/a-jquery-function-to-auto-fill-input-fields-and-clear-them-on-click/
{{response.files.append(URL(request.application,'static','jquery.autofill.js'))}}
{{=FORM(INPUT(_name='q',_size=10,_id="txtSearch"))}}