I'm seeing this behaviour as well (on GAE live but not SDK). In my
case sessions are in memcache not db. Can't pinpoint when it started
but noticed it earlier this week. Haven't updated web2py in quite some
time (I've been running 1.65.11).
On Mar 10, 4:47 pm, Richard wrote:
> I forgot to mentio
rovide an API to store
> sessions in memcache. If you have implemented it perhaps we should
> include it in web2py so I can help debug it if there is a problem.
>
> On Mar 11, 12:04 pm, Ted G wrote:
>
>
>
> > I'm seeing this behaviour as well (on GAE live but not SDK)
> When you hit the URL 'appname/default/index':
>
> > * It is the responsibility of the function index() in the controller
> > file default.py to return an item called 'some_db_records'
> > * The function bar() in controller foo.py is not called
>
>
Massimo,
With respect to the new file upload remembering the file name. Are
there accompanying methods to get and set the filename after upload of
the file?
In my example, my app is running on GAE, therefore uploaded files are
being stored in the DB. I require the ability for the user to see a
l
tion that replaces
> form.vars.filefieldname.filename before the file is actually loaded.
> You can also define a custom download action.
>
> There is no exposed API to do this since the current mechanism is
> quite complex and I do would not encourage bypassing it.
>
> Massim
I think the "patch" may have been the change I suggested in this
thread dealing with file uploads using forms within a jDiv.
http://groups.google.com/group/web2py/browse_frm/thread/34533d763a5e856f/c6cb190b051a03bc?lnk=gst&q=jdiv+file+upload#c6cb190b051a03bc
Basically the change was to utilize j
Is the work being done with jPolite meant to replace the work that was
being done with jDiv?
I've been using a modified version of the older jDiv code in my app.
Should I be looking instead to use jPolite?
Ted
On May 19, 12:06 pm, mdipierro wrote:
> I turnedjpoliteinto a web2py app.
>
> http
I have an application in which I need to have the view rendered by a
controller be specified using a parameter to that controller.
I believe I could do the following based on what I've dug up in this
forum:
def index():
try:
response.view='default/' + request.args[0] # eg.
'indexview2.ht
That would be amazing. This will help to enable a very important part
of my app's functionality.
Thank You.
On Jun 18, 8:31 pm, mdipierro wrote:
> not easy to do now, but easy to add. I will add this to trunk
> tomorrow.
>
> Massimo
>
> On Jun 18, 4:30 pm, Ted G wro
Hi Massimo,
I've been watching trunk. Have you had any luck with this?
Ted
On Jun 18, 8:31 pm, mdipierro wrote:
> not easy to do now, but easy to add. I will add this to trunk
> tomorrow.
>
> Massimo
>
> On Jun 18, 4:30 pm, Ted G wrote:
>
>
>
> > I have
we want.
>
> > > Note that response.stream already works this way so it would be
> > > perhaps more consequential, too.
>
> > > On Jun 22, 9:03 pm, mdipierro wrote:
>
> > > > I should be able to di it tomorrow if no major obstacles.
>
> > &
I'm not sure of the best way to approach this, any suggestions?
I am inserting records into a table that contains an upload field for
an image (which is stored in the table as a blob). The user will be
able to later change this image via a form, and I wish to expose the
field for download, thus t
FYI,
After I upgraded to Snow Leopard web2py appeared to run fine (I am
running it under the GAE SDK).
However, I was running with PIL installed for image manipulation and
this broke. After several unsuccessful attempts to install PIL within
Python 2.6 on Snow Leopard (if anyone comes up with a
ncoded_filename = base64.b16encode(filename).lower()
newfilename = '%s.%s.%s.%s' % \
(tablename, fieldname, uuid_key, encoded_filename)
newfilename = newfilename[:122]+'.'+extension
return newfilename
Ted
On Aug 30, 11:59 pm, Ted G wrote:
> I'm
In the Google App Engine Launcher Preferences you can set the python
path to 2.5. I had to do this as well after upgrading to Snow Leopard
as PIL would not work Snow Leopard Python2.6
On Sep 1, 1:13 am, cpt1002 wrote:
> Hello,
>
> So I upgraded Mac OS X to 10.6 and I get some errors when I try
I'm wondering if anyone has tips on where I should start in trying to
track down performance problems running my web2py application on GAE.
Initially I created an application using only the api's supplied by
GAE. This app was very fast in terms of response times.
I've since recreated and updated
Thank you for the tips. I'll work through these and determine if I can
find a specific root cause of the performance problem.
I've been testing on a particular page of the application that lists a
number of items along with thumbnail images for those items. The
thumbnails are images placed into a
I'm having a problem using upload fields within forms that are used
within jDiv containers. Testing edit() below by itself provides a form
that I can successfully select and update an image. When I encapsulate
the same edit() within a jDiv, all fields update with the exception of
the upload field,
I've been trying out the new jDiv container, which works well with the
exception of forms containing upload fields. I thought I would start a
new thread for this, as my previous post (included below), seemed out
of place in the old thread.
Note that in the example code below, I've also tried repl
n JS library used to handle jDiv. I will investigate
> > but it will not be solved overnight.
>
> > Massimo
>
> > On May 1, 2:21 pm, Ted G wrote:
> > > I've been trying out the new jDiv container, which works well with the
> > > exception of forms conta
jDiv.
>
> There's probably a better way to do this, but this works for now.
>
> -wj
>
> On Fri, May 1, 2009 at 4:52 PM, Ted G wrote:
>
> > On a related note:
>
> > What is the best way to trigger a Javascript function upon a jDiv load
> > or form subm
y for submitting forms? Incorporating this plugin
would also open the door to other form behavior customizations on the
client side such as progress meters, etc, which would also be very
useful.
Ted
On May 1, 4:29 pm, Ted G wrote:
> That is how I've resorted to for now as well (with the exception
code for HoursjDiv i
> have it trigger FormjDiv to open it up again with a new form (like click the
> first top button) and also to refresh contents in Last20itemsjDiv.
>
> There's probably a better way to do this, but this works for now.
>
> -wj
>
> On Fri, May 1, 2009
pm, mdipierro wrote:
> Can you provide an example? I am not sure this cannot be done already.
>
> On May 4, 4:28 pm, Ted G wrote:
>
> > A bit more follow up on this topic of taking action after an ajax load
> > call on the jDiv.
>
> > Right now the jDivLoad func
});
command=xhr.getResponseHeader('web2py-jDiv-Commands');
if(command) eval(command);
if(onLoadCmd) eval(onLoadCmd);
$(target).attr('status','loaded').trigger('loaded',callback);
I've used the same technique you describe in order to create a better
form layout. In my case I did not have as many fields, but I did have
a few text areas, which created a "vertically challenged" form.
Same as your approach, I create a form using SQLFORM as per normal and
pass it to the view wi
If you do a search on jDiv you will find a few recent threads
discussing this topic (related to the example link provided by
Massimo). I've been heading down this road myself, creating a site
where site pages are simply container based layouts containing re-
useable "applets". The pattern I've fou
With the RSS Examples and 90 second Blog example in FAQ, latest
Twitter examples and GAE hosting (or existing web2py server), it would
seem that all the pieces are there to put together a basic free hosted
web2py blog with the ability to post entries (title + summary) to
twitter and provide an RSS
An FYI for anyone experimenting with jDivLoad ...
If you deploy a web2py app using jDivLoad to Google App Engine (this
does not happen in the SDK), you may receive 411 errors when those
jDiv's attempt to load while using Firefox (this issue is not
necessarily isolated to just GAE).
The jDivLoad
29 matches
Mail list logo