[web2py:33562] Re: plugin system again

2009-10-23 Thread Thadeus Burgess
Multiple DAL. If I wrote a script that HAS to connect to a mysql database, and a postgresql database at the same time. -Thadeus On Fri, Oct 23, 2009 at 11:32 PM, mr.freeze wrote: > > Massimo, in the video you assume that there are instances of DAL and > Crud that are named db and crud respec

[web2py:33561] Re: plugin system again

2009-10-23 Thread mr.freeze
Massimo, in the video you assume that there are instances of DAL and Crud that are named db and crud respectively. This may not be the case and doesn't seem portable. Shouldn't their be a way to instantiate a plugin with a user's current instances? (i.e. what if they named their Crud instance my

[web2py:33560] Re: Problem w/ migration

2009-10-23 Thread mdipierro
I cannot reproduce this. My only guess is that your databases/*.table files got corrupted. Perhaps you copied you .sqlite file but not the .table files and they got out of sync. If you do not have data in there, just delete everything in databases/ Massimo On Oct 23, 10:04 am, Scott Hunter wrot

[web2py:33559] Re: plugin system again

2009-10-23 Thread mdipierro
It seems to me this would move us completely in the wrong direction. It would create a lot of structure one would need to remember. It creates a new programming paradigm where for plugin models/view/ controllers are no longer separated in files but stored together in the same file. I like the ide

[web2py:33558] Re: tip of the day: $anything

2009-10-23 Thread mdipierro
You can also use $a, $b, $whatever to match any sequence of alphanumeric chars On Oct 23, 10:54 pm, JorgeRpo wrote: > cool > > I am not that into reg exp. > > Nice feature. > > On Oct 23, 10:46 pm, mdipierro wrote: > > > there is something new in trunk that I forgot to mention. > > > I get anno

[web2py:33557] Re: UUIDś for auth tables

2009-10-23 Thread mdipierro
Sorry for the late reply. That comment is misleading and I will remove it The code in there has nothing to do with uuid. That code has to do with customizing the names of the .table. web2py uses uuid to name those files. Nothing to do with UUIDs for records. You can add a uuid field if you want b

[web2py:33556] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-23 Thread mdipierro
Nope. This would allow one app to change error messages to other apps. On Oct 23, 10:42 pm, Iceberg wrote: > > On Oct 21, 12:03 pm, Iceberg wrote: > > > It is a little bit surprising and happy to see these error_message > > > draw enough attention. :-)  So is it time to also consider my proposa

[web2py:33555] Re: tip of the day: $anything

2009-10-23 Thread JorgeRpo
cool I am not that into reg exp. Nice feature. On Oct 23, 10:46 pm, mdipierro wrote: > there is something new in trunk that I forgot to mention. > > I get annoyed by things like this in routes (not readable) > >     routes_in=[('/(?P.*)','/myapp/\g')] > > so now you can do > >     routes_in=[(

[web2py:33554] tip of the day: $anything

2009-10-23 Thread mdipierro
there is something new in trunk that I forgot to mention. I get annoyed by things like this in routes (not readable) routes_in=[('/(?P.*)','/myapp/\g')] so now you can do routes_in=[('/$anything','/myapp/$anything')] $anything is a keyword that matches everything until the end of the

[web2py:33553] Re: AJAX POST request returning 500 server error.

2009-10-23 Thread Thadeus Burgess
Thanks, got it installed now! -Thadeus On Fri, Oct 23, 2009 at 9:55 PM, Wes James wrote: > > I think in setup.py you need to tell it where pg_config is > /usr/local/pgsql/bin/pg_config > > something like that if you didn't. > > On Fri, Oct 23, 2009 at 1:29 PM, Thadeus Burgess > wrote:

[web2py:33552] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-23 Thread Thadeus Burgess
The paths are simlinked. Also, the site does not work if WSGI declarations are in Remember, I am running on CentOS 5 not Ubuntu, debian, arch, or slack... and I have PLESK to deal with. If I were running on ubuntu, I wouldn't even be asking any questions, because it works perfectly on my home u

[web2py:33551] Re: more specific IS_INT_IN_RANGE / IS_FLOAT_IN_RANGE error message

2009-10-23 Thread Iceberg
> On Oct 21, 12:03 pm, Iceberg wrote: > > It is a little bit surprising and happy to see these error_message > > draw enough attention. :-)  So is it time to also consider my proposal > > more than one month before?   > > http://groups.google.com/group/web2py/browse_frm/thread/8cbe658406be595f >

[web2py:33550] Re: new site using web2py

2009-10-23 Thread david bain
I like the site. BTW I noticed a Plone favicon for some reason. What were your reasons for chosing web2py over Django? What database are you using on the backend? sqlite, mysql, postgres? On Fri, Oct 23, 2009 at 10:25 PM, JorgeRpo wrote: > > Cool. > > Nice work ;) > > On Oct 23, 9:02 pm, Darcy

[web2py:33549] Re: new site using web2py

2009-10-23 Thread JorgeRpo
Cool. Nice work ;) On Oct 23, 9:02 pm, Darcy Clark wrote: > htpt://www.qualitysystems.com > > This is our first site built using web2py. We have been Zope/Plone > developers for many years and have built many Plone sites - we decided > to stick with Python for this project but wanted to try som

[web2py:33548] powered by web2py

2009-10-23 Thread mdipierro
I normally use appliedstacks.com to keep track and record web2py powered web sites. Today it is down and I realized that information may get lost. It would be nice if somebody where to take on the job of listing known "web2py powered" web sites on the web2py wiki that Alvaro is maintaining. Mass

[web2py:33547] Re: new site using web2py

2009-10-23 Thread mdipierro
Really amazing site. And thanks for you comment. Does it mention web2py anywhere? You do not have to. But if you I will be happy to list your company under "affiliated companies". On Oct 23, 9:02 pm, Darcy Clark wrote: > htpt://www.qualitysystems.com > > This is our first site built using web

[web2py:33546] Re: AJAX POST request returning 500 server error.

2009-10-23 Thread Wes James
I think in setup.py you need to tell it where pg_config is /usr/local/pgsql/bin/pg_config something like that if you didn't. On Fri, Oct 23, 2009 at 1:29 PM, Thadeus Burgess wrote: > Could you help me with python-postgres installation? > > I installed postgresql, and postgresql-server, the

[web2py:33545] Re: Extending Auth

2009-10-23 Thread mr.freeze
You just need to define a custom auth table. If you define a username field it will be used instead of email when you login. You can define any other fields you want. For example in your model: from gluon.tools import * auth=Auth(globals(),db) auth_table = db.define_table("auth_user", db.F

[web2py:33544] Re: new site using web2py

2009-10-23 Thread mr.freeze
Amazing looking site! On Oct 23, 9:02 pm, Darcy Clark wrote: > htpt://www.qualitysystems.com > > This is our first site built using web2py. We have been Zope/Plone > developers for many years and have built many Plone sites - we decided > to stick with Python for this project but wanted to try s

[web2py:33543] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-23 Thread Graham Dumpleton
On Oct 24, 3:43 am, Thadeus Burgess wrote: > So basically, from what I gather looking over what I have, the only thing I > have wrong with my configuration is setting PythonHome and SocketPrefix. > > when I place the WSGIDaemon and WSGIProcessGroup and WSGIScriptAlias in the > VirtualHost in ht

[web2py:33542] Re: Shared webhosting on Debian Etch

2009-10-23 Thread Graham Dumpleton
On Oct 23, 11:35 pm, Johann Spies wrote: > 2009/10/23 Graham Dumpleton : > > > > > One can only have a single SSL certificate for an IP so you can't have > > multiple virtual hosts for HTTPS off same IP. > > That is what I found out while trying this. > > > > > If there is a HTTPS restriction s

[web2py:33541] new site using web2py

2009-10-23 Thread Darcy Clark
htpt://www.qualitysystems.com This is our first site built using web2py. We have been Zope/Plone developers for many years and have built many Plone sites - we decided to stick with Python for this project but wanted to try something different and less cumbersome. Overall I'd say that web2py is a

[web2py:33540] Extending Auth

2009-10-23 Thread Wiiboy
How does one extend the auth system (e.g. adding more fields, like user avatar, username, etc.)? I've seen a couple things in Wikis and so on, but nothing has been very clear. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:33539] Re: running from source on Vista requires pywin32

2009-10-23 Thread mdipierro
True. This is why we provide the windows binary, it includes the mark hammond extensions. On Oct 23, 5:13 pm, carlo wrote: > well after some investigation I would say: > > - python has no cross platform module to lock files > - on unix like systems there are no problems because of the fcntl > na

[web2py:33538] Re: running from source on Vista requires pywin32

2009-10-23 Thread carlo
well after some investigation I would say: - python has no cross platform module to lock files - on unix like systems there are no problems because of the fcntl native python module - web2py uses the classic portalocker, a cross platform module to control file locking in a posix environment - por

[web2py:33537] Re: Incorrect documentation

2009-10-23 Thread Thadeus Burgess
It was documented On the example page! :) However since the book is the law on what is considered "compatibility", its all good. -Thadeus On Fri, Oct 23, 2009 at 2:26 PM, mdipierro wrote: > > There was a time when we called the variable pools (not pool_size) but > it was never documented so

[web2py:33536] Re: AJAX POST request returning 500 server error.

2009-10-23 Thread Thadeus Burgess
Could you help me with python-postgres installation? I installed postgresql, and postgresql-server, they are running, and I can access postgre through phpPgAdmin. I tried installing psycog2 however I get the following traceback running build running build_py creating build creating build/lib.lin

[web2py:33535] Re: Incorrect documentation

2009-10-23 Thread mdipierro
There was a time when we called the variable pools (not pool_size) but it was never documented so we do not need to keep backward compatibility (unless there are objections). I will fix it. On Oct 23, 2:10 pm, Thadeus Burgess wrote: > On > > http://www.web2py.com/examples/default/dal > > Line on

[web2py:33534] Incorrect documentation

2009-10-23 Thread Thadeus Burgess
On http://www.web2py.com/examples/default/dal Line one db = DAL(‘postgres://user:passw...@hostname/db’, pools=10) there is no pools declarative it should be pool_size, Is this a typo in documentation? the book uses pool_size For the heck of it, it can be patched for backwards compatibility:

[web2py:33533] Re: export_to_csv then import_from_csv gives field limit exception

2009-10-23 Thread Thadeus Burgess
Is there a way in the DAL to specify ENGINE=MyISAM; ? It might have to do with using InnoDB, not sure. Let me try this on postgres :) -Thadeus On Fri, Oct 23, 2009 at 1:18 PM, DenesL wrote: > > > You version of MySQL might have a bug: > http://bugs.mysql.com/bug.php?id=4541 > > If there is

[web2py:33532] Re: Custom settings

2009-10-23 Thread mdipierro
I normally put settings in models/0.py but it is not a rule. you can define any variable like response.myvar as long as it is not there already. Even if new settings were to be defined by future web2py versions it is unlikely there will be conflict since yours would override them. On Oct 23, 10

[web2py:33531] Re: Web2py concerns

2009-10-23 Thread mdipierro
> authors = models.ManyToManyField(Author) This hides the actual database implementation. It is fine is the link table does not carry additional information but limiting otherwise. Web2py we choose not abstract the databse too much, only the syntax to access it, more like RoR does it. We allow co

[web2py:33530] Re: AJAX POST request returning 500 server error.

2009-10-23 Thread mdipierro
This is just my biased opinion: 1) MySQL was fatser than postgresql when it had no transaction 2) MySQL has lots of quirks (like max length for text files, no multiple alter table in one transaction, and others) 3) MySQL was developed by SUN which was bought by Oracle and it is not clear what it f

[web2py:33529] Re: export_to_csv then import_from_csv gives field limit exception

2009-10-23 Thread DenesL
You version of MySQL might have a bug: http://bugs.mysql.com/bug.php?id=4541 If there is way around it then the DAL might be modified to handle it. There are additional hits doing a Google search with that error. Denes. --~--~-~--~~~---~--~~ You received this

[web2py:33528] Custom settings

2009-10-23 Thread iiijjjiii
I would like to display a version number (of the application, not web2py) in the footer of layout.html. It would seem creating a new setting similar to the author setting would work well. Questions: 1) Can I create custom settings? Will web2py upgrades have any affect on them? 2) Where should s

[web2py:33527] Re: plugin system again

2009-10-23 Thread mr.freeze
We may be conceptualizing plugins differently, but I think they would need views for layout as well as supporting resource files (js, images, css). I am imagining plugins as things like commments, openID login, menus, wikis, etc... It sounds like the current design is going forward so I won't wor

[web2py:33526] Re: Web2py concerns

2009-10-23 Thread DenesL
> Can you tell me how can I implement the select with add in a form? I have not used it (yet) but it is documented in a web2pyslice: http://www.web2pyslices.com/main/slices/take_slice/11> Denes. --~--~-~--~~~---~--~~ You received this message because you are subs

[web2py:33525] Re: AJAX POST request returning 500 server error.

2009-10-23 Thread Thadeus Burgess
Why do you suggest postgresql? I have done alot of research into the two, and mysql seems to be the more effeciant of the two. >From what I gather, mysql is created to be lightweight, and super fast. Postgresql is created to be feature full and stable. However, dreamhost does not provide postgres

[web2py:33524] Re: export_to_csv then import_from_csv gives field limit exception

2009-10-23 Thread Thadeus Burgess
There is definitely something broken with the mysql DAL. On the app I am working on in my day job, I pointed it over to our mysql servers to an already created database, and got the OperationlError key was too long; -Thadeus On Fri, Oct 23, 2009 at 10:57 AM, Thadeus Burgess wrote: > Operati

[web2py:33523] Re: cross doman json-rpc

2009-10-23 Thread Don Lee
Thanks omicron. I have enabled the cross Domain property and saw some interesting behavior that led me to believe that web2py needed additional configuration. This post and additional investigation have reversed my opinion. I am using qooxdoo-0.8.3 . I found the following: web server / json-r

[web2py:33522] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-23 Thread Thadeus Burgess
Without a virtualhost declaration for https, if I navigate to https, it will direct to the httpsdoc folder. -Thadeus On Fri, Oct 23, 2009 at 11:43 AM, Thadeus Burgess wrote: > 503's --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:33521] Re: mod_wsgi web2py AliasMatch what serves the files apache/web2py?

2009-10-23 Thread Thadeus Burgess
So basically, from what I gather looking over what I have, the only thing I have wrong with my configuration is setting PythonHome and SocketPrefix. when I place the WSGIDaemon and WSGIProcessGroup and WSGIScriptAlias in the VirtualHost in httpd.conf, the site displays a directory listing of /var/

[web2py:33520] Re: Web2py concerns

2009-10-23 Thread Doxaliber
Hello Denes, > I am not sure that is a con. > More powerful (I can't opine since I have not used Django) but less > immediate?. I think there is a misunderstanding, I've wrote that Django ORM is less powerful but more immediate : "ORM maybe it's more powerful than the Django one but it's less im

[web2py:33519] Re: export_to_csv then import_from_csv gives field limit exception

2009-10-23 Thread Thadeus Burgess
No, I am getting OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes') Yes, I do get the unscriptable error if I use auth.user... I think I caught that after I made the post and got tired and went to sleep :) But I still get the OperationalError with this: It works

[web2py:33518] Re: export_to_csv then import_from_csv gives field limit exception

2009-10-23 Thread DenesL
So just to be clear, you are not getting TypeError: 'NoneType' object is unsubscriptable ? I get the same error using your posted code with MSSQL (and it will blow up with any other DB), so it is not something with the MySQL DAL. Denes. On Oct 23, 11:42 am, Thadeus Burgess wrote: > Yeah that

[web2py:33517] Re: export_to_csv then import_from_csv gives field limit exception

2009-10-23 Thread Thadeus Burgess
Yeah that was just a typo when I wrote it in gmail, I did not copy/paste it from my code. It is db.auth_user in my code. -Thadeus On Fri, Oct 23, 2009 at 8:30 AM, DenesL wrote: > > Hi Thadeus, > > On Oct 23, 2:08 am, Thadeus Burgess wrote: > > I might just be doing something wrong, but I th

[web2py:33516] Re: Web2py concerns

2009-10-23 Thread DenesL
Hi Doxaliber, On Oct 23, 6:02 am, Doxaliber wrote: > Hello everybody, > > yesterday I've bought on Lulu the Book on web2py. I've a good > experience with Django and I want to share my first impressions on > Web2py that, I think, have some positives and some negatives respect > to Django. > > The

[web2py:33515] Problem w/ migration

2009-10-23 Thread Scott Hunter
I've added the following field to the table worksheet: SQLField('mysortkey', length = 40, default = 'something' ) I get a ticket reporting: Traceback (most recent call last): File "/home/scott/web2py_1_68_2/gluon/restricted.py", line 184, in restricted exec ccode in environment File "/h

[web2py:33514] Re: Upload test files into web-py not using form

2009-10-23 Thread Alessio
thanks, solved by this: counter = 0 for root, dirs, files in os.walk(repo_path): i = 1 for filename in files: path = os.path.join(root, filename) new_filename = 'image.file.' + str(i + counter) + '.' + filename shutil.copyfile(path,

[web2py:33513] Re: Web2py concerns

2009-10-23 Thread mdipierro
That makes two of us. But we do have another language in common. On Oct 23, 9:40 am, Doxaliber wrote: > Sorry, my english is really bad. :-/ > > On 23 Ott, 16:37, mdipierro wrote: > > > I should doubly apologize because I have incorrectly interpreted the > > tone of your email. > > I really app

[web2py:33512] Re: Web2py concerns

2009-10-23 Thread Doxaliber
Sorry, my english is really bad. :-/ On 23 Ott, 16:37, mdipierro wrote: > I should doubly apologize because I have incorrectly interpreted the > tone of your email. > I really appreciate your advice on this matter. > > Massimo > > On Oct 23, 9:28 am, Doxaliber wrote: > > > "Anyway, you do not n

[web2py:33511] Re: Web2py concerns

2009-10-23 Thread mdipierro
I should doubly apologize because I have incorrectly interpreted the tone of your email. I really appreciate your advice on this matter. Massimo On Oct 23, 9:28 am, Doxaliber wrote: > "Anyway, you do not need to like me to like web2py and vice versa. " > > Let me clarify that I have absolutely

[web2py:33510] Re: Web2py concerns

2009-10-23 Thread Doxaliber
"Anyway, you do not need to like me to like web2py and vice versa. " Let me clarify that I have absolutely no problem with you, I just wanted to "tell" the impression that an external user may have reading some discussions through some forum. I've expressed those critics because I think that web2

[web2py:33509] Re: cross doman json-rpc

2009-10-23 Thread omicron
I'm using QooxDoo / Web2Py with JSonRpc in several applications and don't need special features in Web2py. If you want crossdomain feature in QooxDoo you must set the crossDomain property to true: var rpc = new qx.io.remote.Rpc("http://targetdomain.com/appname/ function/call/jsonrpc"); rpc

[web2py:33508] Re: Web2py concerns

2009-10-23 Thread mdipierro
I agree with everything you say except one. I do not act like a spammer (defined as someone who sends unsolicited bulk messages). I just respond to every post online mentioning web2py and to posts asking generic information about Python Web Frameworks, in particular to correct false statements ma

[web2py:33507] Re: cross doman json-rpc

2009-10-23 Thread Don Lee
I do not need cross domain call blocking. But I guess it would be a good feature to have. I am experiencing a problem with qooxdoo's cross domain call setup, and I wanted to make sure there wasn't something within web2py that I should configure as well. Now I have to go and gather some data so

[web2py:33506] Re: cross doman json-rpc

2009-10-23 Thread mdipierro
There is nothing in the JSONRPC to do it but you can block those calls from outside using routes. It is not that user friendly. Let me think about this. If poeple have any idea let me know. On Oct 23, 8:24 am, Don Lee wrote: > Is there anything within web2py's json-rpc implementation that would

[web2py:33505] Re: Are Content Internationalization and event framework missing?

2009-10-23 Thread mdipierro
Do you in Django how the information is shared if the apps are on a distributed platform (like multiple servers or GAE)? On Oct 23, 2:07 am, Alex Ruddy wrote: > >> Are you looking for a publisher-subscriber > > mechanism? > > Yes. It would be really good to have it, Django has it and Web2py > s

[web2py:33504] Web2py concerns

2009-10-23 Thread Doxaliber
Hello everybody, yesterday I've bought on Lulu the Book on web2py. I've a good experience with Django and I want to share my first impressions on Web2py that, I think, have some positives and some negatives respect to Django. The cons: 1) ORM maybe it's more powerful than the Django one but it's

[web2py:33503] Re: export_to_csv then import_from_csv gives field limit exception

2009-10-23 Thread DenesL
Hi Thadeus, On Oct 23, 2:08 am, Thadeus Burgess wrote: > I might just be doing something wrong, but I think there is something with > the MySQL DAL... > > Nothing with this define_table will pass... listed below are the errors. > > db.define_table("test_table", > Field('id_user', auth.user),

[web2py:33502] cross doman json-rpc

2009-10-23 Thread Don Lee
Is there anything within web2py's json-rpc implementation that would prevent cross domain calls? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googl

[web2py:33501] Re: Shared webhosting on Debian Etch

2009-10-23 Thread Johann Spies
2009/10/23 Graham Dumpleton : > > One can only have a single SSL certificate for an IP so you can't have > multiple virtual hosts for HTTPS off same IP. That is what I found out while trying this. > > > If there is a HTTPS restriction stopping you from using mod_wsgi in > that way, using fastcgi

[web2py:33500] Re: testing json-rpc from the shell

2009-10-23 Thread Don Lee
I am not sure of that, but perhaps this method should be included in the docs as a way to test json-rpc. The example in the book is a bit too specific for what I want to do. This way I can setup the service, verify that it works, and move on to the next phase of development without setting up pyj

[web2py:33499] Re: Komodo IDE web2py Setup

2009-10-23 Thread Richard
I don't seem to have privilege to attach files, but you can find it in the thread I linked to before: http://community.activestate.com/forum/implicit-python-code-completion On Oct 23, 8:39 pm, Alex Fanjul wrote: > Hi, your link to web2py file configuration appear cutted and wrong > formed, try

[web2py:33498] Re: Shared webhosting on Debian Etch

2009-10-23 Thread Graham Dumpleton
On Oct 23, 8:45 pm, Johann Spies wrote: > I see there are many emails about problems with shared hosting. > > I want to deploy a web2py site (my first one) on a shared host (Debian > Etch with python2.4 as default python). > > Python 2.5 is also available and I have succeeded in installing a 2.

[web2py:33497] Shared webhosting on Debian Etch

2009-10-23 Thread Johann Spies
I see there are many emails about problems with shared hosting. I want to deploy a web2py site (my first one) on a shared host (Debian Etch with python2.4 as default python). Python 2.5 is also available and I have succeeded in installing a 2.5 version of mod_wsgi for apache2 on the system. I w

[web2py:33496] Re: Komodo IDE web2py Setup

2009-10-23 Thread Alex Fanjul
Hi, your link to web2py file configuration appear cutted and wrong formed, try to sendit again as attachement to be sure. thanks for your inputs, alex f El 23/10/2009 3:43, Richard escribió: > (btw you need to refresh the URL to see updates) > > > On Oct 23, 12:42 pm, Richard wrote: > >> go

[web2py:33495] Re: Are Content Internationalization and event framework missing?

2009-10-23 Thread Alex Ruddy
>> Are you looking for a publisher-subscriber mechanism? Yes. It would be really good to have it, Django has it and Web2py still doesn't, it could be very nice to have publisher-subscriber especially for project with several apps/plug-ins. It allows to add plug-in that will change main app behavi