[web2py] DIV._fixup question

2010-05-19 Thread Ian Reinhart Geiser
Hi, it seems DIV._fixup(...) is only run in the constructor. For sanity wouldn't it make sense to have this functionality happen every time you append an element? The only reason I ask is from a "consistent api" point of view.

[web2py] Re: no comment

2010-05-19 Thread Ian Reinhart Geiser
I wonder if they will sue every user of YUI and other JS toolkits? On May 19, 4:21 pm, mdipierro wrote: > http://yro.slashdot.org/story/10/05/19/0028251/Microsoft-Sues-Salesfo... > > Two of the patents in question are a 'system and method for providing > and displaying a Web page having an embedd

Re: [web2py] Re: DIV.elements(...) question

2010-05-19 Thread Ian Reinhart Geiser
s cause unexpected behaviour? If so can you post > an example? Perhaps we can improve it. > > On May 19, 1:38 pm, Ian Reinhart Geiser wrote: > > Greetings, is there a technical reason why DIV.elements makes a copy > > of the elements that it returns? The reason I am aski

[web2py] DIV.elements(...) question

2010-05-19 Thread Ian Reinhart Geiser
Greetings, is there a technical reason why DIV.elements makes a copy of the elements that it returns? The reason I am asking is because I am making a minor change to it to allow it to call children's elements() method. This way I can overload the elements() method in those children. The reason I

[web2py] Re: generating html ids in web2py

2010-05-17 Thread Ian Reinhart Geiser
I found the problem... I was using the YUI selector to get the element, and when the uuid started with a number the CSS selector would fail. I just prepended some known text and now it works. On May 17, 12:42 pm, Ian Reinhart Geiser wrote: > That doesn't seem to work with IE 8 when I tr

[web2py] Re: generating html ids in web2py

2010-05-17 Thread Ian Reinhart Geiser
for this purpose. > > On May 17, 10:22 am, Ian Reinhart Geiser wrote: > > > Is there an easy way to generate unique element id properties for a > > web2py created DIV? I saw web2py_uuid, but that did not look like a > > good fit, or is it?

[web2py] generating html ids in web2py

2010-05-17 Thread Ian Reinhart Geiser
Is there an easy way to generate unique element id properties for a web2py created DIV? I saw web2py_uuid, but that did not look like a good fit, or is it?

[web2py] Re: grabbing scripts from a DIV object

2010-05-17 Thread Ian Reinhart Geiser
Oh I found the docs at http://www.web2py.com/AlterEgo/default/show/217 Thanks On May 17, 7:54 am, Ian Reinhart Geiser wrote: > Hi, I have a DIV object that has a bunch of children as well as a few > SCRIPT objects inside of it. I would like to recursively traverse the > DIV'

[web2py] Re: grabbing scripts from a DIV object

2010-05-17 Thread Ian Reinhart Geiser
DIV(SCRIPT()),SCRIPT(), etc.) > > scripts=a.elements('script') > > On May 17, 6:54 am, Ian Reinhart Geiser wrote: > > > Hi, I have a DIV object that has a bunch of children as well as a few > > SCRIPT objects inside of it. I would like to recursively traver

[web2py] grabbing scripts from a DIV object

2010-05-17 Thread Ian Reinhart Geiser
Hi, I have a DIV object that has a bunch of children as well as a few SCRIPT objects inside of it. I would like to recursively traverse the DIV's children to extract all of the SCRIPT objects contents. How might I attempt that?

[web2py] Re: wsgi won't load modules

2010-03-26 Thread Ian Reinhart Geiser
did you install it? Sure you have > a simple python instance? > > On Mar 25, 10:10 pm, Ian Reinhart Geiser wrote: > > > greetings, i have been testing with the stand alone web2py server and > > have some classes in the modules folder of my project.  i just pushed > > it

[web2py] wsgi won't load modules

2010-03-25 Thread Ian Reinhart Geiser
locate my modules when running under wsgi? thanks -ian reinhart geiser -- 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 web2p

[web2py] Re: hidden inputs and forms

2010-03-25 Thread Ian Reinhart Geiser
        elif t == 'text': > > with > >         elif t == 'text' or t=='hidden': > > Does it now behave as you expect? If so I will patch web2py with this > change. > > Massimo > > On Mar 25, 1:51 pm, Ian Reinhart Geiser wrote: >

[web2py] hidden inputs and forms

2010-03-25 Thread Ian Reinhart Geiser
quot;)), INPUT( _type='hidden', _id = self.attributes['_id'] + '__state', _name = '___state', _value = '', value='dir' ) ] It always comes back '' as a hidden type, but it will behave correctly with a text type... -ian rein

[web2py:31217] Re: Invalid request on Dream Host

2009-09-17 Thread Ian Reinhart Geiser
:) > > http://wiki.dreamhost.com/Passenger_WSGIhttp://wiki.dreamhost.com/Web2pyhttp://www.web2pyslices.com/main/slices/take_slice/1 > > And access to the admin securly > > http://webhostingreal.com/content/view/20/1/ > > -Thadeus > > On Thu, Sep 17, 2009 at 10:50 AM, Ian Reinha

[web2py:31213] Invalid request on Dream Host

2009-09-17 Thread Ian Reinhart Geiser
Greetings, I am using http://wiki.dreamhost.com/Web2py to setup web2py on my account. The problem is that every time I try to access a URL i get an "Invalid Request" error on the web page. There are no other errors in the apache. How might I debug this? I _think_ the problem is that it cannot

[web2py:29091] sharing a web2py install

2009-08-21 Thread Ian Reinhart Geiser
Greetings, i have two virtual hosts that i am moving from php to web2py and i would like to share the same web2py install between both vhosts. Is this possible? I have searched the archives and its pretty clear how to create a default application for a single vhost, but not sharing a web2py inst

[web2py:28940] Re: uploading a file with REST

2009-08-19 Thread Ian Reinhart Geiser
m submission. > If the file is in request.body that it will not be parsed and stored > in request.vars but this: > > request.body.seek(0) > db.videos.file.store(request.body, 'upload.flv') > > should work. > Massimo > > On Aug 17, 7:25 am, Ian Re

[web2py:/] Re: uploading a file with REST

2009-08-17 Thread Ian Reinhart Geiser
doind it. Can you try add > > print request.vars.keys > request.body.seek(0) > > ? > > On Aug 16, 9:56 pm, Ian Reinhart Geiser wrote: > > > Right now im doing this but getting errors: > > @service.run > > def upload_image( camera_uuid ): >

[web2py:28781] Re: uploading a file with REST

2009-08-16 Thread Ian Reinhart Geiser
> > > where [] is a URLencoded JSONencoded dictionary containing the new > > record. The ".json" instructs web2py not to generate the form but to > > expect a json input. This is experimental but give it  try. Should > > work for any page including crud forms. >

[web2py:28759] uploading a file with REST

2009-08-16 Thread Ian Reinhart Geiser
Greetings, Currently I have a lovely web form that was fairly easy to implement with web2py. I now also have cron script that is uploading snapshots of an image from a webcam to my website. What I would like to do is have a service url that I could post my image to and have it automatically be