Re: [web2py] Re: Corrupted db?

2010-05-30 Thread Thadeus Burgess
oh... yes. Your right... Storage(user=db.auth_user[user]... should fix it. -- Thadeus On Sun, May 30, 2010 at 4:56 PM, weheh richard_gor...@verizon.net wrote: Yah. I got it running, thanks. Had to go in thru the admin interface to restart. I think it's related, but I'm using your code

Re: [web2py] Re: wizard style forms in web2py

2010-05-29 Thread Thadeus Burgess
I would use the jQuery form wizard plugin. It is very nice and dose the pagination for you. The only issue is if the data in the second step depend on what is in the first step, then you would need to use some ajax/javascript to alter accordingly. -- Thadeus On Sat, May 29, 2010 at 10:39

Re: [web2py] How to duplicate a record

2010-05-28 Thread Thadeus Burgess
myrecord = db.table[5] db.table.insert(a = myrecord.a, b = myrecord.b, c = myrecord.c) Are you looking for an audit logging ability? http://www.web2pyslices.com/main/slices/take_slice/35 -- Thadeus On Fri, May 28, 2010 at 7:13 AM, ceriox cer...@gmail.com wrote: Hi all, how i can

Re: [web2py] Moving apps outside /applications

2010-05-27 Thread Thadeus Burgess
Just another method. I symlink my projects folder into the applications so I have ~/Applications/web2py/ ~/Workspace/Web/Blogitizor/ Symlink. ~/Applications/web2py/applications/blogitizor - ~/Workspace/Web/Blogitizor/ -- Thadeus On Thu, May 27, 2010 at 8:40 AM, Albert Abril

[web2py] Hide tables to appadmin based on user permissions

2010-05-27 Thread Thadeus Burgess
I would like to hide all tables except the selected one from a user unless they have specific privileges. I am thinking maybe the following at the top of appadmin.py if auth.has_permission('Operations', auth.user.id): tables = [copy.copy(t) for t in db] db = DAL(db._connection) for t in

[web2py] Re: Hide tables to appadmin based on user permissions

2010-05-27 Thread Thadeus Burgess
if they are admin, it leaves it alone and they see all tables. Also all tables are decorated with @auth.reuquires_membership('Operations') -- Thadeus On Thu, May 27, 2010 at 11:23 AM, Thadeus Burgess thade...@thadeusb.com wrote: I would like to hide all tables except the selected one from a user

Re: [web2py] Re: Hide tables to appadmin based on user permissions

2010-05-27 Thread Thadeus Burgess
Me and my displaced mind... =) I ment all of my controller functions are decorated with... -- Thadeus On Thu, May 27, 2010 at 2:31 PM, Mathieu Clabaut mathieu.clab...@gmail.com wrote: Thank you for sharing ! On Thu, May 27, 2010 at 19:16, Thadeus Burgess thade...@thadeusb.com wrote

Re: [web2py] Changes in Development environment

2010-05-26 Thread Thadeus Burgess
You probably don't want to develop on your live data. To be able to migrate data the DAL includes two functions.. db.export_to_csv_file(open('/path.csv', 'w')) db.import_from_csv_file(open('/path.csv', 'r')) So you can export your data, and then stick it on the server and re-import it. This

Re: [web2py] postgresql connection problem

2010-05-26 Thread Thadeus Burgess
Try postgres://w2p:passw...@localhost:5432/w2p -- Thadeus On Wed, May 26, 2010 at 5:17 PM, Julius Minka j...@minka.sk wrote: This is virtual server with centos 5.5 in internet. I have successfully instaled web2py with Apache and mod_wsgi based mainly on instructions from

Re: [web2py] Re: Custom registration form -- password_two

2010-05-24 Thread Thadeus Burgess
Stick the following code in a controller import copy user_table = [copy.copy(f) for f in db.auth_user] form = SQLFORM.factory( *user_table, Field('password2', 'password', length=512, requires=db.auth_user.password.requires), ) if form.accepts(request.vars, session): if

Re: [web2py] Re: Custom registration form -- password_two

2010-05-24 Thread Thadeus Burgess
Wait... Doesn't web2py already have this built in? Maybe I don't understand the question... Using a plain vanilla `form = auth()` You get a register form... http://thadeusb.com/admin/user/register -- Thadeus On Mon, May 24, 2010 at 10:57 PM, Thadeus Burgess thade...@thadeusb.com wrote

Re: [web2py] Re: Custom registration form -- password_two

2010-05-24 Thread Thadeus Burgess
This may be a stupid question but... Why are you not using form.custom ? {{form.custom.start}} fieldset{{form.custom.email.widget}}/fieldset -- Thadeus On Mon, May 24, 2010 at 11:15 PM, Thadeus Burgess thade...@thadeusb.com wrote: Wait... Doesn't web2py already have this built

Re: [web2py] Re: Custom registration form -- password_two [CLOSED (for now)]

2010-05-24 Thread Thadeus Burgess
http://web2pyslices.com/main/default/user/register Ok here is a link working since I disabled it on my blog. This is just built into Auth class. You can do custom styling with {{form.custom.password_two.widget}} And add by hand your fieldsets and etc. Unless you are looking for more than

Re: [web2py] Re: in trunk - scraping utils

2010-05-24 Thread Thadeus Burgess
So why our own? Because it converts it into web2py helpers. And you don't have to deal with installing anything other than web2py. -- Thadeus On Tue, May 25, 2010 at 12:14 AM, Kevin Bowling kevin.bowl...@gmail.com wrote: Hmm, I wonder if this is worth the possible maintenance cost?  It

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Thadeus Burgess
I also see really no reason to use NoSQL unless you really just don't like writing SQL... thats why we have ORMs and DALs anyways. You still have to use FK relationships with document based sets... ie: with a 4MB document limit, they suggest you split comments for a post into its own document and

Re: [web2py] Re: nice slides on postgresql vs nodb

2010-05-21 Thread Thadeus Burgess
...@topia.com wrote: Final thought... I think if NoSQL were indicated for use with a web2Py app,  it might be most appropriate to replace some, but not all SQL-based tables. --r. On May 21, 2010, at 9:31 AM, Thadeus Burgess wrote: I also see really no reason to use NoSQL unless you really

Re: [web2py] Re: new in Django

2010-05-20 Thread Thadeus Burgess
that a developer have, and I respect them all. Please, don't generalize. I respect you and I greatly appreciate your contributions, really! Best regards, Pepe. On May 18, 5:19 pm, Thadeus Burgess thade...@thadeusb.com wrote: Polls.objects.get(order__lte=5) No... no their not. Still

Re: [web2py] google fonts

2010-05-20 Thread Thadeus Burgess
everyone should have please upgrade browser links anyways, unless their using software that requires IE 5... *curses blackboard and mathlab* -- Thadeus On Thu, May 20, 2010 at 9:20 AM, Albert Abril albert.ab...@gmail.com wrote: On Thu, May 20, 2010 at 3:50 PM, Jonathan Lundell

Re: [web2py] Sending html emails [bug?]

2010-05-18 Thread Thadeus Burgess
You must set the mimetypes of outgoing email, I do not believe the current mailer supports this... Checkout the code on the wiki http://wiki.web2py.com/Sending_Email_with_Plain_Text_HTML_Versions_plus_Attachments -- Thadeus On Tue, May 18, 2010 at 4:07 AM, Jon Romero darks...@gmail.com

Re: [web2py] new in Django

2010-05-18 Thread Thadeus Burgess
Polls.objects.get(order__lte=5) No... no their not. Still a designer based framework, and developer limiting. -- Thadeus On Tue, May 18, 2010 at 4:11 PM, Kuba Kucharski kuba.kuchar...@gmail.com wrote: http://docs.djangoproject.com/en/dev/releases/1.2/ Support for multiple database

Re: [web2py] Re: web2py 1.78.2

2010-05-17 Thread Thadeus Burgess
You cannot have random = signs in your view. The syntax is {{python code here}} {{=python variable here}} You MUST declare {{= with no space in between. the bracket and equal sign. -- Thadeus On Mon, May 17, 2010 at 2:23 AM, szimszon szims...@gmail.com wrote: default/index.html:

Re: [web2py] Re: web2py 1.78.2

2010-05-17 Thread Thadeus Burgess
On May 17, 10:15 am, szimszon szims...@gmail.com wrote: There is odd because I have a lot of code with {{                 =some.var}} and {{if something:     =T('something')   pass}} If it doesn't work with the new engine I have to do a lot of work :( On máj. 17, 16:53, Thadeus Burgess

Re: [web2py] Re: web2py 1.78.2

2010-05-17 Thread Thadeus Burgess
 am, Thadeus Burgess thade...@thadeusb.com wrote: Well, we only caught the bugs because a new version of web2py is released :) Honestly, I don't see documentation for the {{if True:    =i pass}} syntax anywhere, nor have I seen an example of this until now. -- Thadeus On Mon, May 17

Re: [web2py] Re: New Django version 1.2

2010-05-17 Thread Thadeus Burgess
(Polls.order = 5).select() vs db(Polls.order = 5).select() I see no difference. I don't see any reason to give it an __iter__ method . Just put .select() -- Thadeus On Mon, May 17, 2010 at 9:18 PM, mdipierro mdipie...@cs.depaul.edu wrote: e could also give query and set objects and

Re: [web2py] Re: Production releases

2010-05-17 Thread Thadeus Burgess
I also run web2py in production, but I also don't upgrade my web2py version with the latest release (unless it is a security release). I usually stay 2-3 versions behind on my production code... sometimes even older code unless there is a security release OR I want some new functionality. The

Re: [web2py] Re: Different results in console vs. script

2010-05-16 Thread Thadeus Burgess
to answer these questions. It's very helpful. And I also found out about web2py_utils! On May 5, 6:24 pm, Thadeus Burgess thade...@thadeusb.com wrote: OK. Thank you for the idea. You will be happy :) -- Thadeus On Wed, May 5, 2010 at 2:00 PM, Jonathan Lundell jlund...@pobox.com wrote

Re: [web2py] Re: large sites/application.

2010-05-15 Thread Thadeus Burgess
at 23:07, Thadeus Burgess thade...@thadeusb.com wrote: But the problem with web2py is that what if you don't want portal models to execute when they are on the public portion of the site? But the public depends on the portals models and visa versa. No matter which way you hash

Re: [web2py] Re: large sites/application.

2010-05-15 Thread Thadeus Burgess
for model files, as good as django. On May15, 6:51pm, Thadeus Burgess thade...@thadeusb.com wrote: Yes, web2py runs fine with 50 models. And this is awesome if your just dealing with one application What gets messy is when you have two applications, which depend on each others models. You

Re: [web2py] Re: PGP Mail

2010-05-15 Thread Thadeus Burgess
I think mail.settings. If you have multiple sends that get different PGP keys, you can always change mail.settings in between function calls -- Thadeus On Sat, May 15, 2010 at 10:12 AM, mdipierro mdipie...@cs.depaul.edu wrote: The send method does not specify the sender account.

Re: [web2py] Re: large sites/application.

2010-05-15 Thread Thadeus Burgess
of the should be clearly in charge of migrations 3) even if two apps access the same db table(s) it is not obvious they need to see the same model (i.e. all fields in the same order). On May 15, 5:51 am, Thadeus Burgess thade...@thadeusb.com wrote: Yes, web2py runs fine with 50 models

Re: [web2py] Re: rpc from jquery

2010-05-15 Thread Thadeus Burgess
For multiple elements you might want to try and put it into a jQuery plugin, allowing you to re-use the code for each sparkline. $(.spark).makeSparkline({url:/path/to/call/sparkdata, args:etc}); -- Thadeus On Sat, May 15, 2010 at 1:34 PM, MikeEllis michael.f.el...@gmail.com wrote: After

Re: [web2py] Testing an upload function

2010-05-15 Thread Thadeus Burgess
I attempted to solve this by inserting data into the request environment, including the form name, however I did not have any luck.. I would use WebTest for file upload testing instead, however you will need to use a mixture of webtest and new_env(), this is because you need to get the unique

Re: [web2py] Error with template.py from revision e9e41cce0c onwards.

2010-05-15 Thread Thadeus Burgess
Ah, this is quite a nasty bug to fix :) Originally we just looked if the line started with return, however the following line of code would then fail... {{ if True: return }} I sent a patch to Massimo, would you mind testing again when he applies it? -- Thadeus On Sat, May 15, 2010 at

Re: [web2py] Re: rpc from jquery

2010-05-15 Thread Thadeus Burgess
a link to a chapter in Edward Tufte's Beautiful Evidence with more info http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=0001OR The JQuery Sparklines plug-in page is also useful. http://omnipotent.net/jquery.sparkline/ Cheers, Mike On May 15, 3:27 pm, Thadeus Burgess thade

Re: [web2py] Re: bug in dal.py _first() and SQLFORM ._tablename

2010-05-15 Thread Thadeus Burgess
you simply want   if db(db.person.id)count()+db(db.dog_type.id).count() +db(db.dog.ALL).count(): On Apr 8, 2:57 pm, Thadeus Burgess thade...@thadeusb.com wrote: Massimo, I am attaching a application that can replicate this issue. Works fine on sql.py Breaks on dal.py This application

Re: [web2py] Re: rpc from jquery

2010-05-15 Thread Thadeus Burgess
Nice :) -- Thadeus On Sat, May 15, 2010 at 10:50 PM, MikeEllis michael.f.el...@gmail.com wrote: Done.  See http://www.web2pyslices.com/main/slices/take_slice/79 On May 15, 8:44 pm, Thadeus Burgess thade...@thadeusb.com wrote: Would you make a web2pyslice of this with some screenshots

Re: [web2py] Re: ORM-like DAL

2010-05-13 Thread Thadeus Burgess
, 2010 at 1:44 AM, vihang vihan...@gmail.com wrote: Maybe we could inherit in some way, but I need to inherit a bunch. Hence it does not help. On May 12, 8:08 pm, Thadeus Burgess thade...@thadeusb.com wrote: VirtualFields? -- Thadeus On Tue, May 11, 2010 at 11:59 PM, vihang vihan...@gmail.com

Re: [web2py] web2pyslices source code

2010-05-13 Thread Thadeus Burgess
nice, thanks! -- Thadeus On Thu, May 13, 2010 at 10:50 AM, mr.freeze nat...@freezable.com wrote: This has been updated for anyone interested: http://www.web2pyslices.com/main/static/share/web2py.app.web2pyslices.w2p

Re: [web2py] Re: Idea: Appliance remote management

2010-05-13 Thread Thadeus Burgess
This is similar to how PluginCentral will be designed, if we ever get that spec finalised =) -- Thadeus On Thu, May 13, 2010 at 11:14 AM, blackthorne francisco@gmail.com wrote: One more thing, web2py could have a list of repositories url, with the default the one we can find on the

Re: [web2py] large sites/application.

2010-05-13 Thread Thadeus Burgess
But the problem with web2py is that what if you don't want portal models to execute when they are on the public portion of the site? But the public depends on the portals models and visa versa. No matter which way you hash it, your going to have a massive web2py spaghetti on your plate with some

Re: [web2py] Re: Idea: Appliance remote management

2010-05-13 Thread Thadeus Burgess
Massimo, we can take the ideas for plugin metadata and use it for applications as well? Change the name from plugincentral to web2pycentral. We can start an open source version of the web2pycentral and decide who can work on it. -- Thadeus On Thu, May 13, 2010 at 2:07 PM, Jason Brower

Re: [web2py] Re: New to web app development -- is web2py a good choice

2010-05-12 Thread Thadeus Burgess
We need tutorials, a beginners, intermediate, and expert level on web2py apps, each going into different details of web2py step by step line by line. -- Thadeus On Wed, May 12, 2010 at 4:17 AM, cjrh caleb.hatti...@gmail.com wrote: On May 12, 6:11 am, Richard richar...@gmail.com wrote:

Re: [web2py] Re: ORM-like DAL

2010-05-12 Thread Thadeus Burgess
VirtualFields? -- Thadeus On Tue, May 11, 2010 at 11:59 PM, vihang vihan...@gmail.com wrote: Some of the apps I am working currently are much more easy to build if the models can be defined as a class with methods that act on them. On May 12, 5:51 am, Álvaro Justen alv...@justen.eng.br

Re: [web2py] Re: Why not session['key'] ?

2010-05-12 Thread Thadeus Burgess
session['fav_color'] = blue works just fine. session is just a gluon/storage.Storage() class. which is a subclass of dict and it only provides an extra method to give you the attribute access to make things easier. Otherwise works exactly like any other python dictionary. You can use the session

Re: [web2py] Re: Review my web2py app: Radbox.me

2010-05-11 Thread Thadeus Burgess
This is great! You guys did such a nice job, many kudos! -- Thadeus On Tue, May 11, 2010 at 1:55 PM, b00m_chef r...@devshell.org wrote: Great job!  I am happy to see web2py apps that don't just use the default admin interface design, and actually do their own. On May 11, 2:40 am, Adi

Re: [web2py] Re: IOError, scalability concerned

2010-05-10 Thread Thadeus Burgess
on cherokee with no problems. Massimo, looks reasonable... we can always change it later. [1] the requests are unique visits, no robots included -- Thadeus On Mon, May 10, 2010 at 1:53 AM, Graham Dumpleton graham.dumple...@gmail.com wrote: On May 10, 3:11 pm, Thadeus Burgess thade

Re: [web2py] Re: IOError, scalability concerned

2010-05-10 Thread Thadeus Burgess
system or combination of WSGI middleware they use. Graham Massimo On May 9, 11:52 pm, Graham Dumpleton graham.dumple...@gmail.com wrote: On May 10, 1:51 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ticket. I usually see them the next day when I check admin. No, it is usually

Re: [web2py] Re: Why not session['key'] ?

2010-05-09 Thread Thadeus Burgess
The reason is session.button1 returns None if the key is not found whereas session['button1'] raises an exception when the key is not found. This is typically python behavior. -- Thadeus On Sat, May 8, 2010 at 11:44 PM, ionel ionelanton...@gmail.com wrote: I think I found a bug.

Re: [web2py] Re: Errors with the new version

2010-05-09 Thread Thadeus Burgess
I have seen this quite a bit with my sqlite databases as well... Basically, this is what is happening. The referential integrity of your database is failing (IE: a FK links to a record that does not exist). This has happened many many times, and when I do a csv export of my database, sure

Re: [web2py] Re: Errors with the new version

2010-05-09 Thread Thadeus Burgess
at 12:52 PM, Thadeus Burgess thade...@thadeusb.com wrote: I have seen this quite a bit with my sqlite databases as well... Basically, this is what is happening. The referential integrity of your database is failing (IE: a FK links to a record that does not exist). This has happened many

[web2py] IOError, scalability concerned

2010-05-09 Thread Thadeus Burgess
What could possibly be causing this? python 2.6 web2py trunk apache/mod_wsgi 2.6 Any idea's on how I can narrow this down, or stop this? The pages consist of static html (cached in RAM), and a page with a giant SQLFORM on it. It kind of concerns me about the scalability of web2py, as the errors

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Thadeus Burgess
, how to stop this? -- Thadeus On Sun, May 9, 2010 at 9:28 PM, Thadeus Burgess thade...@thadeusb.com wrote: What could possibly be causing this? python 2.6 web2py trunk apache/mod_wsgi 2.6 Any idea's on how I can narrow this down, or stop this? The pages consist of static html (cached

[web2py] Re: IOError, scalability concerned

2010-05-09 Thread Thadeus Burgess
It is not a robot... I performed an IP lookup on some of the IP addresses that caused the error, and they come from ISP and typically in residential areas, and spread out. So this is a big issue since robots do not cause it. -- Thadeus On Sun, May 9, 2010 at 9:36 PM, Thadeus Burgess thade

Re: [web2py] Re: IOError, scalability concerned

2010-05-09 Thread Thadeus Burgess
Ticket. I usually see them the next day when I check admin. No, it is usually just one IP but it happens to a lot of people at the same time, scaled by the amount of traffic being put on the server. Roughly about 10% of the requests generate this error. A user not waiting for a request to

Re: [web2py] Re: IOError, scalability concerned

2010-05-09 Thread Thadeus Burgess
WSGI script '/web2py/wsgihandler.py'. [Sun Jan 31 13:42:51 2010] [error] [client **] IOError: failed to write data -- Thadeus On Sun, May 9, 2010 at 11:52 PM, Graham Dumpleton graham.dumple...@gmail.com wrote: On May 10, 1:51 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ticket. I

Re: [web2py] Re: IOError, scalability concerned

2010-05-09 Thread Thadeus Burgess
, Thadeus Burgess thade...@thadeusb.com wrote: So you are saying that a user with a slow connection (which consists of a large portion of the sites user base) clicks reload, so their browser stops communicating with that request, so web2py catches it as an IOError... so then is this safe to ignore

Re: [web2py] Re: IOError, scalability concerned

2010-05-09 Thread Thadeus Burgess
Looking at the sites analytics, there are roughly about 1000 requests a day, of which I will receive 100 of these tickets, give or take 20. -- Thadeus On Mon, May 10, 2010 at 12:10 AM, Thadeus Burgess thade...@thadeusb.com wrote: What if there was an IO error with cgi.FieldStorage

Re: [web2py] Fullcalendar with JSON

2010-05-08 Thread Thadeus Burgess
That is incorrect, and only if you want to run that example.. I use fullcalendar and I have it at /init/people/calendar.html and I have the json at /init/ajax_lib/events.json. You just need to make sure to return the correct JSON structure that fullcalendar understands. You will need a custom json

Re: [web2py] New to web app development -- is web2py a good choice

2010-05-08 Thread Thadeus Burgess
One thing I have noticed is django and RoR is for the most part, a designer oriented community. IE: Lots of designers, few real programmers/engineers, this is why you see design-oriented keywords floating around in those frameworks. Most of us here in the web2py community are

Re: [web2py] migratin apps

2010-05-08 Thread Thadeus Burgess
Your tables already exist in the database. However you must have deleted your /app/databases/*.table files, so as far as web2py is concerned it is a blank database. To remedy the solution, add this to each of your define table statements db.define_table('.', fake_migrate=True) Run your code

Re: [web2py] is row.update(name='someone') really works??

2010-05-08 Thread Thadeus Burgess
Looks like you are not running the latest version of web2py . -- Thadeus On Sat, May 8, 2010 at 4:34 PM, Eldr3D phyo.arkarl...@gmail.com wrote: Hello all i just back to web2py a few weeks ago and i am still learning all the new changes reading online official web2py book. currently i

Re: [web2py] Idea/question

2010-05-07 Thread Thadeus Burgess
It would be very nice if we could control the order, alas it is alphabetical. So we must resort to craziness such as A_config.py B_settings.py C_db.py D_auth.py E_crud.py F_other_mode.py etc etc. =) -- Thadeus On Fri, May 7, 2010 at 10:08 AM, Miguel Lopes mig.e.lo...@gmail.com wrote: On

Re: [web2py] Idea/question

2010-05-07 Thread Thadeus Burgess
=? -- Thadeus On Fri, May 7, 2010 at 10:11 AM, Thadeus Burgess thade...@thadeusb.com wrote: It would be very nice if we could control the order, alas it is alphabetical. So we must resort to craziness such as A_config.py B_settings.py C_db.py D_auth.py E_crud.py F_other_mode.py etc etc

Re: [web2py] Re: When will the web2py book open to all editing?

2010-05-07 Thread Thadeus Burgess
I do not want to go in and clean up trash if there is a way to prevent it from getting there in the first place. -- Thadeus On Fri, May 7, 2010 at 4:16 PM, Patrick arcaneli...@gmail.com wrote: On May 7, 12:32 pm, waTR r...@devshell.org wrote: I was just wondering if there are plans to

Re: [web2py] Error in template.py

2010-05-07 Thread Thadeus Burgess
O.O, my bad, Sent Massimo a patch. -- Thadeus On Fri, May 7, 2010 at 8:56 PM, Jose jjac...@gmail.com wrote: name in self.lexers:\nTypeError: argument of type \'NoneType\' is not iterab

Re: [web2py] Re: Top 3 web2py features

2010-05-06 Thread Thadeus Burgess
1) DAL ( like SQL, runs almost anything, very logical and natural if you are used to writing pure SQL all the time ) 2) All in one package (batteries included) 3) Simplicity. -- Thadeus On Thu, May 6, 2010 at 10:33 AM, Jonathan Lundell jlund...@pobox.com wrote: On May 6, 2010, at 8:28 AM,

Re: [web2py] Re: ORM-like DAL

2010-05-06 Thread Thadeus Burgess
I frankly remember a guy posting something (github?) that makes an ORM for the DAL, and it was a class you could almost put any kind of database to it. I too have been curious where this snippet of code ran off too. -- Thadeus On Thu, May 6, 2010 at 9:53 AM, mdipierro

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
Ok. But the purpose of layout.html is to define the layout. It is effectively the parent who pays for the house and determines what room the child gets. I don't think I am quite fully grasping the concept that you have. Could you provide me with a code example of how you would like it to look,

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
further down. On May 6, 12:02 pm, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 6, 10:59 am, Thadeus Burgess thade...@thadeusb.com wrote: Ok. But the purpose of layout.html is to define the layout. It is effectively the parent who pays for the house and determines what room

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
So don't use {{include}} just use blocks, and override them. You don't Have to use {{include}} anymore, as you said it is effectively deprecated (although I find usefull for being lazy :) -- Thadeus On Thu, May 6, 2010 at 12:26 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: t is,

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
to switch which wrapper is used at any level, so that events might appear in a different layout from documents, for example. Anyway, I offer this as food for thought. Best wishes, --r. On May 6, 2010, at 10:02 AM, Yarko Tymciurak wrote: On May 6, 10:59 am, Thadeus Burgess thade

[web2py] Web2py Utils now on the CheeseShop, With a new unittesting module

2010-05-06 Thread Thadeus Burgess
The documentation will now live on the cheeseshop. http://packages.python.org/web2py_utils/ You can now easy_install it This release includes a new Test Runner module, to help properly UnitTest web2py applications. It includes WebTest, Nosetests, Coverage support, as well as creating a fake

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
Extend will effectively make the template its parent in the tree. Include will parse the template, and take its response and stick it in the tree at that point. An included file does not have access to its parents blocks, because it is effectively become part of the original template. So an

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
I need an example of dynamic skin behavior. Code. (even if pseudocode). I need some code to understand. -- Thadeus On Thu, May 6, 2010 at 1:48 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: ther than fixing the point of responsibility point, and making the actions naturally there

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
Sure, and it will do it. And you can even get yourself into a circular import situation and cause it to crash from max-recursion-depth exception. -- Thadeus On Thu, May 6, 2010 at 1:56 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 6, 1:47 pm, Thadeus Burgess thade

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
...@gmail.com wrote: On May 6, 1:52 pm, Thadeus Burgess thade...@thadeusb.com wrote: I need an example of dynamic skin behavior. Code. (even if pseudocode). I need some code to understand. more: App has  layout with header, status bar, body, footer. Any app page can use a body layout

Re: [web2py] Re: blocks in template

2010-05-06 Thread Thadeus Burgess
resultsinsoftw...@gmail.com wrote: On May 6, 1:52 pm, Thadeus Burgess thade...@thadeusb.com wrote: I need an example of dynamic skin behavior. Code. (even if pseudocode). I need some code to understand. continuing w/ the body panel discussion: example.html: # I'll pick what

Re: [web2py] Re: Caching Advise !

2010-05-05 Thread Thadeus Burgess
If your images are fairly large they are going to be slow no matter what. You probably need two versions, a mini thumbnail version, and then the original. On your main page just display the thumbnails, they will load quite fast, but you can link them to the original. -- Thadeus On Tue, May

Re: [web2py] Re: First web2py app

2010-05-05 Thread Thadeus Burgess
Nice work! -- Thadeus On Tue, May 4, 2010 at 11:02 PM, Yarko Tymciurak resultsinsoftw...@gmail.com wrote: On May 4, 4:19 pm, ScOut3R mailingl...@modernbiztonsag.org wrote: Here it goes. First of all, I'm not a developer by profession, not even a web developer. You'll notice it on the

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Thadeus Burgess
I am about to post a unittesting module as part of web2py_utils, it takes out all needed configurations for unittesting and makes it dead simple. -- Thadeus On Wed, May 5, 2010 at 9:01 AM, mdipierro mdipie...@cs.depaul.edu wrote: I am lost. If you want send me you app and data

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
{{include}} must stay there for backwards compatibility. Basically, {{include}} will take any line from the child template that is not in a block that is declared in the parent and places it in {{include}} Simply, what gets left over is put into {{include}}. Lets see if I understand you correctly

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Thadeus Burgess
to actually start the tests. Since it relies on the path to [A] -- Thadeus On Wed, May 5, 2010 at 11:07 AM, Jonathan Lundell jlund...@pobox.com wrote: On May 5, 2010, at 8:59 AM, Thadeus Burgess wrote: I am about to post a unittesting module as part of web2py_utils, it takes out all needed

Re: [web2py] Deployment Recipes Page 281

2010-05-05 Thread Thadeus Burgess
The apt with super cow powers on a Mac! (eyes grow big in astonishment!) BLASPHEMY. -- Thadeus On Wed, May 5, 2010 at 2:56 PM, Yannick ytchatch...@gmail.com wrote: Hello mate, Sorry to bug you with that...it may be an offline question... Maybe this is pretty easy but i was wondering

Re: [web2py] Re: Different results in console vs. script

2010-05-05 Thread Thadeus Burgess
OK. Thank you for the idea. You will be happy :) -- Thadeus On Wed, May 5, 2010 at 2:00 PM, Jonathan Lundell jlund...@pobox.com wrote: On May 5, 2010, at 9:13 AM, Thadeus Burgess wrote: It supports nosetests which includes a coverage plugin. I will look into adding the option stand-alone

Re: [web2py] Re: Web2py Utilities

2010-05-05 Thread Thadeus Burgess
http://code.google.com/p/blogitizor/ -- Thadeus On Wed, May 5, 2010 at 6:48 PM, Matthew matthew.g.nor...@gmail.com wrote: s is excellent! I know that the documentation is in its early stages, but are there any examples you can point to where this has been us

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
Right. As much as I would like the functionality... This cannot be done as the system stands. Child templates know nothing of their parent, therefore they are unable to request anything from the parent template. The way that you effectively override a block is by effort of the parent looking at

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
It might be possible for the parent to look into its children, and analyze the child blocks, and if a block in the child contains a {{super me}} it can then take its own value and replace it into the {{super me}}. -- Thadeus On Wed, May 5, 2010 at 9:56 PM, Thadeus Burgess thade

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
if this will affect the speed of template processing? On May 5, 9:57 pm, Thadeus Burgess thade...@thadeusb.com wrote: It might be possible for the parent to look into its children, and analyze the child blocks, and if a block in the child contains a {{super me}} it can then take its own value and replace

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
, 2010 at 10:14 PM, Thadeus Burgess thade...@thadeusb.com wrote: I can't really say, we need some tests to analyze the effects of this. I am thinking of a way that might not include any extra overhead at all. -- Thadeus On Wed, May 5, 2010 at 10:02 PM, mdipierro mdipie...@cs.depaul.edu

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
5, 10:14 pm, Thadeus Burgess thade...@thadeusb.com wrote: I can't really say, we need some tests to analyze the effects of this. I am thinking of a way that might not include any extra overhead at all. Yep -  then you are on the right track;  I predict it will be no worse, or possibly

Re: [web2py] Re: blocks in template

2010-05-05 Thread Thadeus Burgess
. I am left over from index /div I am left over from body -- Thadeus On Wed, May 5, 2010 at 11:45 PM, mdipierro mdipie...@cs.depaul.edu wrote: wow. what else can I say. wow. On May 5, 10:45 pm, Thadeus Burgess thade...@thadeusb.com wrote: Yarko, I am done. No overhead, just an extra

Re: [web2py] SASS experience

2010-05-04 Thread Thadeus Burgess
I use clevercss for large projects, which is similar to SASS. However, for dynamic css I use it as a template. And for small apps I just write css straight up in the static folder. -- Thadeus On Tue, May 4, 2010 at 9:12 AM, Carl carl.ro...@gmail.com wrote: hi, Is anyone using SASS to

Re: [web2py] Re: SASS experience

2010-05-04 Thread Thadeus Burgess
outside of CleverCSS or a third way? On May 4, 5:27 pm, Thadeus Burgess thade...@thadeusb.com wrote: I use clevercss for large projects, which is similar to SASS. However, for dynamic css I use it as a template. And for small apps I just write css straight up in the static folder

Re: [web2py] Re: SASS experience

2010-05-04 Thread Thadeus Burgess
, 2010 at 12:50 PM, Carl carl.ro...@gmail.com wrote: perhaps it's time I dropped the css I've adopted from web2py! :) On May 4, 6:04 pm, Thadeus Burgess thade...@thadeusb.com wrote: I do not understand. I do not have any web2py css files. -- Thadeus On Tue, May 4, 2010 at 11:58 AM, Carl

Re: [web2py] Re: First web2py app

2010-05-04 Thread Thadeus Burgess
Please, do tell! -- Thadeus On Tue, May 4, 2010 at 3:20 PM, mdipierro mdipie...@cs.depaul.edu wrote: We look forward to hear verything. ;-) On May 4, 1:07 pm, ScOut3R mailingl...@modernbiztonsag.org wrote: Hey There! My first web2py application started as a learning course and the

[web2py] Kill DAL

2010-05-04 Thread Thadeus Burgess
I have a DAL instance that I want to tear down so the database becomes unlocked. How can I accomplish this? -- Thadeus

[web2py] Re: Kill DAL

2010-05-04 Thread Thadeus Burgess
. -- Thadeus On Tue, May 4, 2010 at 3:58 PM, Thadeus Burgess thade...@thadeusb.com wrote: I have a DAL instance that I want to tear down so the database becomes unlocked. How can I accomplish this? -- Thadeus

Re: [web2py] Re: Kill DAL

2010-05-04 Thread Thadeus Burgess
, 2010 at 4:33 PM, mdipierro mdipie...@cs.depaul.edu wrote: db.close() ? On May 4, 4:22 pm, Thadeus Burgess thade...@thadeusb.com wrote: More info: I have an sqlite://:memory: dal connection. I am reusing this memory database for unit testing. I need to completely remove the database on my

Re: [web2py] Re: Caching downloads

2010-05-04 Thread Thadeus Burgess
What webserver are you using? You could use the X-Sendfile header if it supports it. This way the webserver will send cache headers and web2py does not have to serve them. -- Thadeus On Tue, May 4, 2010 at 9:25 PM, mdipierro mdipie...@cs.depaul.edu wrote: response.stream (which you use)

Re: [web2py] wordpress2py

2010-05-02 Thread Thadeus Burgess
He stole my code! -- Thadeus On Sun, May 2, 2010 at 9:24 AM, mdipierro mdipie...@cs.depaul.edu wrote: http://www.mundopython.org/wordpress-to-python/

<    1   2   3   4   5   6   7   8   9   10   >