Hi pals,

I've adjusted the admin app to pack things except errors/* and sessions/*

However I still choose to call __cleanup() before packing, because it is more 
simple, and no need to repeat special treatment for errors/* and sessions/* 
(the DRY rule).  Besides, I fixed a bug occurs when trying to cleanup admin app.

Just use the attached default.py to replace web2py 1.61's 
applications/admin/controllers/default.py

Best regards,
                            Iceberg, 2009-Apr-13, 23:07(PM), Mon



----------------------- Original Message -----------------------
From:    mdipierro <[email protected]> 
To:      web2py Web Framework <[email protected]> 
Date:    Sun, 12 Apr 2009 23:12:41 -0700 (PDT)
Subject: Re: New App - hope you like it
-------------------

> Can you send me a patch?
> 
> On Apr 13, 12:59 am, Iceberg <[email protected]> wrote:
> > Nothing wrong, but it seems people tends to forget pressing the
> > cleanup button before packing, at least I've downloaded some apps in
> > the open repository (http://mdp.cti.depaul.edu/appliances) and find
> > some of them include unnecessary errors/* and sessions/*
> >
> > Shall we look at this in a different angle of view? When we want to
> > pack our app, in most cases we don't need to pack errors/* and
> > sessions/*, so why not let the pack feature just leave those files
> > there, not deleting them nor packing them.
> >
> > On Apr13, 12:17pm, mdipierro <[email protected]> wrote:
> >
> > > What is wrong with pressing the cleanup button before the pack all
> > > button?
> > > I think any file delettion has to be explicit.
> >
> > > Massimo
> >
> > > On Apr 12, 9:33 pm, Iceberg <[email protected]> wrote:
> >
> > > > By the way, I always hope the pack function in web2py admin can do an
> > > > automatical cleanup before packing.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Attachment: default.py
Description: Binary data

Reply via email to