Skip to content

Commit

Permalink
Update to memgator-rc5
Browse files Browse the repository at this point in the history
  • Loading branch information
machawk1 committed Jul 10, 2016
1 parent 3ce3f3f commit d066483
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>CFBundleShortVersionString</key>
<string>2016.03.16</string>
<string>2016.07.09</string>
<key>NSHumanReadableCopyright</key>
<string>Mat Kelly</string>
<key>CFBundleExecutable</key>
Expand Down
23 changes: 14 additions & 9 deletions bundledApps/WAIL.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
msg_wrongLocation_body = "WAIL must reside in your Applications directory. Move it there then relaunch.\n\nCurrent Location: "
msg_wrongLocation_title = "Wrong Location"
msg_noJavaRuntime = "No Java runtime present, requesting install."
msg_fetchingMementos = "Fetching memento count from public archives..."
msg_fetchingMementos = "Fetching memento count..."

tabLabel_basic = "Basic"
tabLabel_advanced = "Advanced"
Expand All @@ -99,6 +99,7 @@
buttonLabel_archiveNow_initializing = "INITIALIZING"
buttonLabel_checkStatus = "Check Archived Status"
buttonLabel_viewArchive = "View Archive"
buttonLabel_mementoCountInfo = "?"
buttonLabel_uri = "URL:"
buttonLabel_fix = "Fix"
buttonLabel_kill = "Kill"
Expand Down Expand Up @@ -281,6 +282,8 @@ def __init__(self, parent):

self.archiveNowButton.SetDefault()

#self.mementoCountInfo = wx.Button(self, -1, buttonLabel_mementoCountInfo, pos=(270,85), size=(25,15))

# Basic interface button actions
self.archiveNowButton.Bind(wx.EVT_BUTTON, self.archiveNow)
self.checkArchiveStatus.Bind(wx.EVT_BUTTON, self.checkIfURLIsInArchive)
Expand All @@ -302,16 +305,17 @@ def __init__(self, parent):
def setMementoCount(self, count):
if hasattr(self,'mementoStatus'):
self.mementoStatus.Destroy()
self.mementoStatusPublicArchives.Destroy()

if count:
memCountMsg = "Public archives: " + str(count) + " mementos available"
memCountMsg = str(count) + " mementos available"
self.mementoStatus = wx.StaticText(self, -1, label=memCountMsg, pos=(105, 85), size=(150,20))
else:
memCountMsg = msg_fetchingMementos
#self.status = wx.HyperlinkCtrl(self, -1, label=str(count) + " mementos available", url=" ", pos=(5, 65), size=(300,20))
#self.status.SetNormalColour(wx.Colour(0,0,255))
#self.status.SetVisitedColour(wx.Colour(0,0,255))
#self.status.SetHoverColour(wx.Colour(0,0,255))
self.mementoStatus = wx.StaticText(self, -1, label=memCountMsg, pos=(5, 85), size=(300,20))
self.mementoStatus = wx.StaticText(self, -1, label=msg_fetchingMementos, pos=(105, 85), size=(150,20))
#italicFont = self.mementoStatus.GetFont().SetStyle(wx.ITALIC)
#self.mementoStatus.SetFont(italicFont)

self.mementoStatusPublicArchives = wx.StaticText(self, -1, label="Public archives: ", pos=(5, 85), size=(100,20))



Expand Down Expand Up @@ -485,7 +489,8 @@ def checkIfURLIsInArchive(self, button):
elif 200 != statusCode:
wx.MessageBox(msg_uriNotInArchives,"Checking for " + self.uri.GetValue())
else:
wx.MessageBox(msg_uriInArchives_body,msg_uriInArchives_title)
mb = wx.MessageBox(msg_uriInArchives_body,msg_uriInArchives_title)
mb.AddButton(wx.Button(self, -1, buttonLabel_mementoCountInfo, pos=(10,85), size=(25,15)))

def viewArchiveInBrowser(self, button):
if Wayback().accessible():
Expand Down
Binary file modified bundledApps/memgator
Binary file not shown.

0 comments on commit d066483

Please sign in to comment.