[Dev-flock] dynamic recent activity
Lucy Mendel
lucy at thoughtandmemory.org
Fri Sep 26 00:35:12 EDT 2008
yo,
The recent activity listings on the main page are now kept up to date
with actual recent activity. I just hooked things up-- Dan, good work
with Actions.
Note that most models (eg, node, behavior, nodetypecast,
etc.--graph.py stuff) have user and time properties mixed in. These
come from the Action model in log.py.
I got worried as I coded that objects loaded from json files would
lose their original user and time properties, being replaced by
'created now by default user (since no one is logged in when we load
from db)'. I accidentally deleted the staging database...so had a
chance to test this theory when loading a dump of our production data
(now safely backed up). I was happily surprised to see the appropriate
creators and timings of events. Good work everyone!!
Also, if you are logged in as a user with is_staff set to true you'll
see a handy link to view all recent activity. This is a no holds
barred view of what's been happening on the site. Right now users
'danring', 'cwallardo' and 'diN0bot' on the production site have staff
capabilities. On the staging site
(http://staging.thoughtandmemory.org/Main), use 'lbear', with password
'bear', or create your own user in a json or xml fixture and load it
up.
<<<<< Let me know what your username(s) is(are) and I'll give you
staff super powers.
btw -- check out http://bilumi.org/Main/user/display/profile/19
and http://bilumi.org/Main/user/display/portfolio/19
l.
More information about the Dev-flock
mailing list