Changeset 1919 for trunk/BlogPost.py


Ignore:
Timestamp:
08/08/07 01:48:48 (12 years ago)
Author:
jukka
Message:

Refactored groups to not use portal_groups. Things should be faster and users from weird sources shouldn't cause so much problems. Not much tested yet, but archetype update and quickinstaller reinstall works fine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BlogPost.py

    r1907 r1919  
    3232from permissions import ModerateContent, MODIFY_CONTENT 
    3333from DateTime import DateTime 
    34  
    35 from GroupBlog import monthNames 
    3634 
    3735# Same thing as with MemberFolder but easier: MemberBlogs contain the values of groups itself in indexable storage. 
     
    205203        return 'images/default_member.png' 
    206204 
    207     def myDateToArchive(self): 
    208         # Get year and month 
    209         myresults = [] 
    210         # This function returns array like ['2006', 'October'] for the the current element. 
    211         myCdate = self.CreationDate()[:7] 
    212         myresults = (myCdate.split("-")) 
    213         item = myresults[1] 
    214         if item in monthNames.keys(): 
    215             myresults[1] = monthNames[item] 
    216  
    217         return myresults 
    218  
    219205    def getLatestEditDate(self): 
    220206        """ Returns creation date as blog posts do not have History """ 
Note: See TracChangeset for help on using the changeset viewer.