[web2py:37607] OpenLayers is not defined

2009-12-21 Thread haftish21
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

[web2py:37608] how can I access the web2py environment from the system's interpreter?

2009-12-21 Thread DL
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'

[web2py:37609] apache + ldap authentication - interaction with Auth

2009-12-21 Thread tnorup
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

[web2py:37610] Need help with custom widget

2009-12-21 Thread weheh
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.

[web2py:37611] Re: Need help with custom widget

2009-12-21 Thread Yannick
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

[web2py:37612] Re: OpenLayers is not defined

2009-12-21 Thread mdipierro
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:37613] Re: how can I access the web2py environment from the system's interpreter?

2009-12-21 Thread mdipierro
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

[web2py:37614] Re: exporting csv file into table

2009-12-21 Thread vvk
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

[web2py:37615] Re: exporting csv file into table

2009-12-21 Thread mdipierro
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

[web2py:37616] GSoC 2010 ideas

2009-12-21 Thread Timmie
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

[web2py:37617] Re: Need help with custom widget

2009-12-21 Thread mr.freeze
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

[web2py:37618] Re: Need help with custom widget

2009-12-21 Thread mr.freeze
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

[web2py:37619] Re: exporting csv file into table

2009-12-21 Thread vvk
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

[web2py:37620] Sitemap Plugin or Sitemap Generator

2009-12-21 Thread Leandro - ProfessionalIT
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,

Re: [web2py:37621] Re: exporting csv file into table

2009-12-21 Thread Thadeus Burgess
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

[web2py:37622] Re: Sitemap Plugin or Sitemap Generator

2009-12-21 Thread JorgeRpo
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

Re: [web2py:37623] GSoC 2010 ideas

2009-12-21 Thread Jason Brower
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

[web2py:37624] Re: Sitemap Plugin or Sitemap Generator

2009-12-21 Thread Mengu
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

Re: [web2py:37625] Re: OpenLayers is not defined

2009-12-21 Thread Tim Michelsen
> 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

[web2py:37626] Documentation

2009-12-21 Thread sveinh
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

[web2py:37627] Re: Documentation

2009-12-21 Thread mdipierro
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

Re: [web2py:37628] Documentation

2009-12-21 Thread Thadeus Burgess
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:

[web2py:37629] Re: Documentation

2009-12-21 Thread Jake
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

[web2py:37630] Re: semantic web2py

2009-12-21 Thread Richard
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

Re: [web2py:37631] Re: How to limit get_twits function?

2009-12-21 Thread Tito Garrido
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

[web2py:37632] unable to find mod_whitebeam module

2009-12-21 Thread haftish21
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

[web2py:37633] Re: Need help with custom widget

2009-12-21 Thread selecta
i use the jquery plugin autofill for that http://remysharp.com/2007/01/25/jquery-tutorial-text-box-hints/