forked from endorphant/ttbp
fixing merge
commit
4c711c532b
|
@ -76,13 +76,13 @@ NOPUB = os.path.join(USER_CONFIG, "nopub")
|
||||||
## UI
|
## UI
|
||||||
|
|
||||||
BANNER = '''
|
BANNER = '''
|
||||||
__________________________________________________________
|
___________________________________________________________
|
||||||
| |
|
| |
|
||||||
| the tilde.town |
|
| the tilde.town |
|
||||||
| ____ ____ ____ _ ____ ____ _ _ ____ _ _ _ ____ |
|
| ____ ____ ____ _ ____ ____ _ _ ____ _ _ _ ____ |
|
||||||
| |___ |___ |___ | [__ |___ |\ | | __ | |\ | |___ |
|
| |___ |___ |___ | [__ |___ |\ | | __ | |\ | |___ |
|
||||||
| | |___ |___ |___ ___] |___ | \| |__] | | \| |___ |
|
| | |___ |___ |___ ___] |___ | \| |__] | | \| |___ |
|
||||||
| ver 0.11.0 (rainbows) |
|
| ver 0.11.1 (rainbows) |
|
||||||
|__________________________________________________________|
|
|__________________________________________________________|
|
||||||
'''.lstrip()
|
'''.lstrip()
|
||||||
|
|
||||||
|
@ -139,4 +139,11 @@ version 0.9.3 features:
|
||||||
* ~login created centralfeels, which is an opt-in collection of
|
* ~login created centralfeels, which is an opt-in collection of
|
||||||
html-published feels; create a blank file called '.centralfeels' in
|
html-published feels; create a blank file called '.centralfeels' in
|
||||||
your home directory if you'd like to be included!""",
|
your home directory if you'd like to be included!""",
|
||||||
|
"0.11.1": """
|
||||||
|
~[version 0.11.1 update]~
|
||||||
|
|
||||||
|
* a quick patch to correct a directory listing error, nothing too
|
||||||
|
exciting
|
||||||
|
* general PSA: feel free to use the github repo for bugs/feature requests:
|
||||||
|
https://github.com/modgethanc/ttbp/issues""",
|
||||||
}
|
}
|
||||||
|
|
|
@ -405,7 +405,10 @@ def www_neighbors():
|
||||||
url = config.LIVE+user+"/"+userRC["publish dir"]
|
url = config.LIVE+user+"/"+userRC["publish dir"]
|
||||||
|
|
||||||
lastfile = ""
|
lastfile = ""
|
||||||
|
try:
|
||||||
files = os.listdir(os.path.join("/home", user, ".ttbp", "entries"))
|
files = os.listdir(os.path.join("/home", user, ".ttbp", "entries"))
|
||||||
|
except OSError:
|
||||||
|
files = []
|
||||||
files.sort()
|
files.sort()
|
||||||
for filename in files:
|
for filename in files:
|
||||||
if valid(filename):
|
if valid(filename):
|
||||||
|
|
24
ttbp/ttbp.py
24
ttbp/ttbp.py
|
@ -50,7 +50,7 @@ from . import chatter
|
||||||
from . import gopher
|
from . import gopher
|
||||||
from . import util
|
from . import util
|
||||||
|
|
||||||
__version__ = "0.11.0"
|
__version__ = "0.11.1"
|
||||||
__author__ = "endorphant <endorphant@tilde.town)"
|
__author__ = "endorphant <endorphant@tilde.town)"
|
||||||
|
|
||||||
p = inflect.engine()
|
p = inflect.engine()
|
||||||
|
@ -217,8 +217,6 @@ def check_init():
|
||||||
* checks for last run version
|
* checks for last run version
|
||||||
'''
|
'''
|
||||||
|
|
||||||
global SETTINGS
|
|
||||||
|
|
||||||
print("\n\n")
|
print("\n\n")
|
||||||
if os.path.exists(os.path.join(os.path.expanduser("~"),".ttbp")):
|
if os.path.exists(os.path.join(os.path.expanduser("~"),".ttbp")):
|
||||||
if config.USER == "endorphant":
|
if config.USER == "endorphant":
|
||||||
|
@ -230,10 +228,10 @@ def check_init():
|
||||||
## ttbp env validation
|
## ttbp env validation
|
||||||
if not user_up_to_date():
|
if not user_up_to_date():
|
||||||
update_user_version()
|
update_user_version()
|
||||||
elif not valid_setup():
|
|
||||||
|
if not valid_setup():
|
||||||
setup_repair()
|
setup_repair()
|
||||||
else:
|
else:
|
||||||
|
|
||||||
input("press <enter> to explore your feels.\n\n")
|
input("press <enter> to explore your feels.\n\n")
|
||||||
|
|
||||||
core.load(SETTINGS)
|
core.load(SETTINGS)
|
||||||
|
@ -637,7 +635,10 @@ def view_neighbors(users, prompt):
|
||||||
url = config.LIVE+user+"/"+userRC.get("publish dir")
|
url = config.LIVE+user+"/"+userRC.get("publish dir")
|
||||||
|
|
||||||
## find last entry
|
## find last entry
|
||||||
|
try:
|
||||||
files = os.listdir(os.path.join("/home", user, ".ttbp", "entries"))
|
files = os.listdir(os.path.join("/home", user, ".ttbp", "entries"))
|
||||||
|
except OSError:
|
||||||
|
files = []
|
||||||
files.sort()
|
files.sort()
|
||||||
lastfile = ""
|
lastfile = ""
|
||||||
for filename in files:
|
for filename in files:
|
||||||
|
@ -918,7 +919,10 @@ def view_feed():
|
||||||
|
|
||||||
for townie in core.find_ttbps():
|
for townie in core.find_ttbps():
|
||||||
entryDir = os.path.join("/home", townie, ".ttbp", "entries")
|
entryDir = os.path.join("/home", townie, ".ttbp", "entries")
|
||||||
|
try:
|
||||||
filenames = os.listdir(entryDir)
|
filenames = os.listdir(entryDir)
|
||||||
|
except OSError:
|
||||||
|
filenames = []
|
||||||
|
|
||||||
for entry in filenames:
|
for entry in filenames:
|
||||||
## hardcoded display cutoff at 30 days
|
## hardcoded display cutoff at 30 days
|
||||||
|
@ -1268,19 +1272,25 @@ you're all good to go, """+chatter.say("friend")+"""! please contact ~endorphant
|
||||||
something strange happened to you during this update.
|
something strange happened to you during this update.
|
||||||
""")
|
""")
|
||||||
|
|
||||||
if z < 1 or y < 10:
|
if y < 10:
|
||||||
# version 0.10.1 patch notes
|
# version 0.10.1 patch notes
|
||||||
print(config.UPDATES["0.10.1"])
|
print(config.UPDATES["0.10.1"])
|
||||||
|
|
||||||
if y < 11:
|
if y < 11:
|
||||||
# version 0.11.1 patch notes
|
# version 0.11.0 patch notes
|
||||||
print(config.UPDATES["0.11.0"])
|
print(config.UPDATES["0.11.0"])
|
||||||
|
|
||||||
|
if y < 11 or z < 1:
|
||||||
|
# version 0.11.1 patch notes
|
||||||
|
print(config.UPDATES["0.11.1"])
|
||||||
|
|
||||||
confirm = ""
|
confirm = ""
|
||||||
|
|
||||||
while confirm not in ("x", "<x>", "X", "<X>"):
|
while confirm not in ("x", "<x>", "X", "<X>"):
|
||||||
confirm = input("\nplease type <x> when you've finished reading about the updates! ")
|
confirm = input("\nplease type <x> when you've finished reading about the updates! ")
|
||||||
|
|
||||||
|
print("\n\n")
|
||||||
|
|
||||||
open(versionFile, "w").write(__version__)
|
open(versionFile, "w").write(__version__)
|
||||||
|
|
||||||
#####
|
#####
|
||||||
|
|
Loading…
Reference in New Issue