Skip to content

Commit

Permalink
SVN things now are replaced with GIT ones
Browse files Browse the repository at this point in the history
  • Loading branch information
pigmej authored and alobbs committed Oct 20, 2011
1 parent d7730d9 commit 8a9fe62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions Commits.py
Expand Up @@ -66,11 +66,11 @@ def get_commit_list (num):
#
# Widget
#
class Latest_SVN_Commits_Widget (CTK.Box):
class Latest_GIT_Commits_Widget (CTK.Box):
def __init__ (self, num=7):
CTK.Box.__init__ (self, {'id': 'latest-commits'})

self += CTK.Box({'class': 'bar3-title'}, CTK.RawHTML('<a href="http://svn.cherokee-project.com/log.php?repname=Cherokee&path=%2F&rev=6636&isdir=1" target="_blank">Latest Commits</a>'))
self += CTK.Box({'class': 'bar3-title'}, CTK.RawHTML('<a href="https://github.com/cherokee/webserver/commits/dev" target="_blank">Latest Commits</a>'))

for commit in get_commit_list (num):
user = commit[0]
Expand All @@ -93,7 +93,7 @@ def __init__ (self, num=7):

self += content_box

self += CTK.Box({'class': 'bar3-bottom-link'}, CTK.RawHTML('<a href="https://github.com/cherokee/webserver/commits/master/" target="_blank">View Commits Log &raquo;</a>'))
self += CTK.Box({'class': 'bar3-bottom-link'}, CTK.RawHTML('<a href="https://github.com/cherokee/webserver/commits/dev" target="_blank">View Commits Log &raquo;</a>'))


#
Expand All @@ -102,12 +102,12 @@ def __init__ (self, num=7):
latest_widget = None
latest_widget_expiration = None

def Latest_SVN_Commits():
def Latest_GIT_Commits():
global latest_widget
global latest_widget_expiration

if not latest_widget or time.time() > latest_widget_expiration:
latest_widget = Latest_SVN_Commits_Widget()
latest_widget = Latest_GIT_Commits_Widget()
latest_widget_expiration = time.time() + CACHE_EXPIRATION

return latest_widget
2 changes: 1 addition & 1 deletion PageIndex.py
Expand Up @@ -155,7 +155,7 @@ def __call__ (self):
page += bar3

bar3 = CTK.Box ({'class': 'bar3'})
bar3 += Commits.Latest_SVN_Commits()
bar3 += Commits.Latest_GIT_Commits()
page += bar3

bar3 = CTK.Box ({'class': 'bar3'})
Expand Down

0 comments on commit 8a9fe62

Please sign in to comment.