forked from endorphant/ttbp
there was a major bug that caused users who opted not to publish to
crash during version checking. the version checker was trying to update files associated with published blogs, and crashing due to trying to read null paths. this fix checks to see if the user has opted to publish *before* running those updates.master
parent
9e372b4160
commit
56419f2f43
|
@ -382,6 +382,8 @@ def www_neighbors():
|
|||
|
||||
userRC = json.load(open(os.path.join("/home", user, ".ttbp", "config", "ttbprc")))
|
||||
|
||||
url = ""
|
||||
if userRC["publish dir"]:
|
||||
url = LIVE+user+"/"+userRC["publish dir"]
|
||||
|
||||
lastfile = ""
|
||||
|
|
|
@ -893,6 +893,7 @@ def update_version():
|
|||
# from 0.8.5 to 0.8.6:
|
||||
|
||||
# change style.css location
|
||||
if core.publishing():
|
||||
if os.path.isfile(os.path.join(WWW, "style.css")):
|
||||
subprocess.call(["mv", os.path.join(WWW, "style.css"), CONFIG])
|
||||
|
||||
|
|
12
devnotes.txt
12
devnotes.txt
|
@ -3,3 +3,15 @@ NOTES FOR ~ENDO
|
|||
handling global feels out of order:
|
||||
-check to see if entry filename date and mtime date matches
|
||||
-if not, process as if it was last modified on the date indicated by filename
|
||||
|
||||
stuff to sort out:
|
||||
|
||||
-figure out how to deal with entries scrolling too far (either learn more
|
||||
curses handling, or find someone who knows how to do curses stuff)
|
||||
|
||||
-there's like some seriously weird out of order updating for publishing that
|
||||
breaks things too much
|
||||
|
||||
user-friendliness:
|
||||
-reset button, instead of having to manually delete things
|
||||
-wall lock clearing
|
||||
|
|
Loading…
Reference in New Issue