Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Daniel Hilton
On 19 May 2010 14:51, Dexter  wrote:
> Hi thanks for your replies,
> I couldn't run the django page on a different server, because I only have
> one VPS running.
> But I understand there isn't a way to catch "events" on a database update.
> Grtz, Dexter


If you wrote a management command, you could add it to the crontab for
your VPS with it running every 30 mins or faster, that syncs any user
that isn't already in sympa.

You could have a boolean field on a profile of a user, and when a user
is successfully added to Sympa, the boolean is set to true.

That way you don't have to catch any events, just make sure your cron
job runs regularly to keep the two in sync.
Cheers,
Dan





>
> On Wed, May 19, 2010 at 3:43 PM, Daniel Hilton 
> wrote:
>>
>> On 19 May 2010 00:02, Dexter  wrote:
>> > Hi,
>> > I want to sync emailadresses in the django.contrib.auth User model, to a
>> > sympa mailinglist subscriberlist.
>> > I really don't have any experience with sympa. So I don't know how this
>> > process usually goes,
>> > but what I did found out, is that sympa documentation is lacking a bit.
>> > I find the concepts they use really vague, but I guess its powerful as
>> > well.
>> > Does anyone know how this is done?
>> > Grtz, Dexter
>>
>> You would have to write a management command that did the sync.
>>
>> Your command could then make use of the bulk load command as outlined
>> here:
>>
>> http://www.sympa.org/manual_6.1/database#importing_data_from_a_text_file
>>
>> All you would need is a management command that either wrapped around
>> that creating a stream of text which could then be piped in or that it
>> did that for you.
>>
>> Alternatively if you wanted to run the django instance on a different
>> machine (recommended++) you could make use of their SOAP server.
>>
>> I would recommend having a look at Suds, a really nice python package
>> for talking to soap services.
>>
>> HTH
>> Dan
>>
>>
>>
>>
>>
>>
>> >
>> > --
>> > You received this message because you are subscribed to the Google
>> > Groups
>> > "Django users" group.
>> > To post to this group, send email to django-us...@googlegroups.com.
>> > To unsubscribe from this group, send email to
>> > django-users+unsubscr...@googlegroups.com.
>> > For more options, visit this group at
>> > http://groups.google.com/group/django-users?hl=en.
>> >
>>
>>
>>
>> --
>> Dan Hilton
>> 
>> www.twitter.com/danhilton
>> www.DanHilton.co.uk
>> 
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-us...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Dan Hilton

www.twitter.com/danhilton
www.DanHilton.co.uk


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Dexter
Hi thanks for your replies,

I couldn't run the django page on a different server, because I only have
one VPS running.

But I understand there isn't a way to catch "events" on a database update.

Grtz, Dexter

On Wed, May 19, 2010 at 3:43 PM, Daniel Hilton wrote:

> On 19 May 2010 00:02, Dexter  wrote:
> > Hi,
> > I want to sync emailadresses in the django.contrib.auth User model, to a
> > sympa mailinglist subscriberlist.
> > I really don't have any experience with sympa. So I don't know how this
> > process usually goes,
> > but what I did found out, is that sympa documentation is lacking a bit.
> > I find the concepts they use really vague, but I guess its powerful as
> well.
> > Does anyone know how this is done?
> > Grtz, Dexter
>
> You would have to write a management command that did the sync.
>
> Your command could then make use of the bulk load command as outlined here:
>
> http://www.sympa.org/manual_6.1/database#importing_data_from_a_text_file
>
> All you would need is a management command that either wrapped around
> that creating a stream of text which could then be piped in or that it
> did that for you.
>
> Alternatively if you wanted to run the django instance on a different
> machine (recommended++) you could make use of their SOAP server.
>
> I would recommend having a look at Suds, a really nice python package
> for talking to soap services.
>
> HTH
> Dan
>
>
>
>
>
>
> >
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Django users" group.
> > To post to this group, send email to django-us...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > django-users+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> > http://groups.google.com/group/django-users?hl=en.
> >
>
>
>
> --
> Dan Hilton
> 
> www.twitter.com/danhilton
> www.DanHilton.co.uk
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Daniel Hilton
On 19 May 2010 00:02, Dexter  wrote:
> Hi,
> I want to sync emailadresses in the django.contrib.auth User model, to a
> sympa mailinglist subscriberlist.
> I really don't have any experience with sympa. So I don't know how this
> process usually goes,
> but what I did found out, is that sympa documentation is lacking a bit.
> I find the concepts they use really vague, but I guess its powerful as well.
> Does anyone know how this is done?
> Grtz, Dexter

You would have to write a management command that did the sync.

Your command could then make use of the bulk load command as outlined here:

http://www.sympa.org/manual_6.1/database#importing_data_from_a_text_file

All you would need is a management command that either wrapped around
that creating a stream of text which could then be piped in or that it
did that for you.

Alternatively if you wanted to run the django instance on a different
machine (recommended++) you could make use of their SOAP server.

I would recommend having a look at Suds, a really nice python package
for talking to soap services.

HTH
Dan






>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Dan Hilton

www.twitter.com/danhilton
www.DanHilton.co.uk


-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Tom Evans
On Wed, May 19, 2010 at 12:44 PM, Dexter  wrote:
> Hi,
> I'm just trying to run a mailinglist now, but when I set alias_manager in
> sympa.conf, I get the following error:
> unknown field: alias_manager in sympa.conf
> How should I set my alias_manager?
> Grtz, Dexter

sympa has nothing to do with django, you would be better asking this
message on the sympa mailing list.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Sync user objects with sympa mailinglist

2010-05-19 Thread Dexter
Hi,

I'm just trying to run a mailinglist now, but when I set alias_manager in
sympa.conf, I get the following error:

unknown field: alias_manager in sympa.conf

How should I set my alias_manager?

Grtz, Dexter

On Wed, May 19, 2010 at 1:02 AM, Dexter  wrote:

> Hi,
>
> I want to sync emailadresses in the django.contrib.auth User model, to a
> sympa mailinglist subscriberlist.
> I really don't have any experience with sympa. So I don't know how this
> process usually goes,
> but what I did found out, is that sympa documentation is lacking a bit.
> I find the concepts they use really vague, but I guess its powerful as
> well.
>
> Does anyone know how this is done?
>
> Grtz, Dexter
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.