def index():
response.files.append('http://../lib/OpenLayers.js')
...
While I try to call functions from OL library (I'm using pydermonkey
module):
I'm still getting OpenLayers is not defined error. Can't I call
objects and functions from response files???
--
You received t
I know that it's possible to reach the environment from the web
interface by clicking on 'shell' under the controllers section of a
given application, but how can I access the web2py environment from
the system's interpreter? The shell that's included has a small
window that I can't resize, and I'
I've been trying to figure out how apache authentication interacts
with web2py's built-in Auth - in order to fulfil my objectives
described below. I've ended modifying tools.auth.login_bare() - and
that does not feel quite right. Comments on my approach are most
welcome.
My setup:
Apache 2.2. Auth
I have a textarea with some welcoming text already in it, but I'd like
a javascript to clear the text with when the user sets focus on the
textarea. The textarea and the rest of my form, of which textarea is a
part, are created using a custom form that also uses widgets to
display the form fields.
I think this will do if you use jquery:
$("#idTextarea").focus(function () {
$(this).val("")
});
make sure to have the id in the textarea html code
Hope it helps it not please provide and example of what you want...
Thanks,
Yannick P.
On Dec 21, 8:09 am, weheh wrote:
> I ha
The effect of response.files.append('http://../lib/OpenLayers.js')
is that the .sj file gets included in the header of the layout.html
This assumes you have a recent web2py_ajax.html
check the generated html to see if it is there.
On Dec 21, 4:56 am, haftish21 wrote:
> def index():
> re
web2py.py -S appname -M
On Dec 21, 3:48 am, DL wrote:
> I know that it's possible to reach the environment from the web
> interface by clicking on 'shell' under the controllers section of a
> given application, but how can I access the web2py environment from
> the system's interpreter? The shel
Sir,
thanks for reply in detailed manner, but I have multiple backups of my
system, I want to store them in a table or some place which can be
downloadable. Is there any way to accomplish this?
On Dec 19, 7:50 pm, mdipierro wrote:
> You uness you are customizing export_to_csv_file you can just
Please tell us more. I am not sure I understand what you want to do.
On Dec 21, 8:45 am, vvk wrote:
> Sir,
> thanks for reply in detailed manner, but I have multiple backups of my
> system, I want to store them in a table or some place which can be
> downloadable. Is there any way to accomplish t
Dear web2py developers,
wouldn't it be great to have web2py participating in the next year's
rally for coogle summer of code?
Here is my idea:
* expand the DAL to spatial data bases.
starting points:
- GeoCouch: http://gitorious.org/geocouch/pages/Home
- GeoAlchemy: http://www.geoalchemy.org/
W
Here is an example widget that should do what you want:
def text_widget(f,v):
inp = SQLFORM.widgets.text.widget(f,v)
inp['_onfocus'] = "jQuery(this).val('');"
return inp
This is how you would use it:
form = SQLFORM.factory(Field('mytext',
'text',defau
You probably only want to clear it if it's value is the default so:
def text_widget(f,v):
inp = SQLFORM.widgets.text.widget(f,v)
inp['_onfocus'] = "if(this.value == '%s'){this.value = '';}" %
f.default
return inp
On Dec 21, 9:22 am, "mr.freeze" wrote:
> Here is an example widget that
I take backups regularly, at say time1, time2, time3.
If I provide this function:
def myaction():
import cStringIO
file = cStringIO.StringIO()
db(...).select().export_to_csv_file(file)
return file.getvalue()
I'll be able to download DB at current state, not of previous times. I
How to implement this in Web2Py ?
--
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+unsubscr...@googlegroups.com.
For more options,
instead of using cStringIO, use a file object, and save the backup to the
hard disk. Then have a list of available timestamped backups, and stream the
file for download.
Though as discussed below, csv backup usually is not the best solution.
http://groups.google.com/group/web2py/browse_thread/thr
On Dec 21, 11:23 am, Leandro - ProfessionalIT
wrote:
> How to implement this in Web2Py ?
I think you need first a hierarchic menu.
Then you need a plugin that recognizes the menu (except for inactive
items) and print only the page titles with their respective links.
--
sig text
--
You receiv
I agree. GSOC changed my life. And I would love to see Web2py a part
of it.
It would be nice to have a new webdesign with more blattent examples.
(That may be too easy.)
Fix the Visual designer and complete integrating that into web2py.
My 2 cents...
Jason
On Mon, 2009-12-21 at 07:11 -0800, Timmi
This changes depending on your application's structure.
On Dec 21, 6:23 pm, Leandro - ProfessionalIT
wrote:
> How to implement this in Web2Py ?
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googleg
> The effect of response.files.append('http://../lib/OpenLayers.js')
> is that the .sj file gets included in the header of the layout.html
> This assumes you have a recent web2py_ajax.html
I did it like this:
* copy web2py_ajax.html to web2py_ajax_ol.html
* in your map view use web2py_ajax_ol.html
Hi Massimo
I'm new to web2py and I'm very impress with what I've seen so far.
Great work!
I've been searching for documentation and the only thing I can get my
hands on are some slide-decks and a small version of the book.
Will I have to buy the book or download it for the complete
documentation
You can view it for free on scribd but the only option to download is
lulu. There will be a new version in summer 2010 because we already
have some undocumented new features but, as I did before, I will
probably just revise the chapter on DAL and the one on AJAX. I will
make those chapters availabl
The book is the de-facto documentation for web2py at the moment. I would
highly suggest purchasing a copy, as it is a great reference.
There is also web2pyslices.com which is starting to collect some excellent
"recipe" style solutions.
-Thadeus
On Mon, Dec 21, 2009 at 4:05 PM, sveinh wrote:
I would mention there is a "full screen" option on the free preview of
the w2p book. It makes reading much easier. The book is exceedingly
well written and comprehensive, with some minor errors here and
there. I think there is an errata, but i haven't needed it yet..
I would also mention that o
thanks!
On Dec 21, 8:21 am, Massimo Di Pierro wrote:
> web2py.plugin.drupal_theme_ld.w2p
> 268KViewDownload
>
>
>
> Install this plugin to get the new theme. The menu is hardcoded so
> needs to be edited to use MENU(response.menu)
--
You received this message because you are subscribed to t
Looks like it just returns 1 result for:
http://search.twitter.com/search.atom?q=from%3Aweb2py
strange... but thanks for your answers!
On Mon, Dec 21, 2009 at 12:33 AM, mr.freeze wrote:
> You should be able to search by user with from%3Auser (url encoded
> 'from:user') :
> http://search.twitter
I do have mod_whitebeam in my modules folder and LoadModule whitebeam-
module modules/mod_whitebeam.so line in my httpd.conf
but I'm getting the following error while I try to re-start apache
the specified module could not be found.
--
You received this message because you are subscribed to the
i use the jquery plugin autofill for that
http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/