[web2py] Re: how to limit upload field

2011-08-03 Thread annet
Hi António, In my database model I have a field of type upload on which I set the following validators: db.logofile.file.requires=[IS_IMAGE(extensions=('gif','jpg','jpeg','png'),maxsize=(348,108)),IS_LENGTH(36*1024,error_message='file size exceeds 36 KB')] The IS_LENGTH(...) limits the file

[web2py] Re: something strange when installing application

2011-08-03 Thread Massimo Di Pierro
The w2p files include the sqlite db but not others dbs. On Aug 2, 6:17 pm, pbreit pbreitenb...@gmail.com wrote: I believe the w2p files do NOT include the db.

[web2py] Re: web2py for freelance work

2011-08-03 Thread Gour-Gadadhara Dasa
On Tue, 2 Aug 2011 22:49:16 -0700 (PDT) guruyaya guruy...@gmail.com wrote: Now I acctually asked people on my interviews, why PHP, and the most common answer was we have wordpress / zend-cart / joomla / drupal / some other system written in PHP we need extending, and we're looking for someone

[web2py] Re: how to limit upload field

2011-08-03 Thread David Marko
Do I understand correctly, that validator allows uploading e.g. 10GB file, than checks the file size and when exceedes the limit, deletes the file ... so at least for the moment file takes its disk space? So potentialy someone can upload 100GB file and fill my disk? David

Re: [web2py] New Plugin: plugin_ckeditor

2011-08-03 Thread Bruno Rocha
I found an issue, as issues is disabled in your bitbucket, I created a wiki page. https://bitbucket.org/PhreeStyle/web2py_ckeditor/wiki/issue

Re: [web2py] Re: upgrading from 1.95.1 to 1.96.1 breaks cross app authentication

2011-08-03 Thread Heng Zeng Aun
Thanks. Noted On Tue, Aug 2, 2011 at 3:58 PM, Anthony abasta...@gmail.com wrote: On Tuesday, August 2, 2011 2:30:01 AM UTC-4, zeng wrote: Ok, and the next question I may sound like a retard, where to submit the ticket? Looks like this one is solved, but for future reference, tickets get

[web2py] how to add a css file in web2py

2011-08-03 Thread Web2Py Freak
hello guys , can you show me the way of adding a css file in web2py i trying to add one and its not working !! help

Re: [web2py] New Plugin: plugin_ckeditor

2011-08-03 Thread António Ramos
I need that plugin or i´m a dead man! :) 2011/8/3 Bruno Rocha rochacbr...@gmail.com I found an issue, as issues is disabled in your bitbucket, I created a wiki page. https://bitbucket.org/PhreeStyle/web2py_ckeditor/wiki/issue

[web2py] About passwords security in web2py

2011-08-03 Thread António Ramos
hello, what do i tell in my company to convinve them to use web2py apps without fearing that i as administrator cannot discover their password? Thank you António

Re: [web2py] Re: Rocket support IPv6

2011-08-03 Thread Marin Pranjic
Congratulations Timothy!

Re: [web2py] About passwords security in web2py

2011-08-03 Thread Kenneth Lundström
what do i tell in my company to convinve them to use web2py apps without fearing that i as administrator cannot discover their password? Sounds like you will have to lie to them as you can always as a developer change the code so that a copy of passwords is stored as clear text. At the

[web2py] Re: typo book chapter 2

2011-08-03 Thread cjrh
Fixed, many thanks.

[web2py] Re: typo book chapter 2

2011-08-03 Thread cjrh
Hmmm. The markmin has changed, but the rendered view hasn't: http://web2py.com/book/default/chapter/02#try...except...else...finally I will report this to Massimo.

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread cjrh
Here is a printout showing the general space consumption (attached). My web2py src, not including the .hg folder is about 14.3MB. web2py_size.pdf Description: Adobe PDF document

[web2py] typo book chapter 2

2011-08-03 Thread Herman
missing : Special Attributes, Methods and Operators class MyList(object) def __init__(self, *a): self.a = list(a) class MyList(object): def __init__(self, *a): self.a = list(a)

[web2py] Re: typo book chapter 2

2011-08-03 Thread cjrh
Thanks, I fixed that one too. I noticed the rendered view hasn't changed though. I wonder it this is a caching issue... I will check later this evening.

[web2py] Re: Web2Py with Python 2.4

2011-08-03 Thread villas
Massimo, FYI the web2py.com site home page still refers to 2.4. I guess you should remove that reference now.

[web2py] alternate join syntax

2011-08-03 Thread rif
Hi guys, Can anyone provide some examples of the new syntax for join introduced in 1.96.1? - new alterante syntax for inner joins: db(...).select(join=...) Thank you

Re: [web2py] About passwords security in web2py

2011-08-03 Thread David J.
Antonio; I dont think the passwords are decrypt-able; I remember asking this question and I think that its a one-way hash. I could be wrong though. Besides; your client has to TRUST you; obviously there is never a guarantee who they hire wont be able to maliciously store plain text

[web2py] postgres - prepared statements in DAL?

2011-08-03 Thread Tarun Arora
Is it possible to create and execute prepared statements in DAL for postgresql? I observed there is a prepare api for creating 'PREPARE TRANSACTIONS' for two-phase commit but no api for prepared statements.

[web2py] Odg.: Re: Web2py Full Text Search Options

2011-08-03 Thread andrej burja
why is the first part def keywords(record): return list(set(x.lower() for re.compile('\w +').findall(record.content or ''))) raising an error in syntax andrej

[web2py] Re: how to add a css file in web2py

2011-08-03 Thread Anthony
On Wednesday, August 3, 2011 5:22:18 AM UTC-4, Web2Py Freak wrote: hello guys , can you show me the way of adding a css file in web2py i trying to add one and its not working !! help Assuming you're using the 'welcome' app folder structure, put the file in /yourapp/static/css, and

Re: [web2py] Re: Rocket support IPv6

2011-08-03 Thread Furqan Rauf
congrats Tim On Wed, Aug 3, 2011 at 8:12 AM, Michele Comitini michele.comit...@gmail.com wrote: Tim finding you on g+ was a challange... i'm definitely dumb and always miss something while using social apps! ;-) mic 2011/8/3 Timothy Farrell explori...@gmail.com: A boy, Zane. A healthy

[web2py] possible bug resetting user password?

2011-08-03 Thread António Ramos
hello i have my server only on port 443(https) because i realy need https! if i click the link lost password i receive an email with a link to reset the password this link is http and not https, so the link is not working. If i change the url from http to https i get the flash message

[web2py] Re: For Massimo: which version of book to buy?

2011-08-03 Thread Gour-Gadadhara Dasa
On Wed, 22 Jun 2011 07:08:29 -0700 (PDT) Massimo Di Pierro massimo.dipie...@gmail.com wrote: Possibly by the end of August. Thanks for the info. Same publisher? Sincerely, Gour -- “In the material world, conceptions of good and bad are all mental speculations…” (Sri Caitanya Mahaprabhu)

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Jonathan Lundell
On Aug 3, 2011, at 3:48 AM, cjrh wrote: Here is a printout showing the general space consumption (attached). My web2py src, not including the .hg folder is about 14.3MB.web2py_size.pdf Hmm. I've got iPhone apps 20 times that size...

[web2py] email to all users of a group. Howto?

2011-08-03 Thread António Ramos
i need to send email to all users of a group is there a simple way of doind this? like mail.send(*groupname*,subject=demo,message=demo) thank you? António

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread cjrh
That was my feeling also.

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Michele Comitini
I agree, that size is small even on embedded systems by now... Anyway trying to keep it small is always a good thing IMHO. mic 2011/8/3 Jonathan Lundell jlund...@pobox.com: On Aug 3, 2011, at 3:48 AM, cjrh wrote: Here is a printout showing the general space consumption (attached).  My web2py

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread cjrh
On Wednesday, 3 August 2011 16:22:46 UTC+2, mcm wrote: I agree, that size is small even on embedded systems by now... Anyway trying to keep it small is always a good thing IMHO. I think the word small is the wrong word to use here. It doesn't really mean anything. It is a relative word

[web2py] Re: Keep Multiple Selection in CRUD.UPDATE

2011-08-03 Thread Ismael Serratos
Any? On Tue, Aug 2, 2011 at 2:11 PM, Ismael Serratos ialejandr...@gmail.comwrote: Hi! I have a crud.update launched via mmodal, the table has 3 string fields with the option multiple activated. When I get into the crud.update the multiselect widget doesn't remember the selection, how could

[web2py] Re: linkto SQLTABLE mmodal

2011-08-03 Thread Ismael Serratos
? On Tue, Aug 2, 2011 at 10:50 AM, Ismael Serratos ialejandr...@gmail.comwrote: Hi! How could I represent the ID of a SQLTABLE as a link that shows a mmodal plugin window? And how can I pass to it args?? The form that I'd like to show in the modal is in another controller. Greetings!

[web2py] request.vars does not contain the automatic record.id?

2011-08-03 Thread António Ramos
hello i need to get the automatic id field of the record in my controler after the code * * *if postform.accepts(request.vars,session):** ** * if i print request.vars i dont see the id that i need to create a link to send email to the document just created Thank you António

[web2py] Form for two tables (one of them repeated)

2011-08-03 Thread José L .
Hello, I need the help of some web2py guru... I'm developing an application where I have to add and modify couples of people. So I've defined a table called person, and a table called pairs which have two fields related to person. I need to show a form to add/edit couples (so adding/editing in

Re: [web2py] Re: how to add a css file in web2py

2011-08-03 Thread Richard Vézina
Is there a advantage to use reponse.file except the length of the code line and the possibility to insert a CSS or JS at the controller level?? Is it faster or something? Thanks Richard On Wed, Aug 3, 2011 at 9:03 AM, Anthony abasta...@gmail.com wrote: On Wednesday, August 3, 2011 5:22:18 AM

Re: [web2py] delete a SQLTABLE column

2011-08-03 Thread Richard Vézina
Wrong thread I think! ;-) Richard On Tue, Aug 2, 2011 at 7:18 PM, pbreit pbreitenb...@gmail.com wrote: Navicat Lite or SQLite Manager for Firefox

[web2py] pre-populating form on crud.create

2011-08-03 Thread Jim Steil
Hi I'm trying the following: form = crud.create(db.tablename) form.vars.description = 'default value for description' ...but the default value for description isn't displayed in my form. Should this work? -Jim

[web2py] Re: pre-populating form on crud.create

2011-08-03 Thread Anthony
I don't think that method would work with Crud because the .accepts method is called within crud.create, which happens before your form.vars assignment. Instead, try: db.tablename.description.default = 'default value' form = crud.create(db.tablename) Anthony On Wednesday, August 3, 2011

Re: [web2py] Re: how to add a css file in web2py

2011-08-03 Thread Anthony
I don't think there's any advantage other than those you stated. On Wednesday, August 3, 2011 11:16:59 AM UTC-4, Richard wrote: Is there a advantage to use reponse.file except the length of the code line and the possibility to insert a CSS or JS at the controller level?? Is it faster or

[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-03 Thread Christopher Steel
Here is a rough working outline of what the future pip web2py installer could do. The one that is currently called web2py basically installs glueon to site-packages which is great if you want to import Web2py stuff, like say DAL functionality into another Python application but it is not what

[web2py] Re: request.vars does not contain the automatic record.id?

2011-08-03 Thread Anthony
I think the id should be in postform.vars.id after you call postform.accepts (assuming the form was accepted). Anthony On Wednesday, August 3, 2011 11:00:39 AM UTC-4, Ramos wrote: hello i need to get the automatic id field of the record in my controler after the code * * *if

[web2py] proposed pip installer for an out of the box web2py experience

2011-08-03 Thread Chris Steel
Why? The current web2py package that is available for installation via pip installs glueon and other stuff to site-packages which is great for advance usage, like importing Web2py stuff, for example, DAL functionality into another Python application but this is not what someone checking out

Re: [web2py] Re: request.vars does not contain the automatic record.id?

2011-08-03 Thread António Ramos
Ohhh, now i´m confused what is the diference between postform.vars and request.vars thank you António 2011/8/3 Anthony abasta...@gmail.com I think the id should be in postform.vars.id after you call postform.accepts (assuming the form was accepted). Anthony On Wednesday, August 3, 2011

[web2py] web2py and mercurial workflow question

2011-08-03 Thread Eric Scott
I'm new to web2py but find it a vast improvement over the PHP-based web framework I was using before, and so I'm already using web2py to develop my next web app. At the same time, I find myself in a situation where I'm needing to use several different computers to do my work. See I need to find

[web2py] Re: proper way to define a user table

2011-08-03 Thread Rufus
On Aug 1, 9:10 am, Anthony abasta...@gmail.com wrote: On Monday, August 1, 2011 6:23:03 AM UTC-4, Ramos wrote: this way works auth.settings.extra_fields['auth_user'] = [Field('Skype')] Yes, this will create auth.settings.extra_fields['auth_user']. Once created, you should be able to

Re: [web2py] Re: pre-populating form on crud.create

2011-08-03 Thread Jim Steil
Thanks, just what I needed. -Jim On 8/3/2011 10:46 AM, Anthony wrote: I don't think that method would work with Crud because the .accepts method is called within crud.create, which happens before your form.vars assignment. Instead, try: db.tablename.description.default = 'default value'

Re: [web2py] Re: request.vars does not contain the automatic record.id?

2011-08-03 Thread Anthony
On Wednesday, August 3, 2011 12:12:10 PM UTC-4, Ramos wrote: Ohhh, now i´m confused what is the diference between postform.vars and request.vars request.vars includes the form variables that came in to the server via the HTTP post request (before any validation or processing). form.vars

[web2py] Re: something strange when installing application

2011-08-03 Thread mart
hum... very strange... i see it when I run web2py locally (127.0.0.1), but not when I run it with web2py specifying ip 0.0.0.0 and port 8080... I don't get any exceptions, or something that says trying to load jqgrid... I just get the page header (# Queue). The table is there (its a queue and

Re: [web2py] Any LDAP auth users out there?

2011-08-03 Thread Brian M
BINGO - ldap.set_option(ldap.OPT_REFERRALS, 0) seems to have done it. Thank You!

Re: [web2py] web2py and mercurial workflow question

2011-08-03 Thread Richard Vézina
I can't answer to all your questions... But I will try to help about some of your point... First, welcome in Web2py crew ;-) On Wed, Aug 3, 2011 at 12:08 PM, Eric Scott erictransla...@gmail.comwrote: I'm new to web2py but find it a vast improvement over the PHP-based web framework I was

[web2py] Pre-Populate crud.update

2011-08-03 Thread Ismael Serratos
Hii! How could I pre populate a crud.update (or equivalent with SQLFORM), I mean, I have 3 list:string multiple fields (they take the value from another table), like this db.define_table('project', Field('name','string'), Field('comment','text'),format='%(name)s')

[web2py] Re: Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Rufus
I just recently started with web2py, and found that it is a pretty big elephant that is hard to eat a bite (byte?) at a time, precisely because everything's included. Even a simple app gets and incredible amount of scaffolding. I routinely delete the languages directory, as I don't need the

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Richard Vézina
Syst admin like make system hardening... That could be an answer... Richard On Wed, Aug 3, 2011 at 10:34 AM, cjrh caleb.hatti...@gmail.com wrote: On Wednesday, 3 August 2011 16:22:46 UTC+2, mcm wrote: I agree, that size is small even on embedded systems by now... Anyway trying to keep it

[web2py] Re: web2py and mercurial workflow question

2011-08-03 Thread pbreit
I pretty much do exactly what you describe (pricetack.com). The one main difference is that I use Fabric to script my deployment activities. I highly recommend checking out Fabric if you are planning to develop web apps. It's pretty easy to get started and use. I have Fabric scripts that build

Re: [web2py] email to all users of a group. Howto?

2011-08-03 Thread Bruno Rocha
for user in db(db.auth_user.id ==db.auth_group.id_user).select(db.auth_user.email): mail.send(.) Something like that. 2011/8/3 António Ramos ramstei...@gmail.com i need to send email to all users of a group is there a simple way of doind this? like

[web2py] Re: proposed pip installer for an out of the box web2py experience

2011-08-03 Thread pbreit
I'm wary of putting stuff on pip/pypi. Once you put stuff there, you really need to be committed to keeping it updated or else things get confusing. I found the Mac package simple to download from web2py.com, double click the app and you're up and running. And developers really should be

Re: [web2py] delete a SQLTABLE column

2011-08-03 Thread pbreit
That's how I delete columns.

Re: [web2py] Re: web2py and mercurial workflow question

2011-08-03 Thread Richard Vézina
Thank pbreit, I will look at it... I would prefer stay in python then have to bash script... http://docs.fabfile.org/en/1.2.0/index.html Richard On Wed, Aug 3, 2011 at 3:54 PM, pbreit pbreitenb...@gmail.com wrote: I pretty much do exactly what you describe (pricetack.com). The one main

Re: [web2py] delete a SQLTABLE column

2011-08-03 Thread Anthony
I think he wants to delete columns from a SQLTABLE, not a db table. On Wednesday, August 3, 2011 4:01:09 PM UTC-4, pbreit wrote: That's how I delete columns.

Re: [web2py] Re: web2py and mercurial workflow question

2011-08-03 Thread Richard Vézina
Can you manage the web2py version change with Fabric too? Richard On Wed, Aug 3, 2011 at 4:01 PM, Richard Vézina ml.richard.vez...@gmail.comwrote: Thank pbreit, I will look at it... I would prefer stay in python then have to bash script... http://docs.fabfile.org/en/1.2.0/index.html

[web2py] Re: possible bug resetting user password?

2011-08-03 Thread pbreit
Can you set your server to switch from http to https? Or include this in def user(): in controllers/default.py: auth.messages.reset_password = \ 'Click on the link https://...reset_password/%(key)s to reset your password'

Re: [web2py] delete a SQLTABLE column

2011-08-03 Thread Richard Vézina
Yes... I use pgAdmin for the other things, I didn't fix my choice on a commercial database manager... ;-) Richard On Wed, Aug 3, 2011 at 4:04 PM, Anthony abasta...@gmail.com wrote: I think he wants to delete columns from a SQLTABLE, not a db table. On Wednesday, August 3, 2011 4:01:09 PM

Re: [web2py] email to all users of a group. Howto?

2011-08-03 Thread Anthony
Also, if all the recipients get the same message (with no customization), then you can provide a list or tuple of recipients as the 'to', 'cc', or 'bcc' argument to mail.send(), so you only need to call it once. Anthony On Wednesday, August 3, 2011 3:47:30 PM UTC-4, rochacbruno wrote: for

Re: [web2py] delete a SQLTABLE column

2011-08-03 Thread Richard Vézina
Don't know if my delete column function could be part of web2py core functions but here it is : def __del_sqltable_column(sqltable, column_name): For deleting a given column in an instance of web2py SQLTABLE class. Pass the SQLTABLE object and the column name to delete. Ex.:

Re: [web2py] Re: web2py and mercurial workflow question

2011-08-03 Thread pbreit
Well, Fabric itself pure Python and fabfiles are Python but yes, it's mainly making shell commands. I find that a lot better since that's usually how documentation shows a lot of these things. You don't end up doing anything too crazy. Just a lot of cd, cp, mv, hg, rm, chown, etc. Yes, you can

[web2py] 1.96.1 breaks backward compatibility, and hides it. [invalid view (default.html)]

2011-08-03 Thread Kevin Butler
Let me preface this by saying that I really enjoy web2py, and that it's a testament to the great efforts that Massimo puts into maintaining backwards compatibility that made this change such a painful surprise... 1.96.1 includes a security fix that breaks existing applications by disabling

[web2py] Re: Help needed with Google App Engine on Ubuntu 11.04

2011-08-03 Thread howesc
pystar, what are the errors that you are getting? i have never built python myself (that i can remember), which implies that when i was last on ubuntu there was a python2.5 package that i could install from the package manager. never used virtualenv myself so i have no thoughts. for the

[web2py] Re: 1.96.1 breaks backward compatibility, and hides it. [invalid view (default.html)]

2011-08-03 Thread pbreit
Yeah, I think we can do a better job of handling this. I still like that the generics work out-of-the-box on localhost but perhaps we could insert messaging explaining what is going on. And then for non-local attempts to use the generics we could have more helpful messaging?

Re: [web2py] Re: web2py and mercurial workflow question

2011-08-03 Thread Christopher Steel
I really enjoy the mercurial / fabric combo as well and I agree with pbreit, start with the basics and build on that over time. On my development system I clone Web2py itself and then in the applciations directory I create clones of my projects as well. Makes for very fast setup. You can save

[web2py] Re: 1.96.1 breaks backward compatibility, and hides it. [invalid view (default.html)]

2011-08-03 Thread Anthony
Note, restoring apps to the original behavior requires just this single line in any model file: response.generic_patterns=['*'] Anthony On Wednesday, August 3, 2011 5:02:28 PM UTC-4, Kevin Butler wrote: Let me preface this by saying that I really enjoy web2py, and that it's a testament

[web2py] Re: how to add a css file in web2py

2011-08-03 Thread Web2Py Freak
do i have to change the urls inside the css file thay are all like : .class{ background: #543 url(images/1.jpg); }

[web2py] Re: proposed pip installer for an out of the box web2py experience

2011-08-03 Thread Christopher Steel
I like the way you think pbreit, I would not bother except that we have something up now (which does work actually) that is really confusing for new pip and/or Web2py users and even a few more seasoned ones ; ) . The ideas in the draft basically bypass the whole packaging concept and does a

[web2py] Re: 1.96.1 breaks backward compatibility, and hides it. [invalid view (default.html)]

2011-08-03 Thread Anthony
On Wednesday, August 3, 2011 5:02:28 PM UTC-4, Kevin Butler wrote: The fix was made for good reasons (because saying Don't do that isn't a good security solution), but it really does break existing applications - see http://web2py.com/examples/default/examples 3rd example, click the

[web2py] Re: something strange when installing application

2011-08-03 Thread Christopher Steel
If a user on OS X is using the Web2py versioning button the first time it automatically generates a .hgignore file that ignores the database directory... Whew... could that be the issue?? Chris

[web2py] Re: how to add a css file in web2py

2011-08-03 Thread Anthony
I think you'll be OK if you put the folders referred to in your CSS URLs inside the /static/css folder. For example, in your example below, it looks like there is an 'images' folder with a 1.jpg file in it, so you'd need: /yourapp/static/css/images/1.jpg Otherwise, yes, I suppose you'd have

[web2py] Re: Ubuntu pip install web2py in virtualenv

2011-08-03 Thread Christopher Steel
I did a little research on the pip web2py install. It places web2py and gluon in the virtualenvs lib/python/site-packages and when you run Python/bin/mkweb2pyenv it creates a detached Web2py applications directory in whatever directory you happen to be in when you run the command. People who

[web2py] Re: postgres - prepared statements in DAL?

2011-08-03 Thread Massimo Di Pierro
No. Can you give us an example of why you should use it outside a distributed transaction? On Aug 3, 6:31 am, Tarun Arora tarunarora.ni...@gmail.com wrote: Is it possible to create and execute prepared statements in DAL for postgresql?  I observed there is a prepare api for creating 'PREPARE

[web2py] Re: About passwords security in web2py

2011-08-03 Thread Massimo Di Pierro
The password are hashed not encrypted (also known as a one-way- encryption). A hacker getting access to the passwords file cannot decrypt them. The hacker can theoretically find collision but it is almost impossible with SHA512+HMAC (which web2py uses). Things are different for the administrator.

[web2py] Re: Odg.: Re: Web2py Full Text Search Options

2011-08-03 Thread Massimo Di Pierro
def keywords(record): return list(set(x.lower() for x in re.compile('\w +').findall(record.content or ''))) On Aug 3, 7:39 am, andrej burja andrej.bu...@gmail.com wrote: why is the first part def keywords(record):      return list(set(x.lower() for re.compile('\w

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Phyo Arkar
Syst admin like make system hardening... That could be an answer... Yes i am more into Sys Admin than web-developer , you've read my mind Richard Vézina Ok my concern is not really about the File size but the Code Base size (lines of code , number of features). Here is what i have: 1 .

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Phyo Arkar
Plus Bandwidth concern. I use my own Dedicated and VPS servers to host. They are already busy , and Bigger file-size = more bandwidth , 10MB * Download already 10 GB . If this become popular , bandwidth cost will be great.. Errata: 10MB * 1000 Downloads already 10GB. My bandwidth limit is

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Phyo Arkar
Actually more Modularizing inside Gluon should be made easy. putting all core features into gluon/core , everything that related into gluon/dal , those can be removed without problem into its own folders etc. I will look into this first. On Thu, Aug 4, 2011 at 4:58 AM, Phyo Arkar

[web2py] Re: Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Massimo Di Pierro
most files in gluon/dal have no dependences. Exception is the triad: main.py, compileapp.py, restricted,py. On Aug 3, 5:31 pm, Phyo Arkar phyo.arkarl...@gmail.com wrote: Actually more Modularizing inside Gluon should be made easy. putting all core features into gluon/core , everything that

[web2py] Re: delete a SQLTABLE column

2011-08-03 Thread Massimo Di Pierro
I do not think this qualifies for addition but it is useful. I would have done: rows = db().select(db.table.ALL) db.table.fieldtodelete.writable=False table = SQLTABLE(rows) or rows = db().select(*[field for field in db.table if not field.name=='fieldtodelete']) table = SQLTABLE(rows) On Aug

Re: [web2py] Re: Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Phyo Arkar
They are most core of the webp2y , i c. On Thu, Aug 4, 2011 at 5:16 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: most files in gluon/dal have no dependences. Exception is the triad: main.py, compileapp.py, restricted,py. On Aug 3, 5:31 pm, Phyo Arkar phyo.arkarl...@gmail.com

[web2py] Re: Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread Massimo Di Pierro
main contains the wsgibase app. compileapp defined run_models, run_controllers, run_views (called by wsgibase) and they run using restricted (in restricted.py) which does the exec in an environment and captures errors into a RestrictedException object. Everything else is pretty much decoupled.

[web2py] Re: jqgrid widget with no table source

2011-08-03 Thread Jim Karsten
I am working on a jqgrid module. There is a chance it can work for what you are trying to do. The module is designed around web2py tables but the JqGrid class can be subclassed and the data method, the method used to access the data for the jqgrid rows can be overridden with whatever you like.

[web2py] web2py 1.98.2 is OUT

2011-08-03 Thread Massimo Di Pierro
Mostly bug fixes, in particular an undefined keyword that broke the osx binary. Anyway, please check it.

Re: [web2py] web2py 1.98.2 is OUT

2011-08-03 Thread steve van christie
great work, thank you so much

[web2py] Tip: computed fields and update_record

2011-08-03 Thread pbreit
A gotcha when working with computed fields and update_record: the only fields that get sent to the compute function are the ones specified in the update_record. This makes sense but caught me off guard. Example: item.update_record(a=1) This compute works: db.item.result.compute = lambda r: a

Re: [web2py] Do we need a Web2py micro-framework , or split web2py into multiple components ?

2011-08-03 Thread pbreit
Can you make any specific suggestions on what could or should be removed? As far as I can tell, there is not a lot of stuff that is unused. It's quite rare to use Web2py without a database. The examples app and language files are probably rarely used but aren't much harm. What else would you

[web2py] Re: Pre-Populate crud.update

2011-08-03 Thread Ismael Serratos
I've tried with db.auth_user.owner_proj.default = db.(db.auth_user.id == reques.args[0]).select(db.auth_user.owner_proj).first() form = crud.update(db.auth_user, request.args[0]) but nothing happens, I mean, the form shows filled OK except in the 3 multiple fields which appears to be empty, I

[web2py] routes.py in webfaction with favicon

2011-08-03 Thread blackthorne
Just trying to set a favicon in an application called init on a webfaction. However, I just get Internal Server Error everytime I use routes.py. Here's the code: default_application = 'init'# ordinarily set in base routes.py default_controller = 'default' # ordinarily set in app-specific

[web2py] Re: something strange when installing application

2011-08-03 Thread mart
wow... that's a good one! so... i was on MACOS, then I did update using the web2py update button... then I packed it up, pushed it to a windows server and installed it... I'll see if i can retrace those steps... that makes me think, the windows server has a different (lower) version of web2py (I

[web2py] Trouble with components

2011-08-03 Thread G
Hello, I am trying to make a simple component which has a form that contains just buttons. It seems to work OK when I use LOAD(... ajax=False) and have only one component on my page. However, I'd like to have multiple components on one page. When I tried that, still with ajax=False, everything

[web2py] Re: Pre-Populate crud.update

2011-08-03 Thread Anthony
On Wednesday, August 3, 2011 1:35:17 PM UTC-4, Ialejandro wrote: Field('user_proj','string',requires=IS_IN_DB(db,db.project.id ,%(name)s,multiple=True)), Field('owner_proj','string',requires=IS_IN_DB(db,db.project.id,%(name)s, multiple=True)),

[web2py] Re: routes.py in webfaction with favicon

2011-08-03 Thread pbreit
You typically should not have to do anything in routes.py for a favicon to work. Do your Javascripts, CSS files and other images load OK?

Re: [web2py] Re: Pre-Populate crud.update

2011-08-03 Thread Ismael Serratos
In fact I'm using list:string because architechture, I'm doing a lot of manual parsing, but Is it a problem? Coould it be implemented? or the best way is to use list:reference? On Wed, Aug 3, 2011 at 10:49 PM, Anthony abasta...@gmail.com wrote: On Wednesday, August 3, 2011 1:35:17 PM UTC-4,

[web2py] Re: Trouble with components

2011-08-03 Thread pbreit
I think with ajax=False you're going to run into problems because the end result is both of the forms on one page of HTML and the controller might get confused on which to handle. But I would think ajax=True should work. ajax_trap should be unnecessary. Can you get one form to work by itself

[web2py] Re: Rocket support IPv6

2011-08-03 Thread Rahul
Congratulations!! God bless the baby :) On Aug 3, 6:14 pm, Furqan Rauf sfar.fur...@gmail.com wrote: congrats Tim On Wed, Aug 3, 2011 at 8:12 AM, Michele Comitini michele.comit...@gmail.com wrote: Tim finding you on g+ was a challange... i'm definitely dumb and always miss

  1   2   >