Tag Archives: CherryPy
CherryPy v. Pylons
Over various pints of beer, emails, and late-night twitter tweets, I’ve alone and with others wondered about whether a smart, well-adjusted programmer would use Pylons or CherryPy for all his web programming needs (and whether such a programmer would take the time to convert from CherryPy to Pylons). Pylons is newish to me, but I’ve [...]
MySQL (MySQLdb) sessions on CherryPy
No such module existed, so I wrote one. Using it is pretty simple:
Worst lock acquisition code ever.
Courtesy of CherryPy:
while True:
try:
lockfd = os.open(path, os.O_CREAT|os.O_WRONLY|os.O_EXCL)
except OSError:
time.sleep(0.1)
else:
os.close(lockfd)
break
self.locked = True
Really people, [...]