"""EditStory""" import IMS def SendToWordos(code): stf=IMS.StoryFiler() st=stf.getStory(code) if IMS.WORDOS in st.workshops: print "Already through Wordos" else: st.workshops.append(IMS.WORDOS) print st.toXML() stf.replace(code,st.toElement()) stf.Save() def SendToCritters(code): stf=IMS.StoryFiler() st=stf.getStory(code) if IMS.CRITTERS in st.workshops: print "Already through Critters" else: st.workshops.append(IMS.CRITTERS) print st.toXML() stf.replace(code,st.toElement()) stf.Save() def SendToWelorians(code): stf=IMS.StoryFiler() st=stf.getStory(code) if IMS.WELORIANS in st.workshops: print "Already through Welorians" else: st.workshops.append(IMS.WELORIANS) print st.toXML() stf.replace(code,st.toElement()) stf.Save() def AddHistory(code,date,item): dobj=IMS.StringToDate(date) stf=IMS.StoryFiler() st=stf.getStory(code) st.addHistory(dobj,item) print st.toXML() stf.replace(code,st.toElement()) stf.Save() SendToWelorians('game') #AddHistory('game','Aug 18, 2006','Sent to Mischa')