Changeset 39

Show
Ignore:
Timestamp:
01/28/07 19:06:06 (5 years ago)
Author:
tim
Message:

Upgrade to TG 1.0.1

Location:
trunk
Files:
1 removed
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/cogplanet.egg-info/PKG-INFO

    r32 r39  
    11Metadata-Version: 1.0 
    22Name: cogplanet 
    3 Version: 0.8 
     3Version: 0.8.1 
    44Summary: A planet server written with TurboGears 
    55Home-page: http://achievewith.us/projects/cogplanet 
  • trunk/cogplanet.egg-info/requires.txt

    r32 r39  
    22feedparser 
    33Genshi 
    4 TurboGears == 1.0b2 
     4TurboGears >= 1.0.1 
    55SQLAlchemy 
  • trunk/cogplanet.egg-info/SOURCES.txt

    r32 r39  
    2525cogplanet/config/app.cfg 
    2626cogplanet/config/log.cfg 
     27cogplanet/sqlobject-history/empty 
     28cogplanet/static/css/empty 
    2729cogplanet/static/css/style.css 
    2830cogplanet/static/images/favicon.ico 
    2931cogplanet/static/images/gloss-100.png 
     32cogplanet/static/images/header_inner.png 
     33cogplanet/static/images/info.png 
     34cogplanet/static/images/ok.png 
    3035cogplanet/static/images/shadow-reverse-100.png 
     36cogplanet/static/images/tg_under_the_hood.png 
     37cogplanet/static/images/under_the_hood_blue.png 
    3138cogplanet/static/javascript/admin.js 
     39cogplanet/static/javascript/empty 
    3240cogplanet/templates/__init__.py 
    3341cogplanet/templates/feeds.html 
     
    3543cogplanet/templates/layout.html 
    3644cogplanet/templates/login.html 
     45cogplanet/templates/login.kid 
    3746cogplanet/templates/master.kid 
     47cogplanet/templates/welcome.kid 
    3848cogplanet/templates/admin/__init__.py 
    3949cogplanet/templates/admin/entry.html 
  • trunk/cogplanet/release.py

    r35 r39  
    11# Release information about cogplanet 
    22 
    3 version = "0.8" 
     3version = "0.8.1" 
    44 
    55description = "A planet server written with TurboGears" 
  • trunk/cogplanet/tests/test_model.py

    r1 r39  
    55# which is very fast. 
    66 
     7import unittest 
    78from turbogears import testutil, database 
    8 # from cogplanet.model import YourDataClass, User 
     9from cogplanet.model import * 
    910 
    1011# database.set_db_uri("sqlite:///:memory:") 
     
    2223#         assert obj.display_name == "Mr Creosote" 
    2324 
     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 
     40class 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  
    3939-------- 
    4040 
    41 Tim Freund:  email: ["tim *at* achievewith *dot* us", 
    42                      "tim *at* digital-achievement *dot* com"] 
     41Tim Freund:  email: "tim *at* achievewith *dot* us" 
    4342             irc:   timphnode on irc.freenode.net 
    4443             gtalk: timfreund *at* gmail *dot* com  
  • trunk/sample-prod.cfg

    r1 r39  
    77# cogplanet/config/app.cfg 
    88 
     9# DATABASE 
     10 
    911# driver://username:password@host:port/database 
     12 
    1013# pick the form for your database 
    1114# sqlalchemy.dburi="postgres://username@hostname/databasename" 
     
    3033 
    3134# 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" 
    3248 
    3349# Set to True if you'd like to abort execution if a controller gets an 
  • trunk/setup.py

    r32 r39  
    2626        "feedparser", 
    2727        "Genshi", 
    28         "TurboGears == 1.0b2", 
     28        "TurboGears >= 1.0.1", 
    2929        "SQLAlchemy",  
    3030    ],