[web2py:19231] BETWEEN functionality

2009-04-06 Thread annet
I am working on the implementation of a search on zip-code. The model: db.define_table('company', SQLField('name', length=54, default='', notnull=True), SQLField('kvk_nummer', length=8), SQLField('subdossiernummer', length=4, default=''), SQLField('status', length=1, default=

[web2py:19232] Re: Coooooool!

2009-04-06 Thread Vidul Petrov
This is splendid! I am wondering - is jDiv able to show/hide some text/image, indicating the processing activity? On Apr 6, 9:31 am, "Zoom.Quiet" wrote: > On Mon, Apr 6, 2009 at 14:09, mdipierro wrote: > > > I just changed the layout > > >http://www.web2py.com/events/default/index > >http

[web2py:19233] Re: Is there a way to store session in memory?

2009-04-06 Thread Markus Gritsch
This thread had the same topic: http://groups.google.com/group/web2py/browse_thread/thread/b587b14f451da0f8/ and resulted in the same problems using sqlite:memory: :) Robin B suggested a 'RAMDB': > No one has published a 'RAMDB' (a DAL driver for RAM). It could > easily be implemented as a gl

[web2py:19234] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread Timmie
Interesting rationales for having the book on Lulu. Academia sometimes have some strange habits. Sometimes, publishing in OpenAccess journals even cost the authors a lot of money that could have been spent on student assistants etc... It is totally new for me but _very_ understandable! In order to

[web2py:19235] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread Timmie
> We will host the sphinx book in the same place that web2py sources exist > (will this follow what PEP 374 says - move to mercurial? --- tell us what > you think about bitbucket.org hosting; tentatively we are talking about > moving web2py in 6 weeks). What is the need to move to Mercurial? We cu

[web2py:19236] Re: using web2py for Geo / GIS stuff

2009-04-06 Thread Timmie
I would need Feedback from the other authors. Are they willing to put As a beginner, I would be a user of the code first. Also, my main coding work is on numerics and web2py will be the way my software can interact wth the user. I can use it to built a GUI around command lins scripts without the

[web2py:19237] Re: Invalid Markup

2009-04-06 Thread desfrenes
See down this page for a valid markup form example: http://www.desfrenes.com/blog/post/quel-framework-web-python-choisir It is implemented using definition lists (, , ) which is way more flexible than tables in terms of css styling. Of course, you don't have to use definition lists but at least i

[web2py:19238] GAE problem "Unable to send email"

2009-04-06 Thread Vidul Petrov
The mail object works great except on GAE, the configuration is: mail.settings.server='smtp.gmail.com:587' mail.settings.sender='my_usern...@gmail.com' mail.settings.login='my_username:my_password' Anybody with the same problem? Could it be some GAE issue? --~--~-~--~~~--

[web2py:19239] Re: Coooooool!

2009-04-06 Thread desfrenes
Hi, It's nice but how about using existing plugins for the ajax stuff ? jquery.taconite.js and jquery.form.js are great (see page test here: http://www.desfrenes.com/playground/carnet_adresse/ ) Taconite plugin: http://malsup.com/jquery/taconite/ Regards, Mickaël. On Apr 6, 8:09 am, mdipierro

[web2py:19243] Testing

2009-04-06 Thread Joseph Jude
Hi, What are the testing tools available within web2py? I know doctests can be used. Is there a client test tool too (something like what Django has)? Thank you, Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:19241] Re: A couple of Oracle problems

2009-04-06 Thread SergeyPo
One problem resolved: "ProgrammingError: LOB variable no longer valid after subsequent fetch " this error can be eliminated. In gluon/sql.py modify SQL_DIALECTS for oracle: make 'string': 'NVARCHAR2(%(length)s)', 'text': 'NCLOB', instead of 'string': 'VARCHAR2(%(length)s)', 'text': 'CLOB', Reaso

[web2py:19245] Re: Invalid Markup

2009-04-06 Thread desfrenes
This particular page will give a detailed explanation of the problems: http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.desfrenes.com%2Fbadweb2pymarkup On Apr 6, 10:23 am, desfrenes wrote: > See down this page for a valid markup form > example:http://www.desfrenes.com/blog/post/que

[web2py:19244] Re: Possible Bug with Auth API on Web2Py ???

2009-04-06 Thread Yannick
Hello Massimo, Thanks for the note... Yes i know the processing is done on the "Tools.py", The reason why i put those in the controller is because i was trying so many things to make it work... So i commented it out, here is how my controller look like: ###

[web2py:19240] Re: A little app to make sema code...

2009-04-06 Thread Kuba Kucharski
On Mon, Apr 6, 2009 at 12:37 AM, mdipierro wrote: > > Nice useful! > > If you email me the new app I will post it. Ok. Consider it's done. -- Kuba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Frame

[web2py:19242] Re: A couple of Oracle problems

2009-04-06 Thread SergeyPo
However migrations still do not work in Oracle, namely: when you have string or text (varchar2/nvarchar2 or clob/nclob) field in a table and want to modify it, e.g. change length, you get the error: Traceback (most recent call last): File "c:\web2py\gluon\restricted.py", line 98, in restricted

[web2py:19246] Re: Coooooool!

2009-04-06 Thread Oleg
Strange... Does not work for me :( FF 3.0.8 On Apr 6, 8:09 am, mdipierro wrote: > I just changed the layout > > http://www.web2py.com/events/default/indexhttp://www.web2py.com/examples/static/web2py.app.events.tar > > try: > - click on "form" > - type a= 2 [enter] > - type b= 3 [enter] > > -

[web2py:19247] Re: GAE problem "Unable to send email"

2009-04-06 Thread murray3
Vidul, I spent some time looking into this problem, here is my post and Massimo's solution. http://groups.google.com/group/web2py/browse_thread/thread/da75fe05704fef0b/ac7a97e952b39087?hl=en&lnk=gst&q=gae+email#ac7a97e952b39087 regards Chrism On Apr 6, 9:35 am, Vidul Petrov wrote: > The mail o

[web2py:19248] Re: Coooooool!

2009-04-06 Thread Álvaro Justen [Turicas]
On Mon, Apr 6, 2009 at 3:09 AM, mdipierro wrote: > I just changed the layout > > http://www.web2py.com/events/default/index > http://www.web2py.com/examples/static/web2py.app.events.tar > > try: > - click on "form" > - type a= 2 [enter] > - type b= 3 [enter] > > - click on "post a message" >

[web2py:19249] Re: GAE problem "Unable to send email"

2009-04-06 Thread Vidul Petrov
Hi Chrism, Thank you for the help. The problem is not on dev_server, but on appengine itself. Though I tried many different (valid) user accounts (including the GAE project's administrator email) there is no result - "Unable to send email". On Apr 6, 3:52 pm, murray3 wrote: > Vidul, > I spen

[web2py:19250] Re: Coooooool!

2009-04-06 Thread Álvaro Justen [Turicas]
Ah, there is a "bug" in CSS: I use Iceweasel (Firefox with a "free" visual identity) 3.0.6 and the second half of text "[web2py] events" is showed. In Epiphany (GNOME's web browser) all pages of web2py are showed this way. I think it's a div position issue. -- Álvaro Justen Peta5 - Telecomunic

[web2py:19251] Re: web2py and Python3

2009-04-06 Thread AchipA
It's a vicious circle of apps (frameworks) and libs not upgrading because of the other. What we *could* do is to make everything web3py friendly *without* separating the 2 and 3. Have a 2.6 base ready that can be put through 2to3 (and perhaps a custom web2to3py script) that transforms web2py into

[web2py:19252] Re: web2py legacy databases, 'id' field requirement

2009-04-06 Thread David Niergarth
On Apr 1, 9:20 pm, Yarko Tymciurak wrote: > > http://www.postgresql.org/docs/8.3/interactive/sql-createrule.html > > and looking at this, it seems fairly straight forward: Yes it does. The manual threw me when it said that "*Currently* views are read only" but that "you can get the *effect* of a

[web2py:19253] Re: session variable as parameter in SQL "WHERE" clause

2009-04-06 Thread ctalley
Works like a charm. Thanks Massimo. > why are you doing this again? I have some fairly complex queries and it helps me in debugging if I can get a working baseline in SQL (which I know fairly well) before transforming to web2py DAL syntax (which I'm just learning). On Apr 6, 12:52 am, mdipierr

[web2py:19254] Re: WSGI alias root + other WSGI apps.

2009-04-06 Thread gabe
Here is what finally got it to work (with reviewing posts by Mr. Dumpleton): WSGIScriptAlias /moin /path/to/my/wiki/moin.wsgi WSGIScriptAlias / /path/to/web2py/wsgihandler.py ... the rest of the virutal host directives. The key is the order by which they are listed. If the root directory is li

[web2py:19255] Re: Issue displaying raw images inline

2009-04-06 Thread Speedbird
Just to give it a follow-up, As soon as I moved the same code from my module (which basically is a class that is instantiated from one of my controllers, ("response" is also passed when the instance is created) to my contoller (and removed the self references) it worked! - Still don't know why thi

[web2py:19256] Re: BETWEEN functionality

2009-04-06 Thread mdipierro
You can do db().select(db.company.ALL,db.address.ALL,left=db.address.on( (db.address.company==db.company.id)&(db.address.zipcode<9)& (db.address.zipcode>7))) On Apr 6, 2:16 am, annet wrote: > I am working on the implementation of a search on zip-code. > > The model: > > db.define_table(

[web2py:19257] Re: Is there a way to store session in memory?

2009-04-06 Thread mdipierro
You cannot use sqlite:memory" because that connection is not persistant. It is closed when the the page is served. On Apr 6, 2:36 am, Markus Gritsch wrote: > This thread had the same topic: > > http://groups.google.com/group/web2py/browse_thread/thread/b587b14f45... > > and resulted in the same

[web2py:19258] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread mdipierro
The book that counts as publication is the one by Wiley. They do not mind the copy on lulu as long as it is not free. Massimo On Apr 6, 3:08 am, Timmie wrote: > Interesting rationales for having the book on Lulu. > Academia sometimes have some strange habits. > Sometimes, publishing in OpenAcc

[web2py:19259] Re: using web2py for Geo / GIS stuff

2009-04-06 Thread mdipierro
I would prefer if you create a separate project since this would be an application or a module. The less I have to do the better. ;-) On Apr 6, 3:18 am, Timmie wrote: > I would need Feedback from the other authors. > Are they willing to put > > As a beginner, I would be a user of the code first.

[web2py:19260] Re: Testing

2009-04-06 Thread mdipierro
If you need to test the framework, there are tests in gluon/tests You can write tests in your app in doctests or unittests in applications/yourapp/tests You can run tests using web2py.py -t or -R -M On Apr 6, 6:10 am, Joseph Jude wrote: > Hi, > What are the testing tools available within web2p

[web2py:19261] Re: Invalid Markup

2009-04-06 Thread DenesL
On Apr 5, 9:09 pm, desfrenes wrote: >Hi, First of all, good catches!. > Is it possible to make the default markup for SQLFORMs w3c valid ? +1 > Right now there are hidden inputs (I suppose they're here for anti- > CSRF) which are not in block elements. This problem can be addressed > easily by u

[web2py:19262] Re: Possible Bug with Auth API on Web2Py ???

2009-04-06 Thread mdipierro
With the current Auth you cannot have two forms on the same page. I will change it. Massimo On Apr 6, 6:25 am, Yannick wrote: > Hello Massimo, > Thanks for the note... Yes i know the processing is done on the > "Tools.py", The reason why i put those in the controller is because i > was trying s

[web2py:19264] Re: GAE problem "Unable to send email"

2009-04-06 Thread mdipierro
On google mail.settings.login='my_username:my_password' should be mail.settings.login='my_usern...@gmail.com:my_password' On Apr 6, 8:09 am, Vidul Petrov wrote: > Hi Chrism, > > Thank you for the help. > > The problem is not on dev_server, but on appengine itself. > Though I tried many differ

[web2py:19263] not unicode

2009-04-06 Thread annet
I have got the following model: db.define_table('postcoderegio', SQLField('regio', type='integer', length=2, default='', notnull=True), SQLField('min', type='integer', length=4, default='', notnull=True), SQLField('max', type='integer', length=4, default='', notnull=True), SQLFie

[web2py:19265] Re: web2py and Python3

2009-04-06 Thread mdipierro
I think the only issue is str vs unicode and it depenends on how the handle it in the drivers. everything else should be 3 friendly aready. On Apr 6, 8:39 am, AchipA wrote: > It's a vicious circle of apps (frameworks) and libs not upgrading > because of the other. > > What we *could* do is to ma

[web2py:19266] Re: WSGI alias root + other WSGI apps.

2009-04-06 Thread mdipierro
if no root permission, no problem. On Apr 6, 9:21 am, gabe wrote: > Here is what finally got it to work (with reviewing posts by Mr. > Dumpleton): > > WSGIScriptAlias /moin /path/to/my/wiki/moin.wsgi > WSGIScriptAlias / /path/to/web2py/wsgihandler.py > > ... the rest of the virutal host directiv

[web2py:19267] Re: Invalid Markup

2009-04-06 Thread mdipierro
Try the latest trunk. It should be fixed but I did not try to revalidate. Massimo On Apr 6, 9:34 am, DenesL wrote: > On Apr 5, 9:09 pm, desfrenes wrote:>Hi, > > First of all, good catches!.> Is it possible to make the default markup for > SQLFORMs w3c valid ? > +1 > > Right now there are hidd

[web2py:19268] Re: not unicode

2009-04-06 Thread mdipierro
This is wrong. db.postcoderegio.regio.requires=[IS_INT_IN_RANGE(00,99),IS_LENGTH (2),IS_NOT_EMPTY()] validators are filters so the order it important. You can reverse the order but I suspect you want db.postcoderegio.regio.requires=IS_MATCH('\d{4}') On Apr 6, 10:01 am, annet wrote: > I have g

[web2py:19269] Re: A couple of Oracle problems

2009-04-06 Thread mdipierro
I am for this but this will trigger a migration in existing Oracle installations and they may break. All in favor? Against? Massimo On Apr 6, 5:36 am, SergeyPo wrote: > However migrations still do not work in Oracle, namely: when you have > string or text (varchar2/nvarchar2 or clob/nclob) fie

[web2py:19270] Re: GAE problem "Unable to send email"

2009-04-06 Thread Vidul Petrov
Thank you, Massimo. It works fine now, but the sender (GAE limitation) can be only the registered admin account. Also mail.settings.server should be (as written in the docs) 'gae'. On Apr 6, 6:01 pm, mdipierro wrote: > On google > > mail.settings.login='my_username:my_password' > > should be >

[web2py:19271] Re: Is there a way to store session in memory?

2009-04-06 Thread Iceberg
Mmm, SQLDB('sqlite:memory:') would be a most intuitive choice, it is a pity that it does not work. No wonder it was once introduced but soon "forgotten". :-) So let's wait Massimo to adjust MEMDB to work with cache.ram, or perhaps a dedicated RAMDB for it, or even SQLDB('ram://'). I am fine with

[web2py:19272] Re: using web2py for Geo / GIS stuff

2009-04-06 Thread Timmie
> I would prefer if you create a separate project since this would be an > application or a module. The less I have to do the better. ;-) OKI, here goes: https://launchpad.net/web2py-geo I added you as a driver for the project. Let's see what will happen. BTW: * shall we create a super group web

[web2py:19273] Re: Possible Bug with Auth API on Web2Py ???

2009-04-06 Thread Yannick
Oh now i see, i spend so many time wondering, i changed stuff that don't even make sense to make this work... I glad to hear that... Please notify us once is done... Thanks Massimo, Yannick P. On Apr 6, 10:55 am, mdipierro wrote: > With the current Auth you cannot have two forms on the same pa

[web2py:19274] Re: Is there a way to store session in memory?

2009-04-06 Thread mdipierro
The problem with sqlite:memory is that you can have multiple apps running under the same web2py installation. There is no way to have multiple sqlite:memory and those apps do not probably want to share the database. One would have to cache the sqlite:memory connection then it may be faster to cach

[web2py:19275] Re: using web2py for Geo / GIS stuff

2009-04-06 Thread mdipierro
Sounds like a good idea. Do I have to do this or can you do it? Massimo On Apr 6, 10:51 am, Timmie wrote: > > I would prefer if you create a separate project since this would be an > > application or a module. The less I have to do the better. ;-) > > OKI, here goes:https://launchpad.net/web2py

[web2py:19277] Re: Coooooool!

2009-04-06 Thread mdipierro
The jDiv should be made "absolute" and not "relative" but this is a detail. If you can fix the index.html code to make it look better please email it to me. On Apr 6, 8:34 am, Álvaro Justen [Turicas] wrote: > Ah, there is a "bug" in CSS: I use Iceweasel (Firefox with a "free" > visual identity)

[web2py:19276] Re: Coooooool!

2009-04-06 Thread mdipierro
because, as far as I understand, this does something different. the main point is that jDiv catches the self-submitting forms and prevents from reloading the entire page. I can use this with existing web2py actions. taconite has a flexible mechanism for allowing one page to embed code into the p

[web2py:19278] Re: Auth Wiki example

2009-04-06 Thread mdipierro
auth=Auth(globals(),db) auth.settings.table_user=db.define_table('auth_user', fields including first_name, last_name, email, password, registration_key ... length=128.. ... validators on this table ... auth.define_tables() On Apr 6, 1:49 am, Oscar wrote: > Thank you! > > So... how I can e

[web2py:19279] Re: Input type button

2009-04-06 Thread mdipierro
click me On Apr 5, 4:45 pm, waTR wrote: > Your last post did answer my question, though, the code didn't work. > > click me > > when you click it will call the action sayhi(), For example > > def sayhi(): return dict(message="hello") > > The button does not redirect to the other page when clicke

[web2py:19280] web2py @ twitter.com

2009-04-06 Thread mdipierro
Thanks Michael Thamm! Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to

[web2py:19281] Re: Auth Wiki example

2009-04-06 Thread Oscar
What are the complete list of auth_user fields? and default values? Regards, Oscar. On 7 abr, 11:22, mdipierro wrote: > auth=Auth(globals(),db) > auth.settings.table_user=db.define_table('auth_user', fields > including first_name, last_name, email, password, registration_key ... > length=

[web2py:19284] response.flash problem

2009-04-06 Thread annet
I have the following function: def byplace(): response.functionname=T('Club locator op plaats') form=form_factory(SQLField('plaats',label='Type een plaatsnaam',requires=IS_NOT_EMPTY(),\ widget=lambda self, value:TAG[''](INPUT (_id='clublocator',_name='plaats',_class='ac_input',_type='

[web2py:19286] Re: Is there a way to store session in memory?

2009-04-06 Thread Kuba Kucharski
On Linux you can define(at the boot time, passing kernel params) a part of your ram as a ramdisk. It behaves exactly like a disk with a filesystem on it. So you can just use sqlite and have it working in RAM space. Very fast solution. I know it is not exactly what you are talking about, but maybe

[web2py:19282] Re: Auth Wiki example

2009-04-06 Thread Michael
I too would like to know this, since I would like to add a 'username' field, instead of having to display real names or email addresses. On Apr 6, 1:00 pm, Oscar wrote: > What are the complete list of auth_user fields? and default values? > > Regards, > > Oscar. > > On 7 abr, 11:22, mdipierro w

[web2py:19283] Re: Auth Wiki example

2009-04-06 Thread mdipierro
auth.settings.table_user = db.define_table( self.settings.table_user_name, db.Field('first_name', length=128,default=''), db.Field('last_name', length=128,default=''), db.Field('email', length=128,default=''),

[web2py:19285] Re: Invalid Markup

2009-04-06 Thread DenesL
On Apr 6, 11:05 am, mdipierro wrote: > Try the latest trunk. It should be fixed but I did not try to > revalidate. > > Massimo Trunk 811 only solves the problem (or part of it, I have not checked all) for SQLFORM and introduces visual "garbage" on the forms. > On Apr 6, 9:34 am, DenesL wrote:

[web2py:19287] Re: response.flash problem

2009-04-06 Thread DenesL
Annet, you are missing the closing {{pass}} for the if statement. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscri

[web2py:19288] Re: Invalid Markup

2009-04-06 Thread desfrenes
Yes Massimo, that fixes the markup but also introduces borders in forms which is probably not what you want. a div would be better like DenesL said. For the textarea, it seems to be ok, at least with SQLFORM. On 6 avr, 17:05, mdipierro wrote: > Try the latest trunk. It should be fixed but I did

[web2py:19290] Re: Coooooool!

2009-04-06 Thread ceej
I think there should defiantly be a way to specify what div the response is loaded in and also the option to load different parts of the response in different divs. On Apr 6, 1:42 pm, desfrenes wrote: > ok, I understand. > > On 6 avr, 18:17, mdipierro wrote: > > > > > because, as far as I under

[web2py:19289] Re: Coooooool!

2009-04-06 Thread desfrenes
ok, I understand. On 6 avr, 18:17, mdipierro wrote: > because, as far as I understand, this does something different. > > the main point is that jDiv catches the self-submitting forms and > prevents from reloading the entire page. I can use this with existing > web2py actions. > > taconite has a

[web2py:19292] Apache config.

2009-04-06 Thread zxynax
I'm trying to have apache serve svg images as they should be served. Problem is the doctype seems to always come back as text/plain which casues text rather than an image to show. Anybody else have experience with this? --~--~-~--~~~---~--~~ You received this messa

[web2py:19293] Unlinking uploaded files

2009-04-06 Thread bsnipes
What is the best way to unlink and remove from the db uploaded files/ images from the uploads folder? I am basing an app on the layout of the images table from the web2py book. Is there a magic web2py function for this already? Thanks, Brian --~--~-~--~~~---~--~~ Y

[web2py:19294] Re: Apache config.

2009-04-06 Thread bsnipes
On Apr 6, 2:19 pm, zxynax wrote: > I'm trying to have apache serve svg images as they should be served. > Problem is the doctype seems to always come back as text/plain which > casues text rather than an image to show. > > Anybody else have experience with this? No experience but what OS are you

[web2py:19291] sample of application routes.py

2009-04-06 Thread Robin B
I thought it would be cool to have a routes.py for each application, so I put the following in web2py/routes.py, which combines the routes from each application/*/routes.py at boot time. web2py/routes.py: from gluon.fileutils import listdir import os,glob apps_with_routes = [] app_routes = glob.

[web2py:19295] Re: Coooooool!

2009-04-06 Thread mdipierro
This can already be done. Here is a better layout and absolute Divs. http://www.web2py.com/events/default/index On Apr 6, 1:52 pm, ceej wrote: > I think there should defiantly be a way to specify what div the > response is loaded in and also the option to load different parts of > the response

[web2py:19296] Re: Is there a way to store session in memory?

2009-04-06 Thread mdipierro
An AlterEgo page about this would be very helpful. ;-) On Apr 6, 1:09 pm, Kuba Kucharski wrote: > On Linux you can define(at the boot time, passing kernel params) a > part of your ram as a ramdisk. It behaves exactly like a disk with a > filesystem on it. So you can just use sqlite and have it w

[web2py:19297] Re: Coooooool!

2009-04-06 Thread desfrenes
liking the background :-) On 6 avr, 21:34, mdipierro wrote: > This can already be done. Here is a better layout and absolute Divs. > > http://www.web2py.com/events/default/index > > On Apr 6, 1:52 pm, ceej wrote: > > > I think there should defiantly be a way to specify what div the > > response

[web2py:19298] Re: sample of application routes.py

2009-04-06 Thread mdipierro
OK. email me the patch. Massimo On Apr 6, 2:09 pm, Robin B wrote: > I thought it would be cool to have a routes.py for each application, > so I put the following in web2py/routes.py, which combines the routes > from each application/*/routes.py at boot time. > > web2py/routes.py: > > from gluon

[web2py:19299] Re: Apache config.

2009-04-06 Thread zxynax
Thanks for your prompt attention. OS is Ubuntu and the mime.types has the images/svg+xml definition and it is uncommented. I can even serve svg images if I use a vhost that does not utilize WSGI. On Apr 6, 2:22 pm, bsnipes wrote: > On Apr 6, 2:19 pm, zxynax wrote: > > > I'm trying to have apa

[web2py:19300] Re: Unlinking uploaded files

2009-04-06 Thread mdipierro
of course say you have db.define_table('image',SQLField('file','upload')) you can do db.image.file.autodelete=True and the linked file will be deleted when the records are deleted. Massimo On Apr 6, 2:19 pm, bsnipes wrote: > What is the best way to unlink and remove from the db u

[web2py:19302] Re: Coooooool!

2009-04-06 Thread mdipierro
I stole it on the web. Not my artwork. Hope the author does not mind. Massimo On Apr 6, 2:37 pm, desfrenes wrote: > liking the background :-) > > On 6 avr, 21:34, mdipierro wrote: > > > This can already be done. Here is a better layout and absolute Divs. > > >http://www.web2py.com/events/defau

[web2py:19303] Re: Unlinking uploaded files

2009-04-06 Thread bsnipes
On Apr 6, 2:43 pm, mdipierro wrote: > of course Not surprised! Web2py magic abounds... >    db.define_table('image',SQLField('file','upload')) > > you can do > >    db.image.file.autodelete=True Thanks! Brian --~--~-~--~~~---~--~~ You received this message b

[web2py:19304] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread g-man
OK, let's look at how the most successful web app framework, Ruby on Rails did this, so we can learn a little about what works: 1. DHH and 37signals developed Rails using Ruby basically as an in- house tool to simplify repetitive tasks discovered as a project- tracking and communication applicati

[web2py:19305] jQuery Thickbox + web2py

2009-04-06 Thread waTR
Hi all, I am using a great floating window plugin for jQuery, however, I am not sure how to make it work with web2py. Note that in asking this question, I am not only trying to solve this problem, but to gain a better understanding of how web2py works, so please only propose web2py solutions. THI

[web2py:19306] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread desfrenes
On 6 avr, 22:01, g-man wrote: > Where are all the web2py blogs and articles, people? here's one: http://www.desfrenes.com/blog/post/quel-framework-web-python-choisir :-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[web2py:19307] Hide registration function?

2009-04-06 Thread bsnipes
What is the best way to hide the register option when auth is enabled in a web2py application? Thanks, Brian --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send e

[web2py:19308] Re: Invalid Markup

2009-04-06 Thread desfrenes
Massimo, this one works best (in html.py): def hidden_fields(self): c = [] if self.attributes.has_key('hidden'): for (key, value) in self.attributes.get('hidden', {}).items(): c.append(INPUT(_type='hidden', _name=key, _value=valu

[web2py:19309] Re: Apache config.

2009-04-06 Thread bsnipes
On Apr 6, 2:40 pm, zxynax wrote: > Thanks for your prompt attention. > > OS is Ubuntu and the mime.types has the images/svg+xml definition and > it is uncommented.  I can even serve svg images if I use a vhost that > does not utilize WSGI. > Haven't setup WSGI yet. I will ( I hope ) be putting w

[web2py:19310] what a week!

2009-04-06 Thread mdipierro
web2py.com distinct visitors per day (tracked by IP). 30/Mar/2009 803 Mon 31/Mar/2009 929 Tue 01/Apr/2009 949 Wed 02/Apr/2009 813 Thu 03/Apr/2009 701 Fri 04/Apr/2009 585 Sat 05/Apr/2009 605 Sun 06/Apr/2009 1265 Today...at 3:42pm and counting --~--~-~--~~~---~--~~

[web2py:19311] Re: what a week!

2009-04-06 Thread desfrenes
pycon effect ! :-) On 6 avr, 22:42, mdipierro wrote: > web2py.com distinct visitors per day (tracked by IP). > > 30/Mar/2009 803 Mon > 31/Mar/2009 929 Tue > 01/Apr/2009 949 Wed > 02/Apr/2009 813 Thu > 03/Apr/2009 701 Fri > 04/Apr/2009 585 Sat > 05/Apr/2009 605 Sun > 06/Apr/2009 1265 Today...at 3

[web2py:19312] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread mdipierro
http://translate.google.com/translate?prev=_t&hl=en&ie=UTF-8&u=http%3A%2F%2Fwww.desfrenes.com%2Fblog%2Fpost%2Fquel-framework-web-python-choisir&sl=fr&tl=en&history_state0= Comment: http://www.fortunecity.com/lavendar/sidjames/210/xcllnt.wav Massimo On Apr 6, 3:16 pm, desfrenes wrote: > On 6 av

[web2py:19313] Re: Hide registration function?

2009-04-06 Thread mdipierro
def user(): if request.args and request.args[0]=='register': redirect(... somewhere...) return auth() On Apr 6, 3:26 pm, bsnipes wrote: > What is the best way to hide the register option when auth is enabled > in a web2py application? > > Thanks, > Brian --~--~-~--~~-

[web2py:19314] Re: Invalid Markup

2009-04-06 Thread mdipierro
I just posted this in trunk. Please check. Thanks! Massimo On Apr 6, 3:28 pm, desfrenes wrote: > Massimo, this one works best (in html.py): > >     def hidden_fields(self): >         c = [] >         if self.attributes.has_key('hidden'): >             for (key, value) in self.attributes.get('hi

[web2py:19315] Re: Hide registration function?

2009-04-06 Thread bsnipes
On Apr 6, 3:48 pm, mdipierro wrote: > def user(): >     if request.args and request.args[0]=='register': redirect(... > somewhere...) >     return auth() DOH! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

[web2py:19316] Re: The official Web2py Book by Massimo....for free?

2009-04-06 Thread desfrenes
LOL ! automatic translations are horrible. I could achieve a better result, even with my bad english ^_^ I didn't see many articles in french but I'm confident it will change soon. I'll probably write more as I discover web2py. On 6 avr, 22:47, mdipierro wrote: > http://translate.google.com/tran

[web2py:19317] Re: Invalid Markup

2009-04-06 Thread desfrenes
yes, it's fine now :-) On 6 avr, 22:49, mdipierro wrote: > I just posted this in trunk. Please check. Thanks! > > Massimo > > On Apr 6, 3:28 pm, desfrenes wrote: > > > Massimo, this one works best (in html.py): > > >     def hidden_fields(self): > >         c = [] > >         if self.attributes

[web2py:19318] Re: Is there a way to store session in memory?

2009-04-06 Thread Kuba Kucharski
> An AlterEgo page about this would be very helpful. ;-) "Is there a way" in web2py to place sqlite database somewhere else than "databases" folder ? I couldn't quickly find info about it on the web. As "somewhere else" I mean also a subfolder of "databases" folder. Than we could have both typ

[web2py:19319] Re: Is there a way to store session in memory?

2009-04-06 Thread mdipierro
Yes SQLDB('sqlite:///absolue/path') notice the /// On Apr 6, 4:07 pm, Kuba Kucharski wrote: > > An AlterEgo page about this would be very helpful. ;-) > > "Is there a way" in web2py to place sqlite database somewhere else > than "databases" folder ? > I couldn't quickly find info about it on t

[web2py:19320] Auth() Issues

2009-04-06 Thread ceej
Hey, I'm trying to overide the login_url by putting the code below in my db.py: auth.settings.login_url=settings.url+'/login' for some reason this has no affect, is there anyway to do this? Many thanks --~--~-~--~~~---~--~~ You received this message because you

[web2py:19321] Uploads in subdirs

2009-04-06 Thread Michal Jursa
Hi, may be i'm missing something but is there a possibility to manage uploads in subdirs? I'd like to organize the uploads a bit :) Michal alias Plysak --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Fr

[web2py:19322] Re: MSSQL migrate error

2009-04-06 Thread DenesL
On Apr 3, 5:23 pm, Yarko Tymciurak wrote: > On Fri, Apr 3, 2009 at 3:59 PM, mdipierro wrote: > > > I do not see a problem with this but is GO a mssql only keyword? I don't know. > > In MSSQL - "GO" runs the accumulated batch of lines (it's like "enter"). > > The problem is, I think, that yo

[web2py:19323] display two different links for the same field

2009-04-06 Thread Peter Etchells
I am trying to display a field twice in the same row, with two different links, along the lines of View per row: id(with href to function1)...sameid(with href to function2)...more fields from same row I can't see how to duplicate the id in the controller at the select, for example with db(qu

[web2py:19324] Re: Uploads in subdirs

2009-04-06 Thread mdipierro
There is not an easy way to do this. You can move the file after uploads but this can break downloads. Perhaps the best way is to build symlinks after upload. On Apr 6, 4:39 pm, Michal Jursa wrote: > Hi, > may be i'm missing something but is there a possibility to manage > uploads in subdirs? I'

[web2py:19326] Re: Is there a way to store session in memory?

2009-04-06 Thread Kuba Kucharski
I thought about ramdisk, but tmpfs might be a better solution, practically it is the same. Main difference between tmpfs and linux ramdisk device is that tmpfs alocate memory dynamically and also less-used "pages" can be moved onto swap space. On modern linux distros it is as easy as: mount -t t

[web2py:19325] Re: display two different links for the same field

2009-04-06 Thread mdipierro
You cannot select a field twice. The DAL does not allow it. Massimo On Apr 6, 5:04 pm, Peter Etchells wrote: > I am trying to display a field twice in the same row, with two > different links, along the lines of > > View per row: > id(with href to function1)...sameid(with href to function2)

[web2py:19327] Re: Uploads in subdirs

2009-04-06 Thread Michal Jursa
I do this by symlinks to 'static' directory and i understand this is not easy coz it is hard to find out what is controller and what is parameter etc... Finally the static workaround is not bad. Michal alias Plysak mdipierro wrote: > There is not an easy way to do this. You can move the file a

[web2py:19328] Re: Is there a way to store session in memory?

2009-04-06 Thread Kuba Kucharski
p.s it seems like "on modern linux distros" you don't have to pass extra parameters to kernel anymore (to have ram-type disk). It has been a while since I used it. Sory if I scared someone ;) -- Kuba --~--~-~--~~~---~--~~ You received this message because you a

[web2py:19329] Re: MSSQL migrate error

2009-04-06 Thread mdipierro
fixed in trunk. Please check. On Apr 6, 4:50 pm, DenesL wrote: > On Apr 3, 5:23 pm, Yarko Tymciurak wrote: > > > On Fri, Apr 3, 2009 at 3:59 PM, mdipierro wrote: > > > > I do not see a problem with this but is GO a mssql only keyword? > > I don't know. > > > > > In MSSQL -  "GO" runs the accum

[web2py:19330] Re: Coooooool!

2009-04-06 Thread Tito Garrido
Freaking Cool!!! On Mon, Apr 6, 2009 at 4:45 PM, mdipierro wrote: > > I stole it on the web. Not my artwork. Hope the author does not mind. > > Massimo > > On Apr 6, 2:37 pm, desfrenes wrote: > > liking the background :-) > > > > On 6 avr, 21:34, mdipierro wrote: > > > > > This can already be

[web2py:19331] Re: using web2py for Geo / GIS stuff

2009-04-06 Thread dbb
I am your student now, I learnt a lot from you about web2py, actually I am a researcher at one of the labs in east cost, and a part time teacher -- I love computing science. I my vision for the mapping is to create (draw) a polygon that signifies a room in a building using a mouse, when somebody

  1   2   >