Scripts posted recently tagged to squishdot in Kelpi

1- 3 of 3.

Find and delete POSKeyError on Squisdot

to squishdot ZODB recover by aitzol

sq = context.squisdot_to_recover
bad_ids = []
for i in sq.data.keys():
    p = dida.data[i]
    try:

Recover Squishdot posts even if something is corrupted

to squishdot corrupted python zope by nando.quintana

#http://www.squishdot.org/990259865/
def moveall(self):
  oldnews = self.oldnews.data
  news = self.news
  for id in oldnews.keys():

Print all SquishDot postings

to zope2 zope squishdot python by nando.quintana

l = []
for a in context.blog(meta_type='Article',reviewed=1, sort_on='date'):
#    msg = context.u(a.title,'iso-8859-1').encode('utf-8') + u'(' + context.u(a.date_posted,'iso-8859-1').encode('utf-8') + u')'
    msg = (a.title, a.date_posted, a.thread_path, a.id)
    l.append(msg)
hits counter