[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Nuxeo-checkins] CVS: NuxForum Article.py,1.5,1.6 Comment.py,1.2,1.3 For
From: |
Juan David Ibáñez Palomar |
Subject: |
[Nuxeo-checkins] CVS: NuxForum Article.py,1.5,1.6 Comment.py,1.2,1.3 Forum.py,1.7,1.8 Posting.py,1.5,1.6 |
Date: |
Wed, 15 May 2002 12:41:45 -0400 |
Update of /cvsroot/nuxeo/NuxForum
In directory subversions:/tmp/cvs-serv29223
Modified Files:
Article.py Comment.py Forum.py Posting.py
Log Message:
Added username to postings.
Index: Article.py
===================================================================
RCS file: /cvsroot/nuxeo/NuxForum/Article.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Article.py 7 May 2002 17:01:25 -0000 1.5
--- Article.py 15 May 2002 16:41:42 -0000 1.6
***************
*** 42,54 ****
_properties = ({'id': 'title', 'type': 'string'},
{'id': 'subject', 'type': 'string'},
{'id': 'body', 'type': 'text'})
! def __init__(self, id, title, subject, body):
self.id = id
! self.subject = subject
self.title = title
self.body = body
--- 42,60 ----
_properties = ({'id': 'title', 'type': 'string'},
+ {'id': 'username', 'type': 'string'},
{'id': 'subject', 'type': 'string'},
{'id': 'body', 'type': 'text'})
! # Provide default, for backwards compatibility
! username = ''
!
!
! def __init__(self, id, username, title, subject, body):
self.id = id
! self.username = username
self.title = title
+ self.subject = subject
self.body = body
Index: Comment.py
===================================================================
RCS file: /cvsroot/nuxeo/NuxForum/Comment.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** Comment.py 15 Mar 2002 14:54:43 -0000 1.2
--- Comment.py 15 May 2002 16:41:42 -0000 1.3
***************
*** 51,60 ****
_properties = ({'id': 'title', 'type': 'string'},
{'id': 'body', 'type': 'text'})
! def __init__(self, id, title, body):
self.id = id
self.title = title
self.body = body
--- 51,66 ----
_properties = ({'id': 'title', 'type': 'string'},
+ {'id': 'username', 'type': 'string'},
{'id': 'body', 'type': 'text'})
! # Provide default, for backwards compatibility
! username = ''
!
!
! def __init__(self, id, username, title, body):
self.id = id
+ self.username = username
self.title = title
self.body = body
Index: Forum.py
===================================================================
RCS file: /cvsroot/nuxeo/NuxForum/Forum.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** Forum.py 14 May 2002 16:21:55 -0000 1.7
--- Forum.py 15 May 2002 16:41:42 -0000 1.8
***************
*** 82,86 ****
security.declareProtected('Add forum articles', 'add_article')
! def add_article(self, title, subject, body, REQUEST=None, RESPONSE=None):
""" """
id = self.get_id()
--- 82,87 ----
security.declareProtected('Add forum articles', 'add_article')
! def add_article(self, username, title, subject, body,
! REQUEST=None, RESPONSE=None):
""" """
id = self.get_id()
***************
*** 88,92 ****
# Add the new article
articles = self.articles
! articles._setObject(id, Article(id, title, subject, body))
# Workflow
--- 89,93 ----
# Add the new article
articles = self.articles
! articles._setObject(id, Article(id, username, title, subject, body))
# Workflow
Index: Posting.py
===================================================================
RCS file: /cvsroot/nuxeo/NuxForum/Posting.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** Posting.py 14 May 2002 16:33:59 -0000 1.5
--- Posting.py 15 May 2002 16:41:42 -0000 1.6
***************
*** 56,60 ****
# User name
! data['name'] = self.owner_info()['id']
# Date and time
--- 56,60 ----
# User name
! data['name'] = self.username or self.owner_info()['id']
# Date and time
***************
*** 101,105 ****
security.declareProtected('Add forum comments', 'add_comment')
! def add_comment(self, title, body, REQUEST=None, RESPONSE=None):
""" """
from Comment import Comment
--- 101,105 ----
security.declareProtected('Add forum comments', 'add_comment')
! def add_comment(self, username, title, body, REQUEST=None, RESPONSE=None):
""" """
from Comment import Comment
***************
*** 107,111 ****
id = self.get_id()
! self._setObject(id, Comment(id, title, body))
# Workflow
--- 107,111 ----
id = self.get_id()
! self._setObject(id, Comment(id, username, title, body))
# Workflow
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Nuxeo-checkins] CVS: NuxForum Article.py,1.5,1.6 Comment.py,1.2,1.3 Forum.py,1.7,1.8 Posting.py,1.5,1.6,
Juan David Ibáñez Palomar <=
- Prev by Date:
[Nuxeo-checkins] CVS: NuxForum/ui Forum_index.zpt,1.3,1.4 Posting_actions.zpt,1.4,1.5
- Next by Date:
[Nuxeo-checkins] CVS: NuxForum/ui Article_add.zpt,1.1.1.1,1.2 Comment_add.zpt,1.1.1.1,1.2
- Previous by thread:
[Nuxeo-checkins] CVS: NuxForum/ui Forum_index.zpt,1.3,1.4 Posting_actions.zpt,1.4,1.5
- Next by thread:
[Nuxeo-checkins] CVS: NuxForum/ui Article_add.zpt,1.1.1.1,1.2 Comment_add.zpt,1.1.1.1,1.2
- Index(es):