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

2011-07-13 Thread Thadeus Burgess
That slice is still works. The version number of postgres might be different, so instead of 8.3 use 8.4 or similar. You might also find things like auto_vacuum come set on by default in newer versions of postgres. Some of the web2py setup gets confusing at the end since I made some assumptions o

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
what I get back is this: > > ~ > >>> print parse_template('view.html', path='templates', > context=dict(content='test')) > response.write(content) > response.write('\r\n', escape=False) > ~ > > Am I supposed to execu

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 6, 2011 at 12:55 AM, Massim

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", which I > believe would now

Re: [web2py] Re: super in templates

2011-05-31 Thread Thadeus Burgess
Ah right, you can't have includes inside of blocks ! This is not a bug, just a side-effect of how includes are implemented vs blocks. I know understand the reasoning behind the str(t.content) patch, which was a workaround to getting includes to work inside of blocks, but not the proper solution.

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

2011-05-10 Thread Thadeus Burgess
Use ``update_record`` instead of ``update``. the ``update`` function comes from the dict parent class, and does not issue SQL. ``update_record`` is a web2py thing that will take any changes made to the record instance (by use of assignment or update function) and issue the appropriate SQL -- Tha

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
Your code should work just fine kasapo, the template system was designed to do that. Someone at some point made a patch to the template that broke the way this is supposed to work. http://code.google.com/p/web2py/source/diff?spec=svnc6ff592d73ef81257a8d238a74b688c9b3a09360&r=e6868622d71ec96947b4b

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

2011-05-05 Thread Thadeus Burgess
It should be possible to do this. The way templates handle include files has been broken. This is what it should be doing PARENT LOAD include_filename CREATE PARSE TREE EXTEND PARSE TREE TO PARENT CONTINUE In effect, the entire tree of the included file gets grafted back onto the parent t

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. :-) > > URL('default/home') for URL(c

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 whose only purpose was improv

Re: [web2py] Re: Error in templating system

2011-03-04 Thread Thadeus Burgess
I don't think you should have code included in a {{= block. {{= should ONLY be used to wrap anything in its code block with a response.write(). Exactly how it does it now. Doing otherwise is simply bad template design. I consider it a bug if it ever worked before. Allowing this syntax encourages

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 I'm extremely supp

[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? > > > > On Feb 16, 2:57 pm, T

Re: [web2py] Re: Create databases folder

2011-02-04 Thread Thadeus Burgess
it is there. > > On Feb 4, 4:56 pm, Jonathan Lundell wrote: > > On Feb 4, 2011, at 1:19 PM, Thadeus Burgess wrote: > > > > > Nope not working for me. A raw checkout of a branch, there is no > NEWINSTALL file, nor a welcome.w2p file since we don't need it. &g

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 > databases directo

Re: [web2py] Create databases folder

2011-02-04 Thread Thadeus Burgess
Nope not working for me. A raw checkout of a branch, there is no NEWINSTALL file, nor a welcome.w2p file since we don't need it. The app only contains controllers, cron, languages, models, modules, static, tests, views, __init__.py. >From this state, when starting web2py just by python web2py.py.

[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, Massimo Di Pierro wrote: > >

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 > count(distinct ...).

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

2011-01-28 Thread Thadeus Burgess
I disagree! Your playing with things that shouldn't be played with. Not to mention that now you have just broken some of my apps that perform case-sensitive queries in postgres this is just plain wrong in so many ways. Add a new identifier to DAL... give me db(db.table.name.like('%printer%')

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

2011-01-26 Thread Thadeus Burgess
That is just one of the very small reasons out of the entire haystack the advantages of an ORM are much too numerous to even begin to account I do not think circular references are a bad thing... it is a pointer after all... one thing I miss from C programming is the ability to control poi

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

2011-01-26 Thread Thadeus Burgess
You could definitely use Jinja2 if you so desired, but honestly I do not see any reason why you would, you lose the ability to byte compile your views. (well technically, you would end up having to write your own middleware that would compile the jinja2 templates into bytecode) but then you get

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 > > auth.settings.hmac_key = '

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 the plunge.

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 getting? > >

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, using this recipe < >

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

2011-01-09 Thread Thadeus Burgess
I think Massimo hit it on the spot. Its about coding style. Most of the people I see giving web2py criticism are young. Considering that beginning in about 2001 colleges starting only teaching java and handing out degrees, it might be safe to assume that most of these guys knew Java as their first

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

2011-01-09 Thread Thadeus Burgess
I believe this is why web2py receives much criticism. I speak from experience in using (and contributing to) web2py. web2py cannot share objects in an importable namespace with other python applications ecause of its design architecture. This is an absolute requirement for most "enterprise" or "re

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

2011-01-08 Thread Thadeus Burgess
t error and set off > the alarm even before any change need to happen? > > Thanks, > Mart :) > > > On Jan 8, 1:44 am, Thadeus Burgess wrote: > > I can also confirm this is a bug with the new DAL. > > > > It is only caused when using upper case characters i

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

2011-01-07 Thread Thadeus Burgess
I can also confirm this is a bug with the new DAL. It is only caused when using upper case characters in the table or field names. It seems that web2py converts all of the tablenames to lower case when issuing the SQL (so your actual tables are lower regardless of what you specify in the python).

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, but I'm not sure where db i

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. > > Massimo > >

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 db to the modul

Re: [web2py] Re: please explain this

2010-12-24 Thread Thadeus Burgess
Escape will convert the text to html entities. For example, >>> x = "A 'quote' is bold" >>> print response.write(x, escape=True) A 'quote' is bold This protects your page from html injection hacks. If you need to display html from a variable and you know absolutely sure that it is safe, us

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 consumption > grow

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

2010-12-23 Thread Thadeus Burgess
Good. Now this thread can go into the list of many archived threads about this topic. Nothing will happen and things will continue as they have been, which isn't so bad because nobody is forcing you to upgrade your web2py version each time a new release comes out. However, Branko, part of the pro

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, 2010 at 6:19 PM,

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 the new dal.py) o

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

2010-12-22 Thread Thadeus Burgess
22, 2010 at 5:05 PM, Thadeus Burgess > wrote: > > Nobody has time to work on certain things like this since most of us have > > full time jobs that may or may not be related to web2py. > > What do you mean? No time to develop a system of labeling releases or > no

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

2010-12-22 Thread Thadeus Burgess
Funny, Every three to four weeks this topic of discussion comes up. Lots of the same ideas are said over and over again. Nobody has time to work on certain things like this since most of us have full time jobs that may or may not be related to web2py. What I do is if my app works with a certain

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 down. > (http://web2pysite.

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
An excerpt: I think this sums it up. --- GPL is a tool that uses copyright to enforce software freedom, but… in order to be able to enforce that there must be a copyright holder that can take action. The FSF is aware of this and is carefully requiring contributors and their employers (!)

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) > >>> tb = 'gr02' > >>> data = db('%s.service_p

Re: [web2py] Re: Simple debugger

2010-12-14 Thread Thadeus Burgess
The problem with web2py is the built in internal server. Since it executes itself on a completely separate thread, there is no way (that I know currently) to connect a debugger to it. I have ran into this problem with all of the python frameworks I have tried (Django, Flask, Pylons, web2py) all su

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 wrot

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 if you used a reserved keyword.

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

2010-12-10 Thread Thadeus Burgess
model in models/plugin_datatable.py >> >> ok? >> >> 2010/12/10 mdipierro >> >> I am not sure this is intended. This may create problems for >>> compilation. Moreover I was planning to reserve this syntax (subfolder >>> in models) for models

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 do > > > db.export_to_csv_

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 Fri, Dec 10, 2010

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. > > DotNet is grea

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, 2010 at 1

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 wrote: > On T

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

2010-11-24 Thread Thadeus Burgess
the problem with mail.send is it creates a brand new connection to the SMTP server *every* single time you call it. If you are sending more than 10 emails at a time this will not be efficient and will take an unnecessary amount of time to complete. I would suggest dropping down to using base smtp

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

2010-11-14 Thread Thadeus Burgess
t; then > > import applications.yourapp/modules/models.mymodel.py > > and then call a function in there that defines the tables you need. > And you can have more than one mymodel. > > This anyway will be easy if we add support for lazy tables and thread > local globals

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

2010-11-14 Thread Thadeus Burgess
gt;> solves lots of problems. >> >> I have heard of people who have developed complex applications in >> Django (which uses the import you suggest) and run into problems >> because they were using more ram than needed since all modules were >> always imported. I

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

2010-11-13 Thread Thadeus Burgess
large codebase > making web2py code messier and is there a solution to it in another > framework? > BR, > J > > On Sat, 2010-11-13 at 11:48 -0600, Thadeus Burgess wrote: > > What is large deployment? > > Is it a large codebase that you must manage for an internal dashb

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

2010-11-13 Thread Thadeus Burgess
What is large deployment? Is it a large codebase that you must manage for an internal dashbaord, or just alot of users/database io that needs to scale out for worldwide access? If its the first case, web2py can get really complicated in dealing with lots of models and difficult to manage in an ef

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 records, > all 3

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

2010-11-12 Thread Thadeus Burgess
= 'Showing %d to %d out of %d records' % > (self.current + 1, self.current + self.num_results, self.total_results) > return (self.backward, self.forward, self.location) > > > Anyway I attached the paginate.py *cheers > > > > > > > On Thu, Nov 11,

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
will suddenly cause a > duplication of tables because lots of link tables have to be added and > queries changed. This is what I meant by good case. > > Massimo > > On Nov 11, 12:05 pm, Thadeus Burgess wrote: > > WRong. cr2 is a really really bad design. > > > > D

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

2010-11-11 Thread Thadeus Burgess
To rename a column: #Let web2py use migration to create a new column db.define_table('table', Field('oldcolumn'), Field('newcolumn')) #Update the data, copy the old column into the new column db(db.table.id > 0).update(db.table.newcolumn = db.table.oldcolumn) #Save the changes db.commit() #Rem

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

2010-11-11 Thread Thadeus Burgess
WRong. cr2 is a really really bad design. Database 101, any many to many relationship must be defined through a link table. Redesign CR2 like so... db.define_table('person', created_by('person')) db.define_table('company',...created_by('company')) db.define_table('person_company', id_perso

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

2010-11-11 Thread Thadeus Burgess
There are two alternatives. Have the generate_links function assume args when creating the url. This could be based on the existing args in request. URL(r=self.r, args=self.r.args) Or patch get_set to allow passing args as part of the function declaration, it would in turn pass these args to the

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

2010-11-11 Thread Thadeus Burgess
Your error seems to be coming from the fact you do not have defined a person model. Since web2py is a functional designed you must define person table before you can reference it. I use the following self-referential table and have never had a problem. db.define_table('participant', #... lots of

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/product_wall/405

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 click it > > These issues

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... > > Chris > > > On Nov

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. > > Ah, those do n

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 + orange as a

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
his morning or the version > available until yesterday? > > Massimo > > On Nov 1, 9:15 pm, Thadeus Burgess wrote: > > 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. > > > &g

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 splitting up the queries and making some h

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 pm, "mr.freeze"

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 location ? > > This works: > Database_Name

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 Mientki wrote: > hello, > > I

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
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 download web2py testing, copy the apps to the downloaded version, fire a process fork to start that web2py, use urllib or httplib to navigate to each of the apps page

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
Just my 2 cents. Using the DAL on anything but web2py is going to be a pain in the ass and a nightmare waiting to happen. This is due to its inherent forced procedural coding style. You "can" wrap DAL calls as methods, but it just gets really messy. I'm a clean code zealot, so I bet I care more th

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 > this is a very ba

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 wrot

Re: [web2py] Re: Static folder and cookies

2010-10-28 Thread Thadeus Burgess
It is referring to the root domain having a cookie, in this case, navigating to www.mydomain.com gives a cookie. so this benchmark website is not 100% smart about the fact if cookies are sent with static files. If you really want to, set up an apache domain to serve static files as like static.myd

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
> If the system can send email about the ticket without the input of the > user, that could be a major improvement (may be it is already working not > sure). > > Richard > > > On Tue, Oct 26, 2010 at 12:58 PM, Thadeus Burgess > wrote: > >> I can work on some of

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 step:

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 button with "sort by numb

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

2010-10-25 Thread Thadeus Burgess
It should be easy enough to add a service for a listing of plugins. Would come up with a design specification for the API you want? Your even welcome to make a checkout and just add an API to the plugincentral codebase if you get to it before I do. I don't see any reason why this would need to be t

  1   2   3   4   5   6   7   8   9   10   >