[web2py:31041] Re: file upload

2009-09-15 Thread Viablepanic
I have been looking for a similar feature. Pretty much the way weheh describes it, and much for the same reason. On Sep 2, 6:25 pm, weheh wrote: > Is there functionality that would enable the upload field to store > files in a path relative to uploads? Kind of thing where, if the > directory doe

[web2py:31042] Re: Admin page that works in GAE

2009-09-15 Thread Jon Romero
oh great! thanks! On Sep 14, 5:19 pm, mdipierro wrote: > Appadmin (the database administration) works on GAE. > > admin (the web based IDE) works on shared hosts (if they provide > HTTPS) but not on GAE (because GAE has a read only file system). You > can tweak the app.yaml and applications/admi

[web2py:31043] Re: sql designer for web2py HOWTO

2009-09-15 Thread Boris Manojlovic
Dear all, i hope i finally cleared all errors and glitches. Please use attached file instead that one i sent earlier as with this one you will be able to delpoy to GAE fix was casting row[0].xmldata to string as without that GAE would not do auto cast correctly for some reason... #r

[web2py:31044] Re: sql designer for web2py HOWTO

2009-09-15 Thread Fran
On Sep 14, 9:01 pm, Joe Barnhart wrote: > This version of SQLDesigner can be hosted LOCALLY by our own web2py > instance!  It is a totally integrated sql design facility for web2py. So it would be best distributed as an appliance. Massimo prefers people to host appliances themslves where possibl

[web2py:31045] Re: sql designer for web2py HOWTO

2009-09-15 Thread Fran
On Sep 15, 10:22 am, Fran wrote: > So it would be best distributed as an appliance. NB The www.sqldesigner licnese says it's fine to redistribute. I created an appliance & am happy to submit it to Massimo for hosting, but I won't host myself since I won't maintain it (not something I'll use per

[web2py:31046] Old addresses are staying when post data is given.

2009-09-15 Thread encompass
I have a link as follows: 123.123.123.123:8000/welcome/default/index In a program I use that sends xml data to a computer... The page works innitially except that it doesn't load any images, css etc... It is, infact trying to link from where it came from! otherweb.com/welcome/default/static/etc...

[web2py:31047] Re: logout problem

2009-09-15 Thread mika
yes, url points well logout works, but not directly after clicking 'logout' from menu I can click and click all the time, and it seems the page is reloaded (like index after login) and after some time, there's no problem and logout works it depends on some settings? (i didn't change the defaults)

[web2py:31048] Re: sql designer for web2py HOWTO

2009-09-15 Thread Joe Barnhart
Really? I've only seen the appliances on the web2py page. I didn't see any that linked to another site. Massimo already features a link to a live instance of SQL Designer running at http://designer.bojanka.net/ . I hope there isn't a problem with finding a place for this appliance because I thi

[web2py:31049] Re: tip of the day: icons in menu

2009-09-15 Thread Thadeus Burgess
I was just about to ask about this, thanks! -Thadeus On Mon, Sep 14, 2009 at 1:00 AM, mdipierro wrote: > > In web2py you create a menu like > >response.menu=[['Title',False,URL(...),[]] > > where [] is a submenu. > > You place an icon close to the title by doing > >response.menu=[[TAG

[web2py:31050] Re: free appliances

2009-09-15 Thread Thadeus Burgess
I also had a problem with appliances not running out of the box Ajax Spreadsheet Chat ImageGallery eStore All provide errors using latest stable on linux. -Thadeus On Mon, Sep 14, 2009 at 10:49 PM, suiato wrote: > > web2py's free appliances are great assets to know its capability and > cod

[web2py:31051] Re: sql designer for web2py HOWTO

2009-09-15 Thread Thadeus Burgess
SQLDesigner is one of the reasons I am going with web2py right now instead of DJango. That and migrations. And if by the time I finish my web application, web2py is a super easy one click deployment onto mediatemple.net, I will continue to use it in production. -Thadeus On Tue, Sep 15, 2009 a

[web2py:31054] Re: tip of the day: icons in menu

2009-09-15 Thread Thadeus Burgess
Perhaps you ment: [TAG[''](IMG(_src=URL(r=request, c='static', f='images/overview.png'), 'Overview')), False, URL(request.application, 'default', 'index')], This gives the desired functionality Is there any way to center the icon over the text? -Thadeus On Tue, Sep 15, 2009 at 10:05 AM, Tha

[web2py:31053] Re: tip of the day: icons in menu

2009-09-15 Thread Thadeus Burgess
Yes the syntax is incorrect. [TAG[''](IMG('Overview', _src=URL(r=request, c='static', f='images/overview.png'))), False, URL(request.application, 'default', 'index')], Provides Traceback (most recent call last): File "/home/thadeusb/Applications/web2py/gluon/restricted.py", line 178, in restr

[web2py:31052] Re: tip of the day: icons in menu

2009-09-15 Thread Jonathan Lundell
On Sep 13, 2009, at 11:00 PM, mdipierro wrote: > In web2py you create a menu like > >response.menu=[['Title',False,URL(...),[]] > > where [] is a submenu. > > You place an icon close to the title by doing > >response.menu=[[TAG[''](IMG(_src=icon,'Title'),False,URL(...),[]] > > where icon

[web2py:31055] Re: tip of the day: icons in menu

2009-09-15 Thread Thadeus Burgess
Solution to center icon over text Wrap the text in XML() so that it looks like this ...erview.png'), XML('Overview')), Fal... -Thadeus On Tue, Sep 15, 2009 at 10:09 AM, Thadeus Burgess wrote: > Perhaps you ment: > > [TAG[''](IMG(_src=URL(r=request, c='static', f='images/overview.png'), > '

[web2py:31056] Re: free appliances

2009-09-15 Thread mdipierro
what kind of errors are people getting? They may require configuration of email and other services. On Sep 15, 9:38 am, Thadeus Burgess wrote: > I also had a problem with appliances not running out of the box > > Ajax Spreadsheet > Chat > ImageGallery > eStore > > All provide errors using latest

[web2py:31057] jQuery post callback receiving an array

2009-09-15 Thread Bernardo Botelho
Hello everyone, I'm using the post ajax function with jQuery sending info to a web2py controller so he can handles with the database manipulation according the received information from the jQuery post. For the callback function, I need tow send a list with tow indexes (0 and 1) with 2 strings. So

[web2py:31058] Re: better support for web2py at WebFaction

2009-09-15 Thread CJSteel
I "made some noise" yesterday in both forums. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send em

[web2py:31059] Re: free appliances

2009-09-15 Thread suiato
following up on my own post: bookReviews worked by changing in models/bookblog.py Field('blog','blob') to Field('blog') not sure why 'blob' didn't work. geoIp worked after running the installation function first. grooverWiki worked when db=SQLDB("sqlite://db.db") is changed to db=SQLDB("sqlite:/

[web2py:31060] Re: free appliances

2009-09-15 Thread suiato
Hi Thadeus On 9月15日, 午後11:38, Thadeus Burgess wrote: > I also had a problem with appliances not running out of the box > > Ajax Spreadsheet > Chat > ImageGallery > eStore Hmm, all of them worked out of the box in my case, although i have just tested index and a few more functions. > > All prov

[web2py:31061] Re: sql designer for web2py HOWTO

2009-09-15 Thread Boris Manojlovic
Hello, I already host designer.bojanka.net and that is not a problem at all for me (it is hosted on GAE anyway) I'm "maintainer" of web2py sql "appliance" version - that means 2 files (attached) that you should add into scaffolding application to make it work as self hosted application with your o

[web2py:31062] Re: free appliances

2009-09-15 Thread Thadeus Burgess
I did not make a note of it, if you want me to, when I get home I can try them again, and post the errors. -Thadeus On Tue, Sep 15, 2009 at 11:15 AM, suiato wrote: > > Hi Thadeus > > On 9月15日, 午後11:38, Thadeus Burgess wrote: > > I also had a problem with appliances not running out of the box

[web2py:31063] Re: Help with calling the web-service from the web2py shell

2009-09-15 Thread V. K
Thanks guys. I am trying to build a browser-shell based database frontend and this will be very helpful. On Sep 14, 10:32 pm, Richard wrote: > internally fetch() calls urllib if you're not on GAE: > > def fetch(url): >     try: >         from google.appengine.api.urlfetch import fetch >        

[web2py:31064] Re: Dynamically populate PDF forms on the fly

2009-09-15 Thread Heronim
Thanks Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googl

[web2py:31065] Incorrect Documentation on SQLFORM.custom

2009-09-15 Thread Thadeus Burgess
http://web2py.com/AlterEgo/default/show/205 Has incorrect documentation on how to use the custom form objects The docs have self.custom.form.start and self.custom.form.close It is however... self.custom.form.begin and self.custom.form.end So much for backwards compatibility :) ( or really shit

[web2py:31066] Form with Many To Many relationship?

2009-09-15 Thread Thadeus Burgess
How would you go about using SQLFORM on a database object that has a many to many relationship. My current model displays correctly, however it errors on submit. Thanks for the help! """ Table definition """ db.define_table("room", Field("name", "string"), Field("size", "integer"))

[web2py:31067] Re: jQuery post callback receiving an array

2009-09-15 Thread Álvaro Justen [Turicas]
On Tue, Sep 15, 2009 at 12:47, Bernardo Botelho wrote: > Hello everyone, > > I'm using the post ajax function with jQuery sending info to a web2py > controller so he can handles with the database manipulation according the > received information from the jQuery post. For the callback function, I

[web2py:31068] Re: Incorrect Documentation on SQLFORM.custom

2009-09-15 Thread Thadeus Burgess
On a note, I just reread my post and wanted to apologize. That was rude and arrogant of me, sorry. Anyways, what ways are there to help make the freely available documentation better and keep it up to date? -Thadeus On Tue, Sep 15, 2009 at 11:57 AM, Thadeus Burgess wrote: > o much for backwa

[web2py:31069] Re: Incorrect Documentation on SQLFORM.custom

2009-09-15 Thread Yarko Tymciurak
np, Thadeus - this is our "spambot" test - glad to know you are a human :-) On Tue, Sep 15, 2009 at 2:54 PM, Thadeus Burgess wrote: > On a note, I just reread my post and wanted to apologize. That was rude and > arrogant of me, sorry. > > Anyways, what ways are there to help make the freely avai

[web2py:31070] Re: Incorrect Documentation on SQLFORM.custom

2009-09-15 Thread mdipierro
It was not nearly as bad as asking us to break backward compatibility because web2py does not match somebody's subjective concept of perfection. I think that post is now fixed. Thanks for pointing it out. Massimo On Sep 15, 2:54 pm, Thadeus Burgess wrote: > On a note, I just reread my post and

[web2py:31071] Sell real estates

2009-09-15 Thread Henry Joss
We are also well networked with other active buyers. This means we can even help with properties that don't match our current needs. http://www.greenmiraclesinc.com/inv.php?pg=10 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

[web2py:31072] Re: note on web2py examples

2009-09-15 Thread suiato
notice some errors still remain. too busy to check? (these are not important technically, but important as one of the first pages new comers look at. not all of the points i made may be necessary to be corrected.) -- Teru On 9月15日, 午後12:29, mdipierro wrote: > Fixed them all. Thank you! > > Mass

[web2py:31073] Re: jQuery post callback receiving an array

2009-09-15 Thread mr.freeze
Here is how I do it: controller: @service.json def get_days(): return ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] javascript: jQuery.getJSON("{{=URL(r=request,f='call',args= ['json','get_days'])}}", function(msg){ jQuery.each(msg, funct

[web2py:31074] Re: OpenShare :: OpenSource Ad Service built in web2py!

2009-09-15 Thread Alex Fanjul
Nice Service Jon!!! I'll give it a try with my blog... Alex F El 24/08/2009 17:53, Jon Romero escribió: > Hello, I've built OpenShare (http://openshare.emotionull.com) using > web2py and is running in Google App Engine and I would like to know > what you think about it. > > I am planning to relea

[web2py:31075] Multiple jQuery functions, one HTML page

2009-09-15 Thread Matthew
Are you able to use multiple jQuery functions per page in web2py? My code below only works when one of the functions is commented out: $(function() { $("#ent_input").autocomplete('get_suggestions', {autoFill: true, scroll: false}); }); // Fre

[web2py:31076] Session not saved during an internal redirect

2009-09-15 Thread John Heenan
If I do an internal redirect within a web2y site, such as though http://www.example.com/app/default/test1 below, then changes to the session are not saved. The flash message on redirect to test2 is 'session.flash is empty' instead of 'redirect from test1()'. Is there something I can do to change

[web2py:31077] Re: Multiple jQuery functions, one HTML page

2009-09-15 Thread mr.freeze
Yes, I believe it is a conflict between the plugins. Does this work?: $(function() { alert('one'); }); // Freebase Suggest $(function() { alert('two'); }); On Sep 15, 8:16 pm, Matthew wrote: > Are you able to use multiple jQue

[web2py:31078] Re: export database timeout error

2009-09-15 Thread Richard
it's strange then that I received the timeout error in the shell. Is this a bug, or is there another possible cause? On Sep 15, 12:07 pm, mdipierro wrote: > No timeout does not apply to the shell. > > On Sep 14, 6:56 pm, Richard wrote: > > > I was in the shell (hence the ">>>") when I receive

[web2py:31079] Re: Session not saved during an internal redirect

2009-09-15 Thread mr.freeze
Session.flash is automatically copied to response.flash after redirection so you shouldn't need to do anything. Does this work?: def test1(): session.flash='redirect from test1()' redirect(URL(r=request, f='test2')) def test2(): return dict() On Sep 15, 8:24 pm, John Heenan wrote:

[web2py:31080] Re: Session not saved during an internal redirect

2009-09-15 Thread John Heenan
Yes, it does work. Thanks very much. I was not aware session.flash was internally managed. session.flash can be overridden def test1(): session.flash='redirect from test1()' session.msg1='overriding session.flash from test1()' redirect(URL(r=request, f='test2')) def test2(): if session

[web2py:31081] Re: IS_NULL_OR(IS_UPLOAD_FILENAME())

2009-09-15 Thread weheh
Yes, it uploads a file when IS_NULL_OR(IS_UPLOAD_FILENAME()) is changed to IS_UPLOAD_FILENAME(). Same goes for IS_NULL_OR(IS_IMAGE()). On Sep 14, 1:20 am, mdipierro wrote: > Does it work without the validator? I suspect this is a bug with > IS_UPLOAD_FILENAME. > If that is the case I will fix

[web2py:31082] Getting changing password to work in Fire Fox

2009-09-15 Thread Dutch opera
Hi, I added a change password page to web2py. In the controller I have the following def change_password(): form=auth.change_password() form[0][-1][1].append(INPUT (_type='button',_value='Cancel',_onclick="window.location='%s';"%URL (r=request,f='index'))) return dict(form=form)

[web2py:31083] Re: Getting changing password to work in Fire Fox

2009-09-15 Thread mr.freeze
Your exact code works for me in firefox (3.5.3). Perhaps firefox is hung up? On Sep 15, 9:14 pm, Dutch opera wrote: > Hi, > > I added a change password page to web2py. > > In the controller I have the following > > def change_password(): >     form=auth.change_password() >     form[0][-1][1

[web2py:31084] Re: IS_NULL_OR(IS_UPLOAD_FILENAME())

2009-09-15 Thread weheh
Massimo, the real question is how to write a validator if a file or image upload field's value is optional? So it can be NULL or some other value that either conforms to filename conventions (in the case of IS_UPLOAD_FILENAME()) or image naming conventions (in the case of IS_IMAGE()). In both case

[web2py:31085] Dreamhost subdirectory via FastCGI

2009-09-15 Thread rppowell
Hey guys; I'm trying to setup web2py in a subdirectory off of my main www directory using FastCGI. I want to use subdirectories and .htaccess to manage and organize seperate projects, for example: Directory structure: www fastcgi web2py ... URL structure: index.html

[web2py:31086] Generic view

2009-09-15 Thread Arvind
Hello, When i see the examples, the basic form example..which is controlled by form_examples.py has no view. I believe that a generic view kicks in here, when no view is found for that controller. how is this view working ? can somebody please explain ? thanks Arvind --~--~-~--~~

[web2py:31087] Re: Generic view

2009-09-15 Thread Iceberg
On Sep16, 12:19pm, Arvind wrote: > Hello, > > When i see the examples, the basic form example..which is controlled > by > form_examples.py > > has no view. > > I believe that a generic view kicks in here, when no view is found for > that controller. > > how is this view working ? can somebody ple

[web2py:31088] Re: Dreamhost subdirectory via FastCGI

2009-09-15 Thread Thadeus Burgess
Have a look at using WSGI instead, I am currently using it with my web2py on dreamhost, and it runs faster than fastcgi. Take a look at these articles: The first one is about WSGI on dreamhost, and the second one has web2py instructions about it near the end of the page. The last page will most

[web2py:31089] T2 status

2009-09-15 Thread David Bain
Hopefully I've done enough RTFMing before asking this question. What's the status of t2? In the t2 tutorial video it was noted that the api was not stable and it might change. Is it stable now? Can I start deploying "production" stuff on t2? Where's the best source of uptodate documentation? I ch

[web2py:31090] Re: export database timeout error

2009-09-15 Thread mdipierro
You are not talking about the web based shell, are you? On Sep 15, 8:34 pm, Richard wrote: > it's strange then that I received the timeout error in the shell. Is > this a bug, or is there another possible cause? > > On Sep 15, 12:07 pm, mdipierro wrote: > > > No timeout does not apply to the sh

[web2py:31091] Re: IS_NULL_OR(IS_UPLOAD_FILENAME())

2009-09-15 Thread mdipierro
try this class MYVALIDATOR: def __call__(self,value): if not value: return (value,None): ret = IS_UPLOAD_FILENAME()(value) if ret[1]: return ret ret = IS_IMAGE()(value) return ret requires=MYVALIDATOR() On Sep 15, 9:38 pm, weheh wrote: >

[web2py:31093] web2py server freezes w/ shell appliance

2009-09-15 Thread V. K
I have installed the web2py appliance (http://www.web2py.com/ appliances/default/show/23). web2py server freezes if I try the following command: >>> import urllib >>> urllib.urlopen('http://127.0.0.1:8000/').read() This is probably happening because the "Shell" appliance is not thread safe as m

[web2py:31092] Re: Generic view

2009-09-15 Thread mdipierro
If the page is http://./whatever.html and no views/default/ whatever.html is found it uses views/generic.html. The same is true for .xml, .json, etc. On Sep 15, 11:25 pm, Iceberg wrote: > On Sep16, 12:19pm, Arvind wrote: > > > Hello, > > > When i see the examples, the basic form example..wh

[web2py:31094] Re: T2 status

2009-09-15 Thread mdipierro
t2 was a proof of concept. Almost everything that was in t2 is not in web2py core (from gluon.tools import *). The syntax is a little different by much more powerful. In the manual this is covered in the chapters on Crud, Auth and Service. t3 was built on t2 so it is deprecated to in favor of t4

[web2py:31095] Re: web2py server freezes w/ shell appliance

2009-09-15 Thread mdipierro
The shell appliance is old. Now web2py has a better web based shell that comes with admin. You can find a [shell] button under controllers. The problem is that is still freezes with sqlite. This is because sqlite locks the file. We are trying to resolve this problem. On Sep 15, 11:42 pm, "V. K"

[web2py:31096] Re: web2py server freezes w/ shell appliance

2009-09-15 Thread mdipierro
Try the shell in trunk. I added buttons to commit/rollback and unlock the db On Sep 15, 11:47 pm, mdipierro wrote: > The shell appliance is old. Now web2py has a better web based shell > that comes with admin. You can find a [shell] button under > controllers. The problem is that is still freeze

[web2py:31097] Error in 2nd edition manual? Formatting improvement request.

2009-09-15 Thread Anthon
I hope this is the right (or at least an acceptable) place to post a note on the manual (2nd edition PDF). On page 70 the top example line 4 works on db.image, I think you want it to work on db.comment instead. I also have a layout improvement request for the manual code layout (I am not sure wh

[web2py:31098] Re: sql designer for web2py HOWTO

2009-09-15 Thread ionel
Hello Boris, I tried to install the wwwsqldesigner but with no success. I'm unable to list the database objects: Save/Load -> List items. Firebug says: GET http://localhost:8000/test/static/designer/default/*backend/*web2py*/?action=list 400 BAD REQUEST Response: Invalid request I use Python

[web2py:31099] Re: Error in 2nd edition manual? Formatting improvement request.

2009-09-15 Thread mdipierro
Thank you. On Sep 16, 12:35 am, Anthon wrote: > I hope this is the right (or at least an acceptable) place to post a > note on the manual (2nd edition PDF). > > On page 70 the top example line 4 works on db.image, I think you want > it to work on db.comment instead. > > I also have a layout impr