[web2py] web2py powweb

2011-10-14 Thread José Luna Venezuela
Hi I'm traying tu run web2py in www.powweb.com hosting they say the can run python 2.5 and I found a forum message that says web2py should run. (http://forum.powweb.com/showthread.php?t=85385) I tryied tu set it up with the "Shared Hosting with mod_python" instruction from chater 11 en the web2py b

Re: [web2py] Does Python Scale?

2011-10-14 Thread Marco Mansilla
El Fri, 14 Oct 2011 18:33:45 -0700 Jonathan Lundell escribió: > Makes sense to me. If you care to substitute 'web2py' for 'python' > you can come to pretty much the same conclusion. The choice of web2py > influences your architecture, of course, but it neither prevents nor > guarantees scalabilit

[web2py] Re: plugin_wiki crud and auth

2011-10-14 Thread pinwc4
Thank you for such a quick response. I attempted to do just this from within my model file but got the error KeyError: 'plugin_wiki_page'. My guess was that the table is not defined before my own model runs so I can not set the permissions there. So I guess my question at this point is what the

[web2py] Re: plugin_wiki crud and auth

2011-10-14 Thread Massimo Di Pierro
You need to create a new group and this this group all crud permissions (read,write,delete,select) for all plugin_wiki tables. Than make all users members of the group. On Oct 14, 8:49 pm, pinwc4 wrote: > I am attempting to use plugin_wiki with an app I have been developing > but am encountering

[web2py] plugin_wiki crud and auth

2011-10-14 Thread pinwc4
I am attempting to use plugin_wiki with an app I have been developing but am encountering a problem. The application itself uses CRUD and I have integrated CRUD with auth by adding the line crud.settings.auth = auth in my model. Unfortunately when I attempt to use plugin_wiki to edit pages I get

[web2py] Re: migrate file system uploads to database?

2011-10-14 Thread Massimo Di Pierro
Say you have db.define_table('mytable',Field('file','upload')) step 1: add a blob db.define_table('mytable',Field('file','upload',uploadfield='fileblob'),Field('fileblob','blob') step 2 move the data in blob: for row in db(db.mytable).select(): if row.file and not row.fileblob: data

Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Jonathan Lundell
On Oct 14, 2011, at 6:28 PM, Massimo Di Pierro wrote: > No. > Web2py cannot run on 3 because of backward compatibility. > There will be a web3py that runs on python 3 but it will not be just a > port of web2py because we will take the occasion for a major overhaul. Though if we had an overhauled

[web2py] Does Python Scale?

2011-10-14 Thread Jonathan Lundell
Makes sense to me. If you care to substitute 'web2py' for 'python' you can come to pretty much the same conclusion. The choice of web2py influences your architecture, of course, but it neither prevents nor guarantees scalability. Does Python Scale? Mitch Garnaat 10/14/11 10:45 AM Elastician I w

[web2py] Re: Some say local_import is deprecated. Is it?

2011-10-14 Thread Massimo Di Pierro
This is similar to what web2py/gluon/custom_import.py does. On Oct 14, 8:13 pm, Bruno Rocha wrote: > 2011/10/14 seongjoo > > > track_changes() is a very nice feature to have. It's somewhat tricky > > to deal with python module import while in development. I would love > > to have track_changes()

[web2py] Re: criticism of web2py

2011-10-14 Thread Massimo Di Pierro
No. Web2py cannot run on 3 because of backward compatibility. There will be a web3py that runs on python 3 but it will not be just a port of web2py because we will take the occasion for a major overhaul. On Oct 14, 7:38 pm, Farsheed Ashouri wrote: > And probably we should consider porting web2p

Re: [web2py] Re: Some say local_import is deprecated. Is it?

2011-10-14 Thread Bruno Rocha
2011/10/14 seongjoo > track_changes() is a very nice feature to have. It's somewhat tricky > to deal with python module import while in development. I would love > to have track_changes() like dynamic reloading (reload only if there > is some changes in the module) for basic python. look this:

Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Anthony
On Friday, October 14, 2011 8:54:23 PM UTC-4, rochacbruno wrote: > > On Fri, Oct 14, 2011 at 9:38 PM, Farsheed Ashouri > wrote: > >> And probably we should consider porting web2py to python 3. > > > That't not on the roadmap... in the future will be a web3py but not now. > (may be web3py will be

[web2py] Re: Some say local_import is deprecated. Is it?

2011-10-14 Thread seongjoo
track_changes() is a very nice feature to have. It's somewhat tricky to deal with python module import while in development. I would love to have track_changes() like dynamic reloading (reload only if there is some changes in the module) for basic python. On 10월15일, 오전5시59분, Bruno Rocha wrote: >

Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Bruno Rocha
On Fri, Oct 14, 2011 at 9:38 PM, Farsheed Ashouri < farsheed.asho...@gmail.com> wrote: > And probably we should consider porting web2py to python 3. That't not on the roadmap... in the future will be a web3py but not now. (may be web3py will be a completelly different project with the same goals

[web2py] Re: Some say local_import is deprecated. Is it?

2011-10-14 Thread seongjoo
Oh, I think the original comment was from you. Thank you for the clarification. On 10월14일, 오후3시24분, Bruno Rocha wrote: > It is still supported and should work, but it is deprecated and encouraged > to use the new import system > > On Fri, Oct 14, 2011 at 3:22 AM, seongjoo wrote: > > While solvin

Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Farsheed Ashouri
And probably we should consider porting web2py to python 3. On Saturday, October 15, 2011, Massimo Di Pierro wrote: > I will. > > On Oct 14, 5:50 pm, Bruno Rocha > > wrote: > > > - group plugins in one place > > > - deprecate web2py.com/applications and consolidate the good ones > > > > Take gith

[web2py] Re: migrate file system uploads to database?

2011-10-14 Thread Paul Gerrard
Hi all, I have the same requirement - moving a directory of upload files into the database. I was thinking the way to do it would be to copy the original table definition, then make the field changes to the table definitions, then write a script to process all the file-based records and post them

[web2py] Re: criticism of web2py

2011-10-14 Thread Massimo Di Pierro
I will. On Oct 14, 5:50 pm, Bruno Rocha wrote: > > - group plugins in one place > > - deprecate web2py.com/applications and consolidate the good ones > > Take github as an option for doing that!

Re: [web2py] Re: IMPORTANT

2011-10-14 Thread Vasile Ermicioi
yes, please close it and let us live in peace with each other

Re: [web2py] Re: criticism of web2py

2011-10-14 Thread Bruno Rocha
> > - group plugins in one place > - deprecate web2py.com/applications and consolidate the good ones Take github as an option for doing that!

[web2py] Re: serving a zip file

2011-10-14 Thread Massimo Di Pierro
You mean the downloaded file is corrupted? Can you check the size? On Oct 14, 5:33 pm, peter wrote: > Okay this is where I am now. > > My example 'downloady' above works correctly in chrome but incorrectly > in IE8. In IE8, the file appears to download correctly but will not > unzip. > > Peter >

[web2py] Re: IMPORTANT

2011-10-14 Thread Massimo Di Pierro
You see why I wanted to close this thread? We are now discussing something which is not web2py related. I take full responsibility for opening it. We have achieved awareness. This list has become a self conscious being. Now I think we should close the discussion. At the same time I encourage membe

[web2py] Re: serving a zip file

2011-10-14 Thread peter
Okay this is where I am now. My example 'downloady' above works correctly in chrome but incorrectly in IE8. In IE8, the file appears to download correctly but will not unzip. Peter On Oct 14, 7:13 pm, Matt Broadstone wrote: > On Fri, Oct 14, 2011 at 12:48 PM, Massimo Di > Pierro wrote: > > Wha

[web2py] Re: criticism of web2py

2011-10-14 Thread Massimo Di Pierro
The community should write such road map and work to achieve it. For now my priorities are: - finish the book (4th ed) - finish the web2py recipes book - group plugins in one place - deprecate web2py.com/applications and consolidate the good ones On Oct 14, 3:55 pm, Gour wrote: > On Wed, 5 Oct

[web2py] Re: serving a zip file

2011-10-14 Thread Massimo Di Pierro
I understand. The problem is that response.stream does not form for a StringIO which is not a regular file. StringIO is in memory therefore you have no reason for streaming. filename = "%s-backup" % (time.strftime("%Y%m%d-%H%M")) raw_data = stream = cStringIO.StringIO()

[web2py] Design Issue

2011-10-14 Thread Harshad
I am trying to create a web app that allows you to control various devices simultaneously. The simplified design is as follows: - One main background process continuously polls a database table for any device control requests - Once it sees a request, it spawns two threads: send and

Re: [web2py] Some say local_import is deprecated. Is it?

2011-10-14 Thread Martín Mulone
http://www.slideshare.net/martinpm/web2py-pensando-en-grande-9448110 slides from 13 to 20. 2011/10/14 Bruno Rocha > the custom_importer is implemented in a transpatent way. > > you only have to use normal imports. > > from module import object > > this has adittional feature to track changes in

[web2py] Re: Recipe: How to set up web2py + ldap with Windows Active Directory

2011-10-14 Thread Omi Chiba
Antonio, Burno, I don't have environment to test... please try ! This blog entry is also shared at web2py slice. http://www.web2pyslices.com/slices/take_slice/145 On Oct 14, 4:28 pm, Bruno Rocha wrote: > does work with openldap? > > http://zerp.ly/rochacbruno > Em 14/10/2011 18:16, "António Ram

[web2py] Re: Help with git and fluxflex

2011-10-14 Thread ma...@rockiger.com
Do you ignore the sqlite-file? Can you Post the content of you .gitignore

Re: [web2py] Re: Recipe: How to set up web2py + ldap with Windows Active Directory

2011-10-14 Thread Bruno Rocha
does work with openldap? http://zerp.ly/rochacbruno Em 14/10/2011 18:16, "António Ramos" escreveu: > Does this approach works with Novell Directory? > > 2011/10/14 juanduke > >> look very very very simple! Great! >> >> You win a new Python Roll reader ;) >> >> thanks! >> > >

Re: [web2py] Re: Recipe: How to set up web2py + ldap with Windows Active Directory

2011-10-14 Thread António Ramos
Does this approach works with Novell Directory? 2011/10/14 juanduke > look very very very simple! Great! > > You win a new Python Roll reader ;) > > thanks! >

[web2py] Re: IMPORTANT

2011-10-14 Thread Gour
On Fri, 14 Oct 2011 17:46:54 -0300 Bruno Rocha wrote: > Suffering, Slaughter, Starvation, Prejudice are bad for any kind of > being and I know it is not a mental speculation. Try to get hold of this book: http://www.amazon.com/Maya-World-as-Virtual-Reality/dp/0963530909/ref=sr_1_1?ie=UTF8&qid=1

Re: [web2py] Some say local_import is deprecated. Is it?

2011-10-14 Thread Bruno Rocha
the custom_importer is implemented in a transpatent way. you only have to use normal imports. from module import object this has adittional feature to track changes in modules. track_changes() I guess it is not doccumented yet. http://zerp.ly/rochacbruno Em 14/10/2011 14:45, "Vinicius Assef"

[web2py] Re: criticism of web2py

2011-10-14 Thread Gour
On Wed, 5 Oct 2011 10:46:01 -0700 (PDT) Massimo Di Pierro wrote: > Instant-press is the de-fact CMS and I think it can be packaged with > other apps (for example PyForum, pyStack, IssueTracker, etc) to build > a suite of production tools perhaps using federated authentication. What do you think

Re: [web2py] Re: IMPORTANT

2011-10-14 Thread Bruno Rocha
http://zerp.ly/rochacbruno Em 14/10/2011 16:15, "Gour" escreveu: > > On Fri, 14 Oct 2011 11:27:20 -0300 > Bruno Rocha wrote: > > > sometime ago I have been contacted by an user of this list asking me > > help for a project. > > > > After some messages, this user wanted me to develop an e-store fo

[web2py] Re: IMPORTANT

2011-10-14 Thread elffikk
"We welcome people of any gender identity or expression, race, ethnicity, size, nationality, sexual orientation, ability level, religion, culture, subculture, and political opinion" +1 for me that means that Johan has the right to include his signature, as we accept him, that speaks about himse

[web2py] Help with git and fluxflex

2011-10-14 Thread monotasker
[note: If this questions should be asked elsewhere, please say so. I'm not sure whether it's web2py-centric enough, but it is a problem I'm facing with a web2py installation.] I have an app with data stored in sqlite that is hosted on fluxflex. The database contents change frequently based on u

[web2py] Re: IMPORTANT

2011-10-14 Thread Gour
On Fri, 14 Oct 2011 11:27:20 -0300 Bruno Rocha wrote: > sometime ago I have been contacted by an user of this list asking me > help for a project. > > After some messages, this user wanted me to develop an e-store for his > client. A big company and this would be a great project (he would pay >

Re: [web2py] Re: serving a zip file

2011-10-14 Thread Matt Broadstone
On Fri, Oct 14, 2011 at 12:48 PM, Massimo Di Pierro wrote: > What browser? That was chrome. The previously fix suggested by Brian works for me (thanks!). Matt > > On Oct 14, 10:30 am, Matt Broadstone wrote: >> On Fri, Oct 14, 2011 at 9:35 AM, peter wrote: >> > If I now do exactly what I did one

Re: [web2py] Some say local_import is deprecated. Is it?

2011-10-14 Thread Vinicius Assef
Where is the nem import system documented or where can we know more details about it? On Fri, Oct 14, 2011 at 3:24 AM, Bruno Rocha wrote: > It is still supported and should work, but it is deprecated and encouraged > to use the new import system > > On Fri, Oct 14, 2011 at 3:22 AM, seongjoo wro

[web2py] Re: serving a zip file

2011-10-14 Thread Massimo Di Pierro
What browser? On Oct 14, 10:30 am, Matt Broadstone wrote: > On Fri, Oct 14, 2011 at 9:35 AM, peter wrote: > > If I now do exactly what I did one month ago, there is now no error > > with zip streaming. So maybe you have changed things in > > response.stream since then. > > > Peter > > > On Oct

[web2py] Re: Recipe: How to set up web2py + ldap with Windows Active Directory

2011-10-14 Thread juanduke
look very very very simple! Great! You win a new Python Roll reader ;) thanks!

[web2py] Re: Recipe: How to set up web2py + ldap with Windows Active Directory

2011-10-14 Thread Willoughby
Thanks for posting this!!

[web2py] data as showing left to join sqlform.grid

2011-10-14 Thread mmartinez
Hi list I need to do is display data in a sqlform.grid where I have a query to a db with a left join. This is the code a = db.llamados b = db.accountcode.with_alias ('b') db.clientes.with_alias c = ('c') db.rutas.with_alias r = ('r') db.rutaproveedor.with_alias rp = ('rp') form.accepts if (reques

Re: [web2py] Re: serving a zip file

2011-10-14 Thread Matt Broadstone
On Fri, Oct 14, 2011 at 9:35 AM, peter wrote: > If I now do exactly what I did one month ago, there is now no error > with zip streaming. So maybe you have changed things in > response.stream since then. > > Peter > > On Oct 14, 1:24 pm, peter wrote: >> I sent from my wifes >> emailhttp://groups

[web2py] Re: IMPORTANT

2011-10-14 Thread villas
The number of posts suggests that a policy would be useful. Many have said 'live and let live' should be sufficient, but I personally find that totally inadequate because it does not provide any definition at all and simply leaves this topic without any conclusion. I suggest we simply restr

[web2py] Recipe: How to set up web2py + ldap with Windows Active Directory

2011-10-14 Thread Omi Chiba
There is only a brief explanation on official book I'd like to share how I set it up at the company I work. http://ochiba77.blogspot.com/2011/10/how-to-set-up-web2py-ldap-with-windows.html This was a key feature I was looking over years to use web framework in my intranet web site and web2py made

Re: [web2py] Re: IMPORTANT

2011-10-14 Thread Bruno Rocha
sometime ago I have been contacted by an user of this list asking me help for a project. After some messages, this user wanted me to develop an e-store for his client. A big company and this would be a great project (he would pay a large ammount of money for me) so I discovered that it was a hunt

Re: [web2py] Re: Better off-line book?

2011-10-14 Thread villas
I agree. I personally feel that as I use the book and the online version all the time, the least I could do is pay for it once per year. Of course it is one of the world's best bargains when compared to the effort which goes into producing it and the time which it can save me. It is a wonder

RE: [web2py] Re: Better off-line book?

2011-10-14 Thread ~redShadow~
On Fri, 2011-10-14 at 10:00 -0400, Cameron wrote: > Whatever documentation is used, consider a monetary contribution or > book purchase to show appreciation for all the hours of fine work that > contiually go into the documentation and the project. > > While there are many kinds of contributions

RE: [web2py] Re: Better off-line book?

2011-10-14 Thread Cameron
Whatever documentation is used, consider a monetary contribution or book purchase to show appreciation for all the hours of fine work that contiually go into the documentation and the project. While there are many kinds of contributions (support, code, community, etc) a monetary contribution has

[web2py] Re: IMPORTANT

2011-10-14 Thread Gour
On Fri, 14 Oct 2011 06:26:33 -0700 (PDT) Massimo Di Pierro wrote: > On the other side you cannot be guaranteed other people like what they see > and if they do not they may not help you. If I, as vegetarian, would e.g. desist from helping someone else due to him/her being meat eater, I'd consid

[web2py] Re: IMPORTANT

2011-10-14 Thread Gour
On Fri, 14 Oct 2011 10:29:43 -0300 Bruno Rocha wrote: > http://zerp.ly/rochacbruno I like it. ;) Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri Caitanya Mahaprabhu) http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810 sign

Re: [web2py] Re: Better off-line book?

2011-10-14 Thread ~redShadow~
On Thu, 2011-10-13 at 22:44 -0700, ma...@rockiger.com wrote: > Hi Samuele, > > > use wget: > > > wget --recursive -l 1 --no-clobber --page-requisites --html-extension > --convert-links --restrict-file-names=windows --domains web2py.com > --no-parent http://www.web2py.com/book Cool.. I tried pl

[web2py] Re: serving a zip file

2011-10-14 Thread peter
If I now do exactly what I did one month ago, there is now no error with zip streaming. So maybe you have changed things in response.stream since then. Peter On Oct 14, 1:24 pm, peter wrote: > I sent from my wifes > emailhttp://groups.google.com/group/web2py/browse_thread/thread/fe85dca9e4... >

[web2py] malformed date in email.send

2011-10-14 Thread Alexey Nezhdanov
Hi web2py community. My users complained that emails (sent through mail.send) arrive dated by Jan 1st, 1970. Quick investigation showed that it is due to localized date: Date: пт, 14 окт 2011 13:16:56 + I fixed it by dropping hand-made line and using one from email.utils instead (there i

Re: [web2py] Re: IMPORTANT

2011-10-14 Thread Bruno Rocha
http://zerp.ly/rochacbruno Em 14/10/2011 10:26, "Massimo Di Pierro" escreveu: > On the one side sharing information about yourself on the list is a > good thing because other people will get to know you better. On the > other side you cannot be guaranteed other people like what they see > and if

[web2py] Re: IMPORTANT

2011-10-14 Thread Massimo Di Pierro
On the one side sharing information about yourself on the list is a good thing because other people will get to know you better. On the other side you cannot be guaranteed other people like what they see and if they do not they may not help you. For example consider of an hypothetical user asking f

Re: [web2py] Re: Represent, list:reference, upload-field

2011-10-14 Thread Johann Spies
On 14 October 2011 14:49, Massimo Di Pierro wrote: > My bad. Try this: > > def render_docs(ids,row): > span = SPAN() > for id in ids: > doc = db.wbdocuments(id) > if doc: > span.append(A(doc.name,_href=URL('download',args=doc.file))) > return span > > db.wbmaster.doc

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Johann Spies
I apologise for not reading the book properly. I have waisted many hours by trying all sort of other stuff and in the end I could do just this: import os path = "/home/js/web2py/applications/uploads" # insert the path to the directory of interest here dirList = os.listdir(path) for fname in dirL

[web2py] Re: Represent, list:reference, upload-field

2011-10-14 Thread Massimo Di Pierro
My bad. Try this: def render_docs(ids,row): span = SPAN() for id in ids: doc = db.wbdocuments(id) if doc: span.append(A(doc.name,_href=URL('download',args=doc.file))) return span db.wbmaster.documents.represent = render_docs On Oct 14, 5:35 am, Johann Spies w

[web2py] Re: serving a zip file

2011-10-14 Thread peter
I sent from my wifes email http://groups.google.com/group/web2py/browse_thread/thread/fe85dca9e48c79ad However with hindsight I think I did not give sufficient information in my forum entry. I guess I was seeing if other people had had problems with downloading zip files. Today, I just tried the

[web2py] Re: Better off-line book?

2011-10-14 Thread DenesL
Thanks! On Oct 14, 1:44 am, "ma...@rockiger.com" wrote: > Hi Samuele, > > use wget: > > wget --recursive -l 1 --no-clobber --page-requisites --html-extension > --convert-links --restrict-file-names=windows --domains web2py.com > --no-parenthttp://www.web2py.com/book > > This way you get the whol

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Johann Spies
On 14 October 2011 12:31, Bruno Rocha wrote: > note: you can do that on the server side. just need to put all the files > directly under upload folder and loop throught them. So the store method can > be used to create the record > I want to do that on the server side. What does this 'loop thro

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Johann Spies
On 14 October 2011 12:18, Bruno Rocha wrote: > do you have firebug? splinter use same selectors of css (pure DOM) > Yes, I am using Firebug. I have tried again now and still have not got to a working solution. The form looks like this (screenshot attached if from the browser opened by Splinter)

[web2py] Re: IMPORTANT

2011-10-14 Thread Paul Gerrard
My 2p worth. I run a couple of communities relating to software testing. One is public (uktmf.com) one is private (testers-retreat.org) and this kind of discussion arises from time to time, often about face to face communications. People who are passionate DO get upset - it happens. Testers are a

[web2py] Re: Back to home page every time i click cancle button

2011-10-14 Thread Anthony
Maybe try onclick="parent.location='{{=URL('default', 'index')}}'" On Friday, October 14, 2011 1:01:54 AM UTC-4, Saurabh S wrote: > > > {{=form.custom.submit}} > class="submit" type="reset" onclick="window.history.back()" > value="Cancel"> > > > > i want to replace on

Re: [web2py] Re: Represent, list:reference, upload-field

2011-10-14 Thread Johann Spies
On 14 October 2011 11:14, Massimo Di Pierro wrote: > documents is a list of IDs so you have to turn each one of them into a > link. You can try: > > db.wbmaster.documents.represent = lambda value, row: SPAN(*[row.name]+ > [A(v, _href = URL('download', args = v)) for v in value]) > > Hope I make se

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Bruno Rocha
note: you can do that on the server side. just need to put all the files directly under upload folder and loop throught them. So the store method can be used to create the record. http://zerp.ly/rochacbruno Em 14/10/2011 07:18, "Bruno Rocha" escreveu: > do you have firebug? splinter use same sel

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Bruno Rocha
do you have firebug? splinter use same selectors of css (pure DOM) the id of field is something like 'tablename_fieldname' http://zerp.ly/rochacbruno Em 14/10/2011 07:02, "Johann Spies" escreveu: > On 14 October 2011 01:53, Massimo Di Pierro wrote: > >> I have used mechanize and I was pretty im

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Bruno Rocha
http://zerp.ly/rochacbruno Em 14/10/2011 07:02, "Johann Spies" escreveu: > On 14 October 2011 01:53, Massimo Di Pierro wrote: > >> I have used mechanize and I was pretty impressed. >> http://wwwsearch.sourceforge.net/mechanize/ >> >> > Thanks. I have spent about 2 hours to get working with mecha

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Johann Spies
On 14 October 2011 01:53, Massimo Di Pierro wrote: > I have used mechanize and I was pretty impressed. > http://wwwsearch.sourceforge.net/mechanize/ > > Thanks. I have spent about 2 hours to get working with mechanize and Splinter but I am getting nowhere. The documentation gave a few examples b

[web2py] Re: IMPORTANT

2011-10-14 Thread Gour
On Fri, 14 Oct 2011 02:09:14 -0700 (PDT) Massimo Di Pierro wrote: > First of all I apologize. The expression "this thread is not going > anywhere" was not appropriate. User input was valuable. /me nods > What I meant to say it that there was no consensus on a policy in this regard > other tha

[web2py] Re: Represent, list:reference, upload-field

2011-10-14 Thread Massimo Di Pierro
documents is a list of IDs so you have to turn each one of them into a link. You can try: db.wbmaster.documents.represent = lambda value, row: SPAN(*[row.name]+ [A(v, _href = URL('download', args = v)) for v in value]) Hope I make sense. On Oct 14, 3:29 am, Johann Spies wrote: > This table > >

[web2py] Re: IMPORTANT

2011-10-14 Thread Massimo Di Pierro
First of all I apologize. The expression "this thread is not going anywhere" was not appropriate. User input was valuable. What I meant to say it that there was no consensus on a policy in this regard other than stated, therefore statistically, I did not expect more comments to change that. One c

[web2py] Re: Failed to import a module that named with 'plugin_' prefix in application/modules directory.

2011-10-14 Thread Massimo Di Pierro
When it does not work can you zip and and send a small example? perhaps open a ticket? On Oct 14, 1:15 am, seongjoo wrote: > When I am working with a module located in application/modules > directory with development server with python 2.7, having the module's > name with 'plugin_' prefix works f

[web2py] Re: Better off-line book?

2011-10-14 Thread Massimo Di Pierro
+1 On Oct 14, 12:44 am, "ma...@rockiger.com" wrote: > Hi Samuele, > > use wget: > > wget --recursive -l 1 --no-clobber --page-requisites --html-extension > --convert-links --restrict-file-names=windows --domains web2py.com > --no-parenthttp://www.web2py.com/book > > This way you get the whole boo

[web2py] SOLVED: compute field and reference

2011-10-14 Thread andrej burja
there are two ways: db.define_table('quantity', Field('value','integer')) db.define_table('item', Field('unit_price','double'), Field('quantity',db.quantity), Field('total_price', compute=lambda r: r['unit_price']*db.quantity[r.quantity].value)) or

[web2py] Represent, list:reference, upload-field

2011-10-14 Thread Johann Spies
This table db.define_table("wbdocuments", Field("name", label = "Document name"), Field("file", "upload", label = "Download"), format = '%(name)s') is linked in another table: db.define_table('wbmaster', Field('documents'

Re: [web2py] Re: confused with install on centos 5.7

2011-10-14 Thread Kenneth Lundström
If you need the Apache configuration file send me an email and I'll mail it to you. Kenneth Hi Lucas, if's possible try Centos 6. I just tried. Installed Apache with 'yum groupinstall "Web Server"', disabled selinux (or configure it), unzipped web2py.zip src file, configured Apache and 'a

Re: [web2py] Re: Uploading 388 files

2011-10-14 Thread Michele Comitini
Webdriver/Chromedriver is another alternative. http://www.chromium.org/developers/testing/webdriver-for-chrome mic Il giorno 14/ott/2011 01:53, "Massimo Di Pierro" ha scritto: > I have used mechanize and I was pretty impressed. > http://wwwsearch.sourceforge.net/mechanize/ > > On Oct 13, 10:39

Re: [web2py] Re: confused with install on centos 5.7

2011-10-14 Thread Kenneth Lundström
Hi Lucas, if's possible try Centos 6. I just tried. Installed Apache with 'yum groupinstall "Web Server"', disabled selinux (or configure it), unzipped web2py.zip src file, configured Apache and 'apachectl start'. Voila it works. Kenneth CentOS 5 uses an old ver of python I believe but I