Bug 135947 - [NEW PORT]devel/py-AddOns:Dynamically extend other objects with AddOns
Summary: [NEW PORT]devel/py-AddOns:Dynamically extend other objects with AddOns
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-23 05:40 UTC by wenheping
Modified: 2009-07-01 10:10 UTC (History)
0 users

See Also:


Attachments
file.shar (2.22 KB, text/plain)
2009-06-23 05:40 UTC, wenheping
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description wenheping 2009-06-23 05:40:03 UTC
py-AddOn classes are like dynamic mixins, but with their own private attribute
and method namespaces. A concern implemented using add-ons can be added at
runtime to any object that either has a writable __dict__ attribute, or is
weak-referenceable.

AddOn classes are also like adapters, but rather than creating a new instance
each time you ask for one, an existing instance is returned if possible. In
this way, add-ons can keep track of ongoing state. For example, a Persistence
add-on might keep track of whether its subject has been saved to disk.

WWW:    http://www.python.org/pypi/AddOns

(it was prepared for tg2)

Fix: Patch attached with submission follows:
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2009-06-23 05:40:13 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

miwi@ wants his PRs (via the GNATS Auto Assign Tool)
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-07-01 10:02:40 UTC
State Changed
From-To: open->closed

New port added. Thanks!
Comment 3 dfilter service freebsd_committer freebsd_triage 2009-07-01 10:03:08 UTC
miwi        2009-07-01 09:02:52 UTC

  FreeBSD ports repository

  Modified files:
    devel                Makefile 
  Added files:
    devel/py-AddOns      Makefile distinfo pkg-descr 
  Log:
  py-AddOn classes are like dynamic mixins, but with their own private attribute
  and method namespaces. A concern implemented using add-ons can be added at
  runtime to any object that either has a writable __dict__ attribute, or is
  weak-referenceable.
  
  AddOn classes are also like adapters, but rather than creating a new instance
  each time you ask for one, an existing instance is returned if possible. In
  this way, add-ons can keep track of ongoing state. For example, a Persistence
  add-on might keep track of whether its subject has been saved to disk.
  
  WWW:    http://www.python.org/pypi/AddOns
  
  PR:             ports/135947
  Submitted by:   Wen Heping <wenheping at gmail.com>
  
  Revision  Changes    Path
  1.3538    +1 -0      ports/devel/Makefile
  1.1       +27 -0     ports/devel/py-AddOns/Makefile (new)
  1.1       +3 -0      ports/devel/py-AddOns/distinfo (new)
  1.1       +11 -0     ports/devel/py-AddOns/pkg-descr (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"