Changeset 39
- Timestamp:
- 01/28/07 19:06:06 (5 years ago)
- Location:
- trunk
- Files:
-
- 1 removed
- 8 modified
-
cogplanet.egg-info/PKG-INFO (modified) (1 diff)
-
cogplanet.egg-info/requires.txt (modified) (1 diff)
-
cogplanet.egg-info/SOURCES.txt (modified) (2 diffs)
-
cogplanet/release.py (modified) (1 diff)
-
cogplanet/sqlobject-history (deleted)
-
cogplanet/tests/test_model.py (modified) (2 diffs)
-
README.txt (modified) (1 diff)
-
sample-prod.cfg (modified) (2 diffs)
-
setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/cogplanet.egg-info/PKG-INFO
r32 r39 1 1 Metadata-Version: 1.0 2 2 Name: cogplanet 3 Version: 0.8 3 Version: 0.8.1 4 4 Summary: A planet server written with TurboGears 5 5 Home-page: http://achievewith.us/projects/cogplanet -
trunk/cogplanet.egg-info/requires.txt
r32 r39 2 2 feedparser 3 3 Genshi 4 TurboGears == 1.0b24 TurboGears >= 1.0.1 5 5 SQLAlchemy -
trunk/cogplanet.egg-info/SOURCES.txt
r32 r39 25 25 cogplanet/config/app.cfg 26 26 cogplanet/config/log.cfg 27 cogplanet/sqlobject-history/empty 28 cogplanet/static/css/empty 27 29 cogplanet/static/css/style.css 28 30 cogplanet/static/images/favicon.ico 29 31 cogplanet/static/images/gloss-100.png 32 cogplanet/static/images/header_inner.png 33 cogplanet/static/images/info.png 34 cogplanet/static/images/ok.png 30 35 cogplanet/static/images/shadow-reverse-100.png 36 cogplanet/static/images/tg_under_the_hood.png 37 cogplanet/static/images/under_the_hood_blue.png 31 38 cogplanet/static/javascript/admin.js 39 cogplanet/static/javascript/empty 32 40 cogplanet/templates/__init__.py 33 41 cogplanet/templates/feeds.html … … 35 43 cogplanet/templates/layout.html 36 44 cogplanet/templates/login.html 45 cogplanet/templates/login.kid 37 46 cogplanet/templates/master.kid 47 cogplanet/templates/welcome.kid 38 48 cogplanet/templates/admin/__init__.py 39 49 cogplanet/templates/admin/entry.html -
trunk/cogplanet/release.py
r35 r39 1 1 # Release information about cogplanet 2 2 3 version = "0.8 "3 version = "0.8.1" 4 4 5 5 description = "A planet server written with TurboGears" -
trunk/cogplanet/tests/test_model.py
r1 r39 5 5 # which is very fast. 6 6 7 import unittest 7 8 from turbogears import testutil, database 8 # from cogplanet.model import YourDataClass, User 9 from cogplanet.model import * 9 10 10 11 # database.set_db_uri("sqlite:///:memory:") … … 22 23 # assert obj.display_name == "Mr Creosote" 23 24 25 # class ActiveMapperTest(unittest.TestCase): 26 # model = None 27 28 # def setUp(self): 29 # if not self.model: 30 # self.model = get_model() 31 # if not self.model: 32 # raise "Unable to run database tests without a model" 33 34 # if not self.model.table.exists(): 35 # self.model.table.create() 36 37 # def tearDown(self): 38 # self.model.table.drop() 39 40 class TestFeed(unittest.TestCase): 41 model = Feed 42 43 # def test_refresh_invalid_entries(self): 44 # "Invalid feed entries should not halt processing" 45 46 # feed = Feed() 47 # feed.xmlurl = "./cogplanet/tests/invalid_entries.rss" 48 # feed.refresh_entries() 49 # assert len(feed.entries) == 5 50 51 def test_utf8_characters_in_feed(self): 52 "Feeds with UTF-8 characters should import and display correctly" 53 trans = session.create_transaction() 54 feed = Feed() 55 # feed.xmlurl = "./cogplanet/tests/utf8_feed.xml" 56 feed.xmlurl = "http://feeds.feedburner.com/caskey" 57 feed.refresh_entries() 58 trans.commit() 59 60 print feed.id 61 print type(feed.id) 62 fid = feed.id 63 64 feed = Feed.selectone("id=%s" % fid) 65 for entry in feed.entries: 66 rendered = MarkupTemplate(entry.content).generate().render('xhtml') 67 print rendered -
trunk/README.txt
r33 r39 39 39 -------- 40 40 41 Tim Freund: email: ["tim *at* achievewith *dot* us", 42 "tim *at* digital-achievement *dot* com"] 41 Tim Freund: email: "tim *at* achievewith *dot* us" 43 42 irc: timphnode on irc.freenode.net 44 43 gtalk: timfreund *at* gmail *dot* com -
trunk/sample-prod.cfg
r1 r39 7 7 # cogplanet/config/app.cfg 8 8 9 # DATABASE 10 9 11 # driver://username:password@host:port/database 12 10 13 # pick the form for your database 11 14 # sqlalchemy.dburi="postgres://username@hostname/databasename" … … 30 33 31 34 # session_filter.on = True 35 36 # Set to True if you are deploying your App behind a proxy 37 # e.g. Apache using mod_proxy 38 # base_url_filter.on = False 39 40 # Set to True if your proxy adds the x_forwarded_host header 41 # base_url_filter.use_x_forwarded_host = True 42 43 # If your proxy does not add the x_forwarded_host header, set 44 # the following to the *public* host url. 45 # (Note: This will be overridden by the use_x_forwarded_host option 46 # if it is set to True and the proxy adds the header correctly. 47 # base_url_filter.base_url = "http://www.example.com" 32 48 33 49 # Set to True if you'd like to abort execution if a controller gets an -
trunk/setup.py
r32 r39 26 26 "feedparser", 27 27 "Genshi", 28 "TurboGears == 1.0b2",28 "TurboGears >= 1.0.1", 29 29 "SQLAlchemy", 30 30 ],
