Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    django-timeline 0.5

    Download button

    No screenshots available
    Downloads: 115  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chris Drackett | More programs
    Other/Proprietary Li... / FREE
    February 28th, 2012, 01:03 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    django-timeline description

    A Django timeline (activity stream) using redis

    django-timeline is a Django timeline app (activity stream) using Redis.There are two parts to using event streams. The first is to declare an Event, it looks like this:

    from django.contrib.auth.models import User

    from timeline.base import EventType
    from yourapp.library.models import Item


    class AddedToLibrary(EventType):
     slug = "added-to-library"
     context_shape = {
     "user": User,
     "item": Item,
     }
     queryable_by = ["user", "item"]


    And then there is querying, all querying is encapsulated in the timeline.base.Stream class. It is used like so:

    Stream(request.user)

    will return a Stream for all of the events for the request.user.pk User. It can take any number of positional arguments and it will combine their streams.

    It also takes a number of keyword arguments. event_type which will return only Events for a given slug. limit a number saying how many Events should be included, defaults to 20. cluster a boolean saying whether the data returned should be clustered, if it is than it yields a list of Events, rather than discrete Events.


    Product's homepage

    Requirements:

    · Python
    · Django

      


    TAGS:

    activity stream | Django timeline | Django | timeline | activity

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM