Re[2]: email notification and abstract methods

nemilya <nemilya-JGs/[email protected]> Sat, 15 Nov 2003 19:39:22 +0500
Newsgroups gmane.comp.web.syncato.general
Organization home
Message-ID <[email protected]>
>> Summary:
>> 1. notification to user on new post in blog
>> 2. notification to blog's author on comments to blog's record
>> 3. notification to user on new comments in specified blog's record

KS> I was actually only looking for number 2 on this list. That's very
KS> simple and easy to do.

How do you plan to do it?

In simplest way, in Comment.py
after
  self.weblog.addPost(content, 0)
add
  self.notificator.notifyAuthor(postID)
where
  'notificator' class for tasks of notifications.

Or add 'event/subscriber' architecture.
in this case:
  self.dispatcher.send( EventAddComment( postID ) )

and in dispatcher there is matrix of subscibed objects.

KS> You make a good point with the others, but I'm
KS> not sure that email is the way to handle that. I had been toying with
KS> using RSS for it.

Hm. I have email client but haven't any RSS clent.
May be become time for RSS-grabber?

Or wxPython GUI application, for working with blogs, and for reading
other?

or, consider next variant:

Machine1 (Machine3, 4, ...)
service: 'Blog' (some user's blog)
out: rss

Machine2
service: 'RSS to Email notification, i.e. subscription'
in: rss (access to Machine1, 3, 4, ...)
out: email notifications to user by rules defined by users

?

KS> It would be trivial to have a per post RSS feed for
KS> the comments as well as a global feed for all comments. Using RSS puts
KS> control over subscriptions into the hands of the user without having to
KS> write a management UI.

one problem, what software for working with rss exists?

KS> It also means we don't have to store email
KS> addresses. That may be preferable then having to deal with email. In
KS> reality we could just implement the RSS and not deal with email at all,
KS> but I think having notifications to the author is a good thing
KS> (translation: it's something I personally want to use). :-)

'author' you mean blog's author?

As I think only blog's author can post posts. Users only read posts,
and posts comments.

KS> So my feeling on this is RSS for user notifications and email on
KS> trackbacks and comments for authors only, at least for right now.

Please describe what is 'trackbacks'? (I'am novice in blog industry :))

KS> On Nov 14, 2003, at 11:19 PM, nemilya wrote:

>> About story of sending email notification
>>
>> I think that for email notification have to be list of subscribed
>> users. F.e. 'user-subscribe.xml', with 'id', 'email', 'activated')
>> also possible for activation logic additional xml storage
>> 'user-activation-code.xml' is needed:

KS> The way you would do this in syncato is to add each user element as a
KS> separate database entry. id would be assigned by the system and then
KS> you can specify indexes on the rest.

KS> Obviously this doesn't work as well for the file database as it does
KS> for DB XML.

ok, this is news for me.

But why is not allowed to add childs (user information entry) by DOM?
Or xmldb have self rules?

Ilya




-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl