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
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
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
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
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
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...
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)
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
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
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
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
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
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
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
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'),
> '
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
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
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
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:/
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
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
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
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
>
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
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
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"))
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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)
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
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
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
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
--~--~-~--~~
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
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
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
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
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:
>
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
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
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
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"
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
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
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
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
59 matches
Mail list logo