[yt-svn] commit/yt: MatthewTurk: Adding a firstp ass at a minimal project representation.
Bitbucket
commits-noreply at bitbucket.org
Mon May 7 14:15:49 PDT 2012
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/changeset/2fae87c99fd4/
changeset: 2fae87c99fd4
branch: yt
user: MatthewTurk
date: 2012-05-07 23:15:39
summary: Adding a firstp ass at a minimal project representation.
affected #: 1 file
diff -r ea174c37c88e9e198a74b009282a01fb9d9b4aab -r 2fae87c99fd4c8c550e3185485ebc4271b9807f7 yt/utilities/minimal_representation.py
--- a/yt/utilities/minimal_representation.py
+++ b/yt/utilities/minimal_representation.py
@@ -180,3 +180,14 @@
chunks = [(fn, d) for fn, d in self.images]
return (metadata, ('images', chunks))
+class MinimalProjectDescription(MinimalRepresentation):
+ type = "project"
+ _attr_list = ("title", "url", "description", "category", "image_url")
+
+ def __init__(self, title, url, description,
+ category = "General Purpose Scripts", image_url = ""):
+ self.title = title
+ self.url = url
+ self.description = description
+ self.category = category
+ self.image_url = image_url
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list