Re: [web2py] Thanks for the awesome framework/setting up PostgreSQL

2011-07-13 Thread Thadeus Burgess
on how to configure the paths and used scripts the generation of apache config files. However by that point you could pick up at the book on enabling web2py through wsgi and apache. -- Thadeus On Wed, Jul 13, 2011 at 10:35 AM, Eric Scott wrote: > Dear Massimo and the rest of the dev t

Re: [web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-06 Thread Thadeus Burgess
What you have looked good. The exception looks like its pandocs fault not the template system. -- Thadeus On Mon, Jun 6, 2011 at 1:03 PM, Ryan Seto wrote: > I see. > > Would you like me to try and come up with a patch for this? > > On Mon, Jun 6, 2011 at 1:53 PM, Thadeus B

Re: [web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-06 Thread Thadeus Burgess
your suggestion of overriding the response class on import, then the render function would work as expected. -- Thadeus On Mon, Jun 6, 2011 at 12:26 PM, Ryan Seto wrote: > Hm, that doesn't seem to be it either. I don't get a requirement for > the globals module, but

Re: [web2py] Re: Using web2py's view/template engine in a standalone application

2011-06-06 Thread Thadeus Burgess
What you really want is template.parse_template. Still requires restricted but only for the exception raising. Very simple. from template import parse_template print parse_template('main.html', path='/path/to/custom/views/', context=dict()) -- Thadeus On Mon, Jun

Re: [web2py] Re: New Storage() Object Breaks Backwards Compatibility

2011-06-02 Thread Thadeus Burgess
Keep None on the Storage object, then create a new class and call it MultiStorage which implements the new functionality. -- Thadeus On Thu, Jun 2, 2011 at 12:37 PM, Carlos wrote: > Hi Massimo, > > I use Storage in many places, and I always compare with "is None", whic

Re: [web2py] Re: super in templates

2011-05-31 Thread Thadeus Burgess
ution. It only worked because of the str(t.content) workaround, otherwise you were not able to have includes inside blocks from the beginning. -- Thadeus On Tue, May 31, 2011 at 1:59 PM, teemu wrote: > Hi > > I tried to figure out this problem more carefully and I found the >

Re: [web2py] Re: update is not saved in the database??

2011-05-10 Thread Thadeus Burgess
-- Thadeus On Mon, May 9, 2011 at 9:37 PM, niknok wrote: > Yes, guys thanks. I realized that that was the culprit this morning. > Hard to decode with beer fogging your thoughts... :P > > Reverted to the original and all is working again. I forgot I was > testing that line from a c

Re: [web2py] Re: problem with {{block}}s inside included files (v.1.95.1)

2011-05-05 Thread Thadeus Burgess
included tree. The only point at which the tree should be flattened is at the very end of the parsing when the entire tree is assembled. -- Thadeus On Thu, May 5, 2011 at 3:24 PM, Thadeus Burgess wrote: > Your code should work just fine kasapo, the template system was designed to > d

Re: [web2py] Re: problem with {{block}}s inside included files (v.1.95.1)

2011-05-05 Thread Thadeus Burgess
and just include the text into the parent tree. All contexts are lost when the tree gets flattened. -- Thadeus On Thu, May 5, 2011 at 2:53 PM, kasapo wrote: > First off -- let me say that my usage of the templating in this case > is somewhat peculiar, and if they are not supposed to

Re: [web2py] Re: problem with {{block}}s inside included files (v.1.95.1)

2011-05-05 Thread Thadeus Burgess
tree as if the included file never existed. tl;dr; Should work just fine, somethings broke, plz help fix! -- Thadeus On Thu, May 5, 2011 at 1:37 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > uded in one of the blocks seems to extend a block included > in another

Re: [web2py] Re: help testing

2011-05-01 Thread Thadeus Burgess
Nononononononono This breaks the way it currently works. I have multile web2py apps that take advantage of subfolders for models to group them in the way they should execute. This feature means i could NEVER upgrade my apps again. On May 1, 2011 7:44 PM, "Massimo Di Pierro" wrote: > not that

Re: [web2py] Re: reddit again

2011-03-22 Thread Thadeus Burgess
I do not bother using reddit for anything other than laughing at some trollface comics every once in a blue moon. -- Thadeus On Tue, Mar 22, 2011 at 9:49 AM, ron_m wrote: > Maybe they are just jealous they never thought of what you have done before > you made it a reality with web2py. >

Re: [web2py] Re: DAL new syntax RFC

2011-03-07 Thread Thadeus Burgess
You can already do URL('default', 'home') It has been in web2py for some months now. -- Thadeus On Mon, Mar 7, 2011 at 9:20 PM, pbreit wrote: > If we are evaluating enhancements that save a few keystrokes AND increase > clarity, I'd consider this. :-) >

Re: [web2py] Re: Error in templating system

2011-03-05 Thread Thadeus Burgess
Ok, when put into this context I agree, it should be fixed. It should all behave the same. -- Thadeus On Fri, Mar 4, 2011 at 8:22 PM, Jonathan Lundell wrote: > s a strange set of rules, if you ask me. And confusing, as we've already > seen, especially since the error message is not hel

Re: [web2py] Re: DAL new syntax RFC

2011-03-05 Thread Thadeus Burgess
Explicit is better than implicit. Typing is cheap. Design is the hardest part of development. -- Thadeus On Sat, Mar 5, 2011 at 2:52 PM, Vidul Petrov wrote: > I agree with Stefaan. > > However the ':' before a variable name notation looks like the Ruby > symbols

Re: [web2py] Re: Error in templating system

2011-03-04 Thread Thadeus Burgess
system and it has caused us many issues/headaches because of it). tl;dr - it is the desired behaviour, update your app code to standards. lets not complicate web2py further. -- Thadeus On Fri, Mar 4, 2011 at 3:21 PM, Jonathan Lundell wrote: > On Mar 4, 2011, at 12:54 PM, Massimo Di

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2011-03-01 Thread Thadeus Burgess
test_runner in web2py_utils was designed around slice 67. test_runner lets you do a little more, and handles more of the state management for you. -- Thadeus On Tue, Mar 1, 2011 at 5:57 AM, eddie wrote: > I should add I'm on web2py version 1.92.1. > > And I should also add

[web2py] Pass args to function with cron

2011-02-27 Thread Thadeus Burgess
Using the following syntax... */5 * * * *root *default/do/arg1/arg2/arg3 It fails with "Invalid application name" Is there a way to pass args to the functions when using the web2py cron? -- Thadeus

Re: [web2py] natural language parsing

2011-02-24 Thread Thadeus Burgess
That is cool, thanks for sharing! -- Thadeus On Thu, Feb 24, 2011 at 8:18 AM, Massimo Di Pierro wrote: > This is one cool library: > > http://www.clips.ua.ac.be/pages/pattern >

Re: [web2py] Re: GSoC

2011-02-16 Thread Thadeus Burgess
statistics engine = statlib -- Thadeus On Wed, Feb 16, 2011 at 9:22 PM, Jason Brower wrote: > Local editor integration and permenent admin settings for that and other > features. > > - Original message - > > We need proposals. What do we want to be done? > >

Re: [web2py] Re: Create databases folder

2011-02-04 Thread Thadeus Burgess
I will add debugging to find out next time I am working on it. -- Thadeus On Fri, Feb 4, 2011 at 7:11 PM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > As Jonathan says, it is main that creates the missing folders, the > first time the app is accessed. dal just assumes

Re: [web2py] Re: Create databases folder

2011-02-04 Thread Thadeus Burgess
I know. I thought that this had been patched in web2py, and I was just wondering the feature got lost in the translation to the new DAL. -- Thadeus On Fri, Feb 4, 2011 at 4:16 PM, Kurt Grutzmacher wrote: > If migrate is True on your Fields then web2py will want to have the > dat

Re: [web2py] Create databases folder

2011-02-04 Thread Thadeus Burgess
o my app directory, and run ``mkdir databases`` then navigate to the app, everything is fine, and web2py ends up making the uploads, private, cache, sessions, and errors folders. -- Thadeus On Fri, Feb 4, 2011 at 12:06 PM, Bruno Rocha wrote: > I now removed ['cache','

[web2py] Create databases folder

2011-02-04 Thread Thadeus Burgess
Isn't web2py supposed to create the databases, sessions, uploads, etc folders if they don't exist? -- Thadeus

[web2py] SQLCustomType

2011-02-01 Thread Thadeus Burgess
Has this been deprecated? If not, a refresher on how to make a simplejson type and perhaps a section of the book devoted to custom types? -- Thadeus

Re: [web2py] Re: LIKE case sensitivity: Postgres differs to MySQL => DAL not portable

2011-01-28 Thread Thadeus Burgess
IMHO This breaks backwards compatibility... -- Thadeus On Sat, Jan 29, 2011 at 6:31 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I treat this as a bug fix. > > On Jan 28, 12:52 pm, Anthony wrote: > > On Friday, January 28, 2011 12:58:30 PM UTC-5, Ma

Re: [web2py] Re: How to do a count distinct with DAL?

2011-01-28 Thread Thadeus Burgess
Can we not add per-dialect identifiers to DAL... I can see adding this just for postgres & ms sql. -- Thadeus On Fri, Jan 28, 2011 at 8:43 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > This is not supported because I am not sure all supported RDBS support >

Re: [web2py] Re: LIKE case sensitivity: Postgres differs to MySQL => DAL not portable

2011-01-28 Thread Thadeus Burgess
enefits of using postgres instead of mysql! -- Thadeus On Fri, Jan 28, 2011 at 8:40 AM, Massimo Di Pierro < massimo.dipie...@gmail.com> wrote: > I agree the behavior should be uniform. The easiest way is to make the > LIKE always case insensitive. I am patching trunk to use ILIKE w

Re: [web2py] Re: Why web2py? and not django?

2011-01-26 Thread Thadeus Burgess
that has 73 models (it used to have 50, but I have been busy the last couple of months). The reason is because for batch processing analytics for some of my tables, the DAL is the right tool for the job, and using an ORM makes the process take about 2-3 hours as opposed to 30-45 minutes. -- Thadeus

Re: [web2py] Re: Why web2py? and not django?

2011-01-26 Thread Thadeus Burgess
require many to many relationships and lots of joins... use an ORM, it is designed to handle complex relationships between records. If you have a few models, but lots of data that can be used directly... use the DAL, it is memory/cpu efficient. -- Thadeus On Wed, Jan 26, 2011 at 2:05 PM, Albe

Re: [web2py] Re: Can I share web2py authorization db across multiple apps

2011-01-26 Thread Thadeus Burgess
Also, make sure the "sessions" folder is either A) Symlinked to each other application or B) Store sessions in database or in a cookie. -- Thadeus On Wed, Jan 26, 2011 at 9:38 AM, ron_m wrote: > Also check this setting originally in db.py of the scaffolding app > > aut

Re: [web2py] Why web2py? and not django?

2011-01-26 Thread Thadeus Burgess
web2py = programmers framework django = designers framework Do you have more designers or programmers? -- Thadeus On Wed, Jan 26, 2011 at 10:59 AM, Lars Hansson wrote: > Yeah, but if everyone sits around waiting for the champion to appear > there won't be one. Someone has to take

Re: [web2py] mysql integration with web2py

2011-01-20 Thread Thadeus Burgess
Can you share one of the tickets? Another thing, you can add check_reserved to you DAL instantiation to make sure your not using any reserved mysql keywords. -- Thadeus On Thu, Jan 20, 2011 at 7:13 AM, rochacbruno wrote: > Can you show the traceback or any other message you are gett

Re: [web2py] Basic Python ignorance? simplejson throwing "TypeError("key " + repr(key) + " is not a string")"

2011-01-17 Thread Thadeus Burgess
Because its using a tuple as a dictionary key. Why not use the file I sent you the other day? -- Thadeus On Mon, Jan 17, 2011 at 1:41 PM, Lorin Rivers wrote: > No doubt this is my base Python ignorance being the problem. > > I've made some progress on my pivot problem, usi

Re: [web2py] Re: ADVOCACY: "every single other Python program ever written uses imports"?

2011-01-09 Thread Thadeus Burgess
based access to automating statistical analysis. Usually these type of apps need to change often and can even change drastically, which is why I like web2py for them. -- Thadeus On Sun, Jan 9, 2011 at 1:46 PM, VP wrote: > >>I think web2py is very good for 'Corporate' an

Re: [web2py] Re: ADVOCACY: "every single other Python program ever written uses imports"?

2011-01-09 Thread Thadeus Burgess
o with web2py... maybe they just don't know how to explain it, or don't want to take the time to explain it. -- Thadeus On Sat, Jan 8, 2011 at 8:34 AM, Anthony wrote: > On Saturday, January 8, 2011 9:12:55 AM UTC-5, Anthony wrote: > >> +1 >> >> On Saturday, Janua

Re: [web2py] Re: Can any help me with new dal in trunk?

2011-01-08 Thread Thadeus Burgess
orced in web2py and I disagree with it. for example: db = DAL() db.define_table('TableA', Field('Superman')) # CREATE TABLE tablea WITH FIELDS superman db(db.TableA.Superman == "clark").select().first().Superman # SELECT * FROM tablea WHERE superman="clark"

Re: [web2py] Re: Can any help me with new dal in trunk?

2011-01-07 Thread Thadeus Burgess
). There is something in the migrations that cause this to come up, because it will work just fine one run and crash on another run after changing some unrelated tables. I don't think the DAL should force the tables to lowercase. -- Thadeus On Sat, Jan 8, 2011 at 12:38 AM, mart wrote:

Re: [web2py] eclipse: getting it to ignore db

2010-12-31 Thread Thadeus Burgess
Add to your list... if 0: from gluon.dal import DAL db = DAL() -- Thadeus On Thu, Dec 30, 2010 at 4:46 AM, weheh wrote: > I'm trying to get eclipse to ignore undefined var: db using the > > if 0: > import gluon > from ... import ... > > trick,

Re: [web2py] Re: The stability of web2py releases

2010-12-27 Thread Thadeus Burgess
Also an issue when only one person has access to said clones. -- Thadeus On Mon, Dec 27, 2010 at 11:04 AM, mdipierro wrote: > Yarko created it and used to maintain it. That is is the problem with > having too many clones in different places. Venetually they get out of > sync. &g

Re: [web2py] Re: Help with function call

2010-12-26 Thread Thadeus Burgess
Make a controller named system or global? -- Thadeus On Sun, Dec 26, 2010 at 2:29 PM, weheh wrote: > Of course, the other problem with using modules is that, especially > with components, I really need to get to the global variable space. > Yes, I can always pass global() and

Re: [web2py] Re: please explain this

2010-12-24 Thread Thadeus Burgess
from a variable and you know absolutely sure that it is safe, use {{=XML(x)}} Which also provides some helper methods to allow you to select "safe" tags without allowing everything. -- Thadeus On Fri, Dec 24, 2010 at 11:39 PM, Sahil Arora wrote: > I am asking what does escape=tru

Re: [web2py] memory leak - model remains in memory after requests

2010-12-24 Thread Thadeus Burgess
This is due to the built in rocket server (it is not ment for production). If you use Apache with mod_wsgi this will not happen. -- Thadeus 2010/12/24 David Zejda > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > My web2py instance gradually eats memory, during day the

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Thadeus Burgess
free software, if you don't like it, fork it and manage it yourself. -- Thadeus 2010/12/23 Branko Vukelić > On Thu, Dec 23, 2010 at 11:21 PM, Jonathan Lundell > wrote: > > I suspect that we're talking at cross purposes. > > I have nothing more to say in this r

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Thadeus Burgess
Kinda of joking, but also kinda serious. It cost time and money to have to test something just because a decision was made to upgrade the library (in this case, web2py). -- Thadeus 2010/12/23 Branko Vukelić > On Thu, Dec 23, 2010 at 10:29 PM, Thadeus Burgess > wrote: > > S

Re: [web2py] Re: The stability of web2py releases

2010-12-23 Thread Thadeus Burgess
Seriously: no. I have way to many new features to add to the site and too little time to worry about testing each time I upgrade. -- Thadeus On Thu, Dec 23, 2010 at 3:16 PM, Jonathan Lundell wrote: > On Dec 23, 2010, at 1:11 PM, Branko Vukelić wrote: > > > > On Thu, Dec 23,

Re: [web2py] export_to_csv_file and colnames

2010-12-23 Thread Thadeus Burgess
that would be a bug for sure :p -- Thadeus On Thu, Dec 23, 2010 at 6:59 AM, howesc wrote: > Massimo and crew, > > I am trying to use export_to_csv_file() on a rows object with the colnames > parameter on google app engine. it turns out that the method (in both > sql.py and

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Thadeus Burgess
The latter. No time to test aside from upgrading in production. No time to develop a test application which can handle all of web2py features (including all DAL databases) No time to set up and maintain a server just for said tests. -- Thadeus 2010/12/22 Branko Vukelić > On Wed, Dec

Re: [web2py] Re: The stability of web2py releases

2010-12-22 Thread Thadeus Burgess
s of new stuff often, but expect updates to break. -- Thadeus 2010/12/22 Branko Vukelić > 2010/12/22 Luis Díaz : > > > > in particular whenever new versions come out ... I always say ... have > > to wait 1 week or 2 to becomestable ... > > Not "become stable"

Re: [web2py] Re: web2py.com is down

2010-12-21 Thread Thadeus Burgess
http://wasitup.com/ -- Thadeus On Tue, Dec 21, 2010 at 10:22 AM, Bruno Rocha wrote: > Yep, same here. Nor .com or .org something happen on the server. > > may be we need an HA mirror.the examples app running on GAE could be a > second choice when main server goes d

Re: [web2py] request for error log to default to "list by ticket"

2010-12-20 Thread Thadeus Burgess
I think it depends on what mode. In production, I want to view by exception In development, by ticket would be more appropriate. -- Thadeus On Sat, Dec 18, 2010 at 5:11 PM, Kuba Kucharski wrote: > +1 >

[web2py] Quick cron question

2010-12-17 Thread Thadeus Burgess
Do the models get executed before or after hard-cron process is started? And are those models available to the scope of the cron application. In my example cron would be executing a long-running controller function. -- Thadeus

Re: [web2py] Re: it case you missed it...

2010-12-15 Thread Thadeus Burgess
copyright to their projects is either dispersed among the different contributors or even worse, is questionably held by a single person or entity (with emphasis on questionably). - Thadeus On Wed, Dec 15, 2010 at 1:21 PM, VP wrote: > I do not think that GPL is the determin

Re: [web2py] Posgresql-query -> DAL

2010-12-14 Thread Thadeus Burgess
db(db.gr02.service_provider.belongs([7,10])).select() -- Thadeus On Tue, Dec 14, 2010 at 2:38 PM, Johann Spies wrote: > The postgresql equivalent is: select * from gr02 where service_provider in > (7, 10) > > I have tried: > > >>> isps = (7,10) > &

Re: [web2py] Re: Simple debugger

2010-12-14 Thread Thadeus Burgess
suffer from not being able to step through your code in a debugger. -- Thadeus On Tue, Dec 14, 2010 at 1:21 PM, Lorin Rivers wrote: > I couldn't get NetBeans to debug my web2py code. On a Mac. > > Eclipse was a challenge to get set up and in one case, where I had some > oddly

Re: [web2py] Re: reserved words in databases

2010-12-12 Thread Thadeus Burgess
Correct, it just lets you know if you have a conflicting name (for example, if your developing on sqlite and deploying on postgres, each has different reserved words list). You will still need to modify any conflicting table/field names -- Thadeus On Sun, Dec 12, 2010 at 7:37 PM, Carlos

Re: [web2py] Re: reserved words in databases

2010-12-12 Thread Thadeus Burgess
Are you using the reserved_keywords check built into the DAL? -- Thadeus On Sun, Dec 12, 2010 at 2:50 PM, Carlos wrote: > Hi Massimo, > > Thanks for clarifying this. > > Carlos > > > On Dec 11, 7:41 pm, mdipierro wrote: > > No. Right now there may problems

Re: [web2py] Re: More than one model/controller file for plugins.

2010-12-10 Thread Thadeus Burgess
util.py grid.py namespace = local_import('plugin_datatable.grid') newgrid = namespace.Grid() -- Thadeus On Fri, Dec 10, 2010 at 7:12 PM, Bruno Rocha wrote: > Sorry, the correct is: > > > /modules/plugin_datatable/ >

Re: [web2py] Re: how to generate database dumps with DAL

2010-12-10 Thread Thadeus Burgess
db.export_to_csv_file will only contain the raw data, it will not include any of the database specific things (such as indexies, mysql/postgres users, stored procedures, sequence stores, etc...) -- Thadeus On Fri, Dec 10, 2010 at 5:24 PM, mdipierro wrote: > if you

Re: [web2py] Re: More than one model/controller file for plugins.

2010-12-10 Thread Thadeus Burgess
It will work within a subfolder (I have done it) unless things have changed it will work just fine (and still execute in alphabhetical order) 1 a_settings.py b(folder) -> 2 -> a.py 3 -> c.py 4 -> d.py 5 c.py It should execute correctly in the above order -- Thadeus On

Re: [web2py] grid

2010-12-10 Thread Thadeus Burgess
I really enjoy working with DataTables. It is easy to use and extremely configurable! Not only that, but it can load results from any JSON request, so you can handle filtering, ordering, and pagination in your queries on the server. -- Thadeus On Fri, Dec 10, 2010 at 9:43 AM, Richard Vézina

Re: [web2py] Re: Scalability of web2py?

2010-12-01 Thread Thadeus Burgess
Would that be the decision of the webserver? gevent uses a event-per-request and it is written completely in python. -- Thadeus On Wed, Dec 1, 2010 at 11:45 AM, John Heenan wrote: > The elephant in the room has not gone away Massimo. > > Web2py is great for small projects. >

Re: [web2py] Re: Scalability of web2py?

2010-12-01 Thread Thadeus Burgess
All of the problems I had with web2py were because of the sessions. Even storing the sessions in db caused web2py to crash. Never really found a solution, there is something to the fact of having to pickle/unpickle the session that can't handle major loads. -- Thadeus On Wed, Dec 1, 20

Re: [web2py] Table names: plural or singular?

2010-11-30 Thread Thadeus Burgess
I prefer singular for the Object models and plural for the tablenames. class Person: __tablename__ = 'people' Since the table contains many of the records, but an object instance will only contain one of those rows. -- Thadeus On Tue, Nov 30, 2010 at 5:13 PM, Branko Vukelic wr

Re: [web2py] Re: How could I send a email to every members?

2010-11-24 Thread Thadeus Burgess
smtplib so you can send everything through a single connection. Keep in mind when doing this certain SMTP servers have limits on how many emails can be sent (500 by default) so you would need to re-establish your connection after this cutoff point. -- Thadeus On Wed, Nov 24, 2010 at 1:09 AM, annet

Re: [web2py] Re: Discussion: Why is web2py bad for large deployments?

2010-11-14 Thread Thadeus Burgess
down to programmers preference. I started programming with Java, therefore I like object oriented programming that Flask+SQLAlchemy uses. -- Thadeus On Sun, Nov 14, 2010 at 11:23 AM, mdipierro wrote: > Nothing prevents you in web2py to create a > > modules/models/mymodel.py > &g

Re: [web2py] Re: Discussion: Why is web2py bad for large deployments?

2010-11-14 Thread Thadeus Burgess
same database is useful, but how could we solve the division of tables in apps, is it better to define the >>>model in one place and "import" the required tables on the apps? This is why I prefer Flask + SQLAlchemy. -- Thadeus 2010/11/14 José Ignacio Hurtado > A good adv

Re: [web2py] Re: Discussion: Why is web2py bad for large deployments?

2010-11-13 Thread Thadeus Burgess
can't have such order for complex systems. I think an import based system solves this in that the import statements declare the order instead of the physical location of the code doing that. -- Thadeus On Sat, Nov 13, 2010 at 2:49 PM, Jason Brower wrote: > These are encouraging. >

Re: [web2py] Re: Discussion: Why is web2py bad for large deployments?

2010-11-13 Thread Thadeus Burgess
, reddit uses pylons, myspace uses coldfusion, microsoft uses asp, oracle uses java. Its always the database that becomes an issue regardless of programming language or web framework. -- Thadeus On Sat, Nov 13, 2010 at 10:53 AM, mdipierro wrote: > I agree with Villas. The larger the developm

Re: [web2py] Re: DAL() unusable ?

2010-11-12 Thread Thadeus Burgess
Right. I get it now. Is there a reason for not sticking the record creation inside of its own table? -- Thadeus 2010/11/12 Mirek Zvolský > hich person is an employee of which company, > 2) which person has created the company record, > 3) which person has created the person recor

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-12 Thread Thadeus Burgess
Thanks. I uploaded a new version to pypi. -- Thadeus On Fri, Nov 12, 2010 at 10:27 AM, Andrew Evans wrote: > Hey Thadeus! > > where would you like me to submit it? I can upload it here to this news > group. The only thing I changed was what you suggested ;) adding self.r.a

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-11 Thread Thadeus Burgess
Mind sending me a patch? -- Thadeus On Thu, Nov 11, 2010 at 6:02 PM, Andrew Evans wrote: > hey thanks for the tips > > I have it working now > > *cheers > > Andrew >

Re: [web2py] Re: DAL() unusable ?

2010-11-11 Thread Thadeus Burgess
dit, just look it up in this table. Then you don't have the problem at all. -- Thadeus On Thu, Nov 11, 2010 at 12:17 PM, mdipierro wrote: > I agree with you that using a link table is better. This was my > original argument. > > Yet often the need to sign tables (created_by)

Re: [web2py] Re: Renaming a column in the database web2py?

2010-11-11 Thread Thadeus Burgess
umn) #Save the changes db.commit() #Remove the old column, letting web2py migrate drop the old column db.define_table('table', Field('newcolumn')) -- Thadeus On Thu, Nov 11, 2010 at 10:10 AM, mdipierro wrote: > In web2py you cannot rename a column. Why do you want to d

Re: [web2py] Re: DAL() unusable ?

2010-11-11 Thread Thadeus Burgess
id == link.id_company This is the "proper" way to design this type of relationship. I would opt more for a feature in web2py that did this in the background than handled circular dependency magick. -- Thadeus On Thu, Nov 11, 2010 at 11:32 AM, mdipierro wrote: > Ok. Your crm2jpg makes a

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-11 Thread Thadeus Burgess
the generate_links() function and then URL would use those args. In the first case you would not need to change anything on your side. The second option would look something like qry = paginate.get_set(set_links=True, args=['myarg1', 'myarg2']) Which would YOU prefer? -- Thadeu

Re: [web2py] Re: DAL() unusable ?

2010-11-11 Thread Thadeus Burgess
.. lots of other fields Field("referred_by", "reference participant"), #... lots of other fields. ) -- Thadeus 2010/11/11 Mirek Zvolský > >> Here's a link to the section in the book: > >> > http://www.web2py.com/book/default/chapter/06#S

Re: [web2py] Re: Pagination [Web2py Utils] returns None

2010-11-10 Thread Thadeus Burgess
Its losing the args when it creates a new URL. It will require a patch on set_links so you can pass custom args and vars to URL. -- Thadeus On Wed, Nov 10, 2010 at 4:36 PM, Andrew Evans wrote: > I just noticed the difference in URLs > > https://127.0.0.1:8000/Working/display/pro

Re: [web2py] Re: new admin layout

2010-11-05 Thread Thadeus Burgess
My vote is for a light-ish theme. -- Thadeus On Fri, Nov 5, 2010 at 11:38 AM, Branko Vukelic wrote: > On Fri, Nov 5, 2010 at 11:40 AM, selecta wrote: > > also it should be css => cursor: pointer; when i did not see my mouse > > trurn to a hand i thought i could not

Re: [web2py] Re: new admin layout

2010-11-04 Thread Thadeus Burgess
The corners are way too rounded. Looks good! -- Thadeus On Thu, Nov 4, 2010 at 4:57 PM, Christopher Steel wrote: > Nice work, looks great! > > I really like the flow that is starting to happen when resizing the > browser window. Makes me want to try it from my iphone... > &

Re: [web2py] Re: new admin layout

2010-11-02 Thread Thadeus Burgess
Smaller icons, or bigger text. -- Thadeus On Tue, Nov 2, 2010 at 3:07 PM, Branko Vukelic wrote: > On Tue, Nov 2, 2010 at 9:02 PM, Bruno Rocha wrote: > > I just mean that the folder icon should be a closed folder, if this will > be > > unique for opened and closed folders

Re: [web2py] Re: new admin layout

2010-11-02 Thread Thadeus Burgess
This is much better. Not sure about the gradient on the apps listing however. Try some more subtle rounded corners? -- Thadeus On Tue, Nov 2, 2010 at 2:29 PM, Branko Vukelic wrote: > What do you people think about this color scheme? Trying out colors > that match the main site + ora

Re: [web2py] Re: DateInput Calendar and other widgets

2010-11-02 Thread Thadeus Burgess
The problem is that there are great date pickers but never a good time picker or datetime picker -- Thadeus On Tue, Nov 2, 2010 at 11:07 AM, annet wrote: > It's smaller when you build your own download, that's what I did when > I just needed the tabs. > > > Annet. >

Re: [web2py] Re: new admin layout

2010-11-01 Thread Thadeus Burgess
The version web2py has had for over a year. The new one is busy/confusing. I didn't know where to look at first glance. It feels Halloween-ish... I halfway expect a pumpkin somewhere on the page. There are too many "buttons" which are actually "hyperlinks". Sooo man

Re: [web2py] Standalone DAL, where is the database folder ? and problems caused by

2010-11-01 Thread Thadeus Burgess
My_DB = DAL('sqlite://databaseName', folder='D:\Data_Python_25\Beheer...') -- Thadeus On Mon, Nov 1, 2010 at 4:12 PM, Stef Mientki wrote: > hello, > > the more I get used to the syntax of DAL, > the more I like it, great ! > > especially, after sp

Re: [web2py] Re: new admin layout

2010-11-01 Thread Thadeus Burgess
I like the old one better. This is too busy. Everything looks exactly the same. Leads to much confusion on where things I need are. -- Thadeus On Mon, Nov 1, 2010 at 9:12 PM, mdipierro wrote: > I can make this stable tomorrow if no objections. > > Massimo > > On Nov 1, 9:10

Re: [web2py] Standalone DAL, what's the correct uri for the database location ?

2010-10-31 Thread Thadeus Burgess
Have you tried without the file:/// ? On linux you don't need to specify file:/// you can just give the full path. -- Thadeus On Sun, Oct 31, 2010 at 3:19 PM, Stef Mientki wrote: > hello, > > Standalone DAL, what's the correct uri for the database locati

Re: [web2py] standalone DAL: why is migration table name preceeded by some prefix ?

2010-10-31 Thread Thadeus Burgess
That is a hash of the connection string you pass in during DAL instantiation. This way you can uniquely identify db = DAL('sqlite://my.db') vs db = DAL('postgres://.') without overwriting your .table files. -- Thadeus On Sun, Oct 31, 2010 at 3:03 PM, Stef Mie

Re: [web2py] Re: Stand Alone DAL and migrations (again)

2010-10-30 Thread Thadeus Burgess
into their own files. -- Thadeus On Sat, Oct 30, 2010 at 2:07 PM, mdipierro wrote: > well. I disagree. ;-) > > http://web2py.com/AlterEgo/default/show/215 > > On 30 oct, 12:42, Thadeus Burgess wrote: > > Just my 2 cents. > > > > Using the DAL on anything bu

Re: [web2py] Re: web2py 1.88.1 is OUT

2010-10-30 Thread Thadeus Burgess
pages to verify that things are working. If a response code of 500 is ever received then go get the error ticket and store it somewhere central including which app it came from. -- Thadeus On Sat, Oct 30, 2010 at 9:25 AM, Luther Goh Lu Feng wrote: > > > On Oct 30, 7:05 am, mdipier

Re: [web2py] Re: web2py 1.88.1 is OUT

2010-10-30 Thread Thadeus Burgess
Where should the list of apps come from? I think this is the biggest question. -- Thadeus On Sat, Oct 30, 2010 at 12:46 PM, Thadeus Burgess wrote: > Someone writes a script to automate the process. Have a list of apps that > we want to be sure are tested and working. The script will do

Re: [web2py] Stand Alone DAL and migrations (again)

2010-10-30 Thread Thadeus Burgess
bet I care more than most. For any kind of software your developing that uses object oriented programming, use a database system that is structured around classes and declarative bases. You will find this is much much much easier to integrate into, for example a wxWidgets program, than the DAL

Re: [web2py] Re: PostgreSQL super slowdowns

2010-10-30 Thread Thadeus Burgess
I guess its a problem with a postgresql setting, or old drivers maybe? -- Thadeus On Sat, Oct 30, 2010 at 12:45 AM, Chris wrote: > I was just trying the home page...some selects are run on every page > but as far as I know that's it. The machine's got plenty of memory and

Re: [web2py] Re: web2py 1.88.1 is OUT

2010-10-29 Thread Thadeus Burgess
Can we make some sort of massive web2py app that makes use of every single feature in web2py (as much as possible). If the index page of the app returns OK then everything is working. ??? Kind of like a unit test without a unit test. -- Thadeus On Fri, Oct 29, 2010 at 6:05 PM, mdipierro

Re: [web2py] Re: Static folder and cookies

2010-10-28 Thread Thadeus Burgess
static.mydomain.com, and then use web2py routes to redirect to the correct static subdomain. -- Thadeus On Thu, Oct 28, 2010 at 8:51 AM, annet wrote: > You mean in a production environment I should not serve static files > from the apps static folder? What happens to the dynamic URLs in that

Re: [web2py] opposite of "belongs" ?

2010-10-26 Thread Thadeus Burgess
db(~db.table.field.belongs()).select() -- Thadeus On Wed, Oct 27, 2010 at 12:44 AM, Andrew Thompson wrote: > Is there a way to get 'NOT IN' via DAL? > > I believe it should be a negative/opposite of the belongs operator. > > -- > Andrew Thompson > http://aktzero.com/ > >

Re: [web2py] Re: new ticket reporting system

2010-10-26 Thread Thadeus Burgess
I think that emailing tickets and what Richard would be an example of the applications job. Perhaps a plugin could be worked to easily add support for this to any web2py app, however. -- Thadeus On Tue, Oct 26, 2010 at 12:56 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: &

Re: [web2py] Re: new ticket reporting system

2010-10-26 Thread Thadeus Burgess
I can work on some of this tonight. On the details thing jumping. The click event bound to the TR element, since details is inside the TR it is not obvious how to disable the collapse functionality. Ideas? -- Thadeus On Tue, Oct 26, 2010 at 7:43 AM, blackthorne wrote: > idea for next s

Re: [web2py] Re: Error tickets by number of occurrence

2010-10-25 Thread Thadeus Burgess
I think this should be default for the ticket view. -- Thadeus On Mon, Oct 25, 2010 at 8:54 AM, mdipierro wrote: > If I have time, I would like to. > > On Oct 25, 7:03 am, selecta wrote: > > so will you integrate it into the current issue tracker? > > like a tab or

Re: [web2py] Re: Request for a logo - PluginCentral

2010-10-25 Thread Thadeus Burgess
nd just have it store the latest version. I would love to have this work on GAE, but to be able to provide proper demonstration of plugins it requires being able to install an app into web2py. -- Thadeus On Mon, Oct 25, 2010 at 10:33 AM, mdipierro wrote: > yway, our projects may be compleme

  1   2   3   4   5   6   7   8   9   10   >