Commits

Leho Kraav committed 68b970d

Comments (0)

Files changed (2)

IUserInfoProvider-trac-ml-2005/IUserInfoProvider-trac-ml-2005.htm

+
+<html>
+<head>
+<title>Mailing List Archive: IUserInfoProvider (was: plans for component architecture)</title>
+<style type="text/css" media="screen">
+<!--
+ body { scrollbar-base-color: #404040; scrollbar-arrow-color: #00ff33; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px;}
+ a.menu:link,a.menu:visited { color:#ffffff; font-face:'Verdana,Helvetica,Arial'; }
+ .submit { background-color:#757674; font-family: Verdana, Arial, Helvetica, sans-serif; font-size:10px; color:white; font-weight:normal; }
+ .button { background-color:#ffffff; color: black; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; }
+ .header { color:#333366; font-face:'Verdana,Helvetica,Arial,sans-serif'; }
+ a:link    { color:#0000BB }
+ a:visited { color:#551A8B }
+ a:active  { color:#FF0000 }
+ h1 {font-size: 14px; padding:0;margin:0;}
+ -->
+</style>
+<script language="JavaScript">
+<!--
+function printPage () {
+ window.print();
+ self.close();
+}
+// -->
+</script>
+</head>
+<body>
+<p>
+<a href="http://www.gossamer-threads.com/scripts/gforum/"><img src="http://lists.gossamer-threads.com/images/GForum_logo.gif" border="0" align="right"></a>
+<font face="Verdana,Arial,Helvetica" size="3" color="#757674"><b>
+<a href="/lists/">Mailing List Archive</a>:
+<a href="/lists/trac/">Trac</a>:
+<a href="/lists/trac/users/">Users</a>
+<br>
+ IUserInfoProvider (was: plans for component architecture)
+</b></font>
+</p>
+<form>
+<script>
+<!--
+printPage();
+// -->
+</script>
+</form>
+<center>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5759"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=467;list=trac">&#109;&#97;&#110;&#117;&#46;&#98;&#108;&#111;&#116;&#32;&#97;&#116;&#32;&#103;&#109;&#97;&#105;&#108;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;4,&nbsp;2005,&nbsp;1:33&nbsp;PM
+<br><br>
+<br>Views: 1413
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ Hi, <br> <br>Is there any news about defining/implementing this new interface ? <br> <br>class IUserProvider(Interface): <br> <br>  def get_known_users(attrs=('name', 'email'), limit=None): <br>      pass <br> <br>  def get_user_attribute(user, attr): <br>      pass <br> <br>  def get_supported_attributes(): <br>      pass
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5760"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=45;list=trac">&#99;&#109;&#108;&#101;&#110;&#122;&#32;&#97;&#116;&#32;&#103;&#109;&#120;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;4,&nbsp;2005,&nbsp;3:49&nbsp;PM
+<br><br>
+<br>Views: 1402
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ Am 04.12.2005 um 20:32 schrieb Emmanuel Blot: <br><font color="#660066">&gt; Hi, <br>&gt; <br>&gt; Is there any news about defining/implementing this new interface ? <br>&gt; <br>&gt; class IUserProvider(Interface): <br>&gt; <br>&gt;   def get_known_users(attrs=('name', 'email'), limit=None): <br>&gt;       pass <br>&gt; <br>&gt;   def get_user_attribute(user, attr): <br>&gt;       pass <br>&gt; <br>&gt;   def get_supported_attributes(): <br>&gt;       pass <br></font> <br>Questions: <br> <br>1) How about `IUserDirectory` for the name? <br> <br>2) Where is this interface intended to be used? Which component   <br>should define the corresponding extension point? <br> <br>3) How is this related to the current user-settings-session-table story? <br> <br>Cheers, <br>Chris <br>-- <br>Christopher Lenz <br>   cmlenz at gmx.de <br> <a href="http://www.cmlenz.net/" rel="nofollow" target="_blank">http://www.cmlenz.net/</a>
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5764"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=467;list=trac">&#109;&#97;&#110;&#117;&#46;&#98;&#108;&#111;&#116;&#32;&#97;&#116;&#32;&#103;&#109;&#97;&#105;&#108;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;4,&nbsp;2005,&nbsp;4:40&nbsp;PM
+<br><br>
+<br>Views: 1417
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<font color="#660066">&gt; 1) How about `IUserDirectory` for the name? <br></font> <br>I'd like this one, yes, good suggestion. <br> <br><font color="#660066">&gt; 2) Where is this interface intended to be used? Which component <br>&gt; should define the corresponding extension point? <br></font> <br>I see several locations where the interface is used: <br> <br>1/ In Notification subsystem: it would superseed the <br>"NotifyEmail.email_map", I believe <br>2/ In Env: it would superseed the get_known_users <br>3/ In SettingsModule: it would allow to store/retrieve the user name <br>and the email address - I guess this means that the storage (and the <br>retrieval) of these parameters should not always been related to the <br>session, or from another perspective that the session manager should <br>implement this new interface ? <br> <br><font color="#660066">&gt; 3) How is this related to the current user-settings-session-table story? <br></font> <br>I don't really know how the session stuff works. <br> <br>Introducing this new interface might split the "session" table in two <br>new tables: <br> 1/ Cookie - unique user identifier relation <br> 2/ unique user identifier - user details relation <br>? <br> <br>Cheers, <br>Manu
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5765"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=552;list=trac">&#115;&#101;&#114;&#103;&#101;&#121;&#32;&#97;&#116;&#32;&#111;&#112;&#116;&#105;&#109;&#97;&#108;&#116;&#101;&#99;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;4,&nbsp;2005,&nbsp;5:32&nbsp;PM
+<br><br>
+<br>Views: 1405
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ Emmanuel Blot wrote: <br> <br><font color="#660066"></font><font color="#007777">&gt;&gt;3) How is this related to the current user-settings-session-table story? <br>&gt;&gt;     <br>&gt;&gt; <br></font><font color="#660066">&gt; <br>&gt;I don't really know how the session stuff works. <br>&gt; <br>&gt;Introducing this new interface might split the "session" table in two <br>&gt;new tables: <br>&gt; 1/ Cookie - unique user identifier relation <br>&gt; 2/ unique user identifier - user details relation <br>&gt;? <br>&gt;   <br>&gt; <br></font>This would be great! May I suggest that IUserDirectory is implemented by  <br>the code in charge of item #2 above so that such code and stuff that  <br>belong to it (UI that shows up when clicking on Settings, the table with  <br>user details, etc.) becomes just one of possible providers for this  <br>extension point? <br> <br>Sergey.
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5767"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=228;list=trac">&#109;&#97;&#110;&#117;&#122;&#104;&#97;&#105;&#32;&#97;&#116;&#32;&#103;&#109;&#97;&#105;&#108;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;5,&nbsp;2005,&nbsp;1:18&nbsp;AM
+<br><br>
+<br>Views: 1409
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<font color="#660066">&gt; 2) Where is this interface intended to be used? Which component <br>&gt; should define the corresponding extension point? <br></font> <br>I think the implementation should be a new UserDirectory object that <br>is instantiated as an env env variable (env.users for example, or <br>env.udir). I seem to remember that there was a way to specify that the <br>interface can only be implemented by one live object, that would be <br>useful here. <br> <br>Regards, <br> <br>Manuzhai
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5778"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=626;list=trac">&#109;&#101;&#32;&#97;&#116;&#32;&#98;&#114;&#117;&#99;&#101;&#99;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;5,&nbsp;2005,&nbsp;11:22&nbsp;AM
+<br><br>
+<br>Views: 1411
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ On 12/5/05, Manuzhai &lt;&#109;&#97;&#110;&#117;&#122;&#104;&#97;&#105; [at] &#103;&#109;&#97;&#105;&#108;&gt; wrote: <br><font color="#660066">&gt; I think the implementation should be a new UserDirectory object that <br>&gt; is instantiated as an env env variable (env.users for example, or <br>&gt; env.udir). I seem to remember that there was a way to specify that the <br>&gt; interface can only be implemented by one live object, that would be <br>&gt; useful here. <br></font> <br>I agree that env.users is a good place for the extension point. <br>However, I don't agree that there should be only one active <br>implementation at a time. That will be the typical configuration, but <br>some people may want to provide user information from multiple <br>sources; I see no reason to prevent that. <br> <br>--Bruce
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5779"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=191;list=trac">&#98;&#114;&#97;&#100;&#32;&#97;&#116;&#32;&#100;&#115;&#111;&#117;&#114;&#99;&#101;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;5,&nbsp;2005,&nbsp;11:27&nbsp;AM
+<br><br>
+<br>Views: 1403
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ Bruce Christensen wrote: <br><font color="#660066">&gt; On 12/5/05, Manuzhai &lt;&#109;&#97;&#110;&#117;&#122;&#104;&#97;&#105; [at] &#103;&#109;&#97;&#105;&#108;&gt; wrote: <br>&gt;  <br></font><font color="#007777">&gt;&gt;I think the implementation should be a new UserDirectory object that <br>&gt;&gt;is instantiated as an env env variable (env.users for example, or <br>&gt;&gt;env.udir). I seem to remember that there was a way to specify that the <br>&gt;&gt;interface can only be implemented by one live object, that would be <br>&gt;&gt;useful here. <br></font><font color="#660066">&gt;  <br>&gt;  <br>&gt; I agree that env.users is a good place for the extension point. <br>&gt; However, I don't agree that there should be only one active <br>&gt; implementation at a time. That will be the typical configuration, but <br>&gt; some people may want to provide user information from multiple <br>&gt; sources; I see no reason to prevent that. <br>&gt;  <br>&gt; --Bruce <br></font> <br>Anybody have any code or taken a shot at this?  I've been away and <br>haven't given it a whirl. <br> <br>BA
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5780"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=626;list=trac">&#109;&#101;&#32;&#97;&#116;&#32;&#98;&#114;&#117;&#99;&#101;&#99;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;5,&nbsp;2005,&nbsp;11:39&nbsp;AM
+<br><br>
+<br>Views: 1414
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ I don't think that anyone has started on it apart from the work we did <br>on fleshing out the API [1] when you initiated the discussion last <br>month. <br> <br>I'm planning to spend some time working on the gallery plugin [2] when <br>school gets out for break (16 December). I'd be happy to add this <br>refactoring to my todo list if no one else has begun by then. <br> <br>--Bruce <br> <br>[1] <a href="http://lists.edgewall.com/archive/trac/2005-November/005515.html" rel="nofollow" target="_blank">http://lists.edgewall.com/archive/trac/2005-November/005515.html</a> <br>[2] <a href="http://lists.edgewall.com/archive/trac/2005-November/005526.html" rel="nofollow" target="_blank">http://lists.edgewall.com/archive/trac/2005-November/005526.html</a> <br> <br>On 12/5/05, Brad Anderson &lt;&#98;&#114;&#97;&#100; [at] &#100;&#115;&#111;&#117;&#114;&#99;&#101;&gt; wrote: <br><font color="#660066">&gt; Anybody have any code or taken a shot at this?  I've been away and <br>&gt; haven't given it a whirl. <br></font>
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="5891"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=191;list=trac">&#98;&#114;&#97;&#100;&#32;&#97;&#116;&#32;&#100;&#115;&#111;&#117;&#114;&#99;&#101;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;9,&nbsp;2005,&nbsp;3:24&nbsp;PM
+<br><br>
+<br>Views: 1410
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ Bruce Christensen wrote: <br><font color="#660066">&gt; I don't think that anyone has started on it apart from the work we did <br>&gt; on fleshing out the API [1] when you initiated the discussion last <br>&gt; month. <br>&gt;  <br>&gt; I'm planning to spend some time working on the gallery plugin [2] when <br>&gt; school gets out for break (16 December). I'd be happy to add this <br>&gt; refactoring to my todo list if no one else has begun by then. <br>&gt;  <br>&gt; --Bruce <br>&gt;  <br>&gt; [1] <a href="http://lists.edgewall.com/archive/trac/2005-November/005515.html" rel="nofollow" target="_blank">http://lists.edgewall.com/archive/trac/2005-November/005515.html</a> <br>&gt; [2] <a href="http://lists.edgewall.com/archive/trac/2005-November/005526.html" rel="nofollow" target="_blank">http://lists.edgewall.com/archive/trac/2005-November/005526.html</a> <br>&gt;  <br>&gt; On 12/5/05, Brad Anderson &lt;&#98;&#114;&#97;&#100; [at] &#100;&#115;&#111;&#117;&#114;&#99;&#101;&gt; wrote: <br>&gt;  <br></font><font color="#007777">&gt;&gt;Anybody have any code or taken a shot at this?  I've been away and <br>&gt;&gt;haven't given it a whirl. <br></font><font color="#660066">&gt;  <br>&gt;  <br></font> <br>I attached a patch for this functionality to bug 2456 on Edgewall's server. <br> <br><a href="http://projects.edgewall.com/trac/ticket/2456" rel="nofollow" target="_blank">http://projects.edgewall.com/trac/ticket/2456</a> <br> <br>Let me know what you think.  Also, there are dev notes here: <br><a href="http://trac.dsource.org/projects/test/wiki/UserDirectory" rel="nofollow" target="_blank">http://trac.dsource.org/projects/test/wiki/UserDirectory</a> <br> <br>Cheers, <br>Brad
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<table border=0 cellspacing=0 cellpadding=4 width="100%">
+<tr>
+<td>
+<a name="13741"></a>
+<table border="0" cellspacing="0" cellpadding="4" width="100%" style="border: 1px solid black">
+<tr>
+<td valign="top" width="180">
+<img src="http://lists.gossamer-threads.com/images/clear_shim.gif" width="180" height="1"><br>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b><a href="/lists/engine?user=191;list=trac">&#98;&#114;&#97;&#100;&#32;&#97;&#116;&#32;&#100;&#115;&#111;&#117;&#114;&#99;&#101;</a></b>
+<br><br>
+<small>
+ Dec&nbsp;15,&nbsp;2005,&nbsp;9:29&nbsp;AM
+<br><br>
+<br>Views: 1403
+</small>
+</font>
+</td>
+<td valign="top" width="100%" style="border-left: 1px solid black">
+<table border=0 width="100%">
+<tr>
+<td valign="top" align="left" colspan="2">
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+<b>Re: IUserInfoProvider (was: plans for component architecture)</b>
+</font>
+</td>
+</tr>
+<tr><td colspan=2><hr noshade size=1></td></tr>
+</table>
+<font face="Verdana,Arial,Helvetica" size=2 color="black">
+ Brad Anderson wrote: <br><font color="#660066">&gt; I attached a patch for this functionality to bug 2456 on Edgewall's server. <br>&gt;  <br>&gt; <a href="http://projects.edgewall.com/trac/ticket/2456" rel="nofollow" target="_blank">http://projects.edgewall.com/trac/ticket/2456</a> <br>&gt;  <br>&gt; Let me know what you think.  Also, there are dev notes here: <br>&gt; <a href="http://trac.dsource.org/projects/test/wiki/UserDirectory" rel="nofollow" target="_blank">http://trac.dsource.org/projects/test/wiki/UserDirectory</a> <br>&gt;  <br></font> <br>Patch 2 is out there on bug #2456... <br> <br> * get_known_user_info() returns username,name,email like legacy Trac <br>code is expecting (heh heh, 'legacy' Trac code) <br> * get_known_users() returns only username, as its name suggests <br> * began using the 'limit' parameter, but could use some critique of my <br>Python code <br> * still nothing with attributes <br> <br>Enjoy, <br>Brad <br> <br>_______________________________________________ <br>Trac mailing list <br>&#84;&#114;&#97;&#99; [at] &#108;&#105;&#115;&#116;&#115; <br><a href="http://lists.edgewall.com/mailman/listinfo/trac" rel="nofollow" target="_blank">http://lists.edgewall.com/mailman/listinfo/trac</a>
+</font>
+</td>
+</tr>
+</table>
+</td>
+</tr>
+</table>
+<br>
+<br><br>
+</center>
+</body>
+</html>

IUserInfoProvider-trac-ml-2005/IUserInfoProvider-trac-ml-2005.txt

+<http://www.gossamer-threads.com/scripts/gforum/> *Mailing List Archive
+</lists/>: Trac </lists/trac/>: Users </lists/trac/users/>
+IUserInfoProvider (was: plans for component architecture) *
+
+
+
+*manu.blot at gmail </lists/engine?user=467;list=trac>*
+
+Dec 4, 2005, 1:33 PM
+
+
+Views: 1413 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+Hi,
+
+Is there any news about defining/implementing this new interface ?
+
+class IUserProvider(Interface):
+
+def get_known_users(attrs=('name', 'email'), limit=None):
+pass
+
+def get_user_attribute(user, attr):
+pass
+
+def get_supported_attributes():
+pass
+
+
+
+*cmlenz at gmx </lists/engine?user=45;list=trac>*
+
+Dec 4, 2005, 3:49 PM
+
+
+Views: 1402 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+Am 04.12.2005 um 20:32 schrieb Emmanuel Blot:
+> Hi,
+>
+> Is there any news about defining/implementing this new interface ?
+>
+> class IUserProvider(Interface):
+>
+> def get_known_users(attrs=('name', 'email'), limit=None):
+> pass
+>
+> def get_user_attribute(user, attr):
+> pass
+>
+> def get_supported_attributes():
+> pass
+
+Questions:
+
+1) How about `IUserDirectory` for the name?
+
+2) Where is this interface intended to be used? Which component
+should define the corresponding extension point?
+
+3) How is this related to the current user-settings-session-table story?
+
+Cheers,
+Chris
+-- 
+Christopher Lenz
+cmlenz at gmx.de
+http://www.cmlenz.net/
+
+
+
+*manu.blot at gmail </lists/engine?user=467;list=trac>*
+
+Dec 4, 2005, 4:40 PM
+
+
+Views: 1417 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+> 1) How about `IUserDirectory` for the name?
+
+I'd like this one, yes, good suggestion.
+
+> 2) Where is this interface intended to be used? Which component
+> should define the corresponding extension point?
+
+I see several locations where the interface is used:
+
+1/ In Notification subsystem: it would superseed the
+"NotifyEmail.email_map", I believe
+2/ In Env: it would superseed the get_known_users
+3/ In SettingsModule: it would allow to store/retrieve the user name
+and the email address - I guess this means that the storage (and the
+retrieval) of these parameters should not always been related to the
+session, or from another perspective that the session manager should
+implement this new interface ?
+
+> 3) How is this related to the current user-settings-session-table story?
+
+I don't really know how the session stuff works.
+
+Introducing this new interface might split the "session" table in two
+new tables:
+1/ Cookie - unique user identifier relation
+2/ unique user identifier - user details relation
+?
+
+Cheers,
+Manu
+
+
+
+*sergey at optimaltec </lists/engine?user=552;list=trac>*
+
+Dec 4, 2005, 5:32 PM
+
+
+Views: 1405 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+Emmanuel Blot wrote:
+
+>>3) How is this related to the current user-settings-session-table story?
+>>
+>>
+>
+>I don't really know how the session stuff works.
+>
+>Introducing this new interface might split the "session" table in two
+>new tables:
+> 1/ Cookie - unique user identifier relation
+> 2/ unique user identifier - user details relation
+>?
+>
+>
+This would be great! May I suggest that IUserDirectory is implemented by
+the code in charge of item #2 above so that such code and stuff that
+belong to it (UI that shows up when clicking on Settings, the table with
+user details, etc.) becomes just one of possible providers for this
+extension point?
+
+Sergey.
+
+
+
+*manuzhai at gmail </lists/engine?user=228;list=trac>*
+
+Dec 5, 2005, 1:18 AM
+
+
+Views: 1409 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+> 2) Where is this interface intended to be used? Which component
+> should define the corresponding extension point?
+
+I think the implementation should be a new UserDirectory object that
+is instantiated as an env env variable (env.users for example, or
+env.udir). I seem to remember that there was a way to specify that the
+interface can only be implemented by one live object, that would be
+useful here.
+
+Regards,
+
+Manuzhai
+
+
+
+*me at brucec </lists/engine?user=626;list=trac>*
+
+Dec 5, 2005, 11:22 AM
+
+
+Views: 1411 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+On 12/5/05, Manuzhai <manuzhai [at] gmail> wrote:
+> I think the implementation should be a new UserDirectory object that
+> is instantiated as an env env variable (env.users for example, or
+> env.udir). I seem to remember that there was a way to specify that the
+> interface can only be implemented by one live object, that would be
+> useful here.
+
+I agree that env.users is a good place for the extension point.
+However, I don't agree that there should be only one active
+implementation at a time. That will be the typical configuration, but
+some people may want to provide user information from multiple
+sources; I see no reason to prevent that.
+
+--Bruce
+
+
+
+*brad at dsource </lists/engine?user=191;list=trac>*
+
+Dec 5, 2005, 11:27 AM
+
+
+Views: 1403 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+Bruce Christensen wrote:
+> On 12/5/05, Manuzhai <manuzhai [at] gmail> wrote:
+>
+>>I think the implementation should be a new UserDirectory object that
+>>is instantiated as an env env variable (env.users for example, or
+>>env.udir). I seem to remember that there was a way to specify that the
+>>interface can only be implemented by one live object, that would be
+>>useful here.
+>
+>
+> I agree that env.users is a good place for the extension point.
+> However, I don't agree that there should be only one active
+> implementation at a time. That will be the typical configuration, but
+> some people may want to provide user information from multiple
+> sources; I see no reason to prevent that.
+>
+> --Bruce
+
+Anybody have any code or taken a shot at this? I've been away and
+haven't given it a whirl.
+
+BA
+
+
+
+*me at brucec </lists/engine?user=626;list=trac>*
+
+Dec 5, 2005, 11:39 AM
+
+
+Views: 1414 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+I don't think that anyone has started on it apart from the work we did
+on fleshing out the API [1] when you initiated the discussion last
+month.
+
+I'm planning to spend some time working on the gallery plugin [2] when
+school gets out for break (16 December). I'd be happy to add this
+refactoring to my todo list if no one else has begun by then.
+
+--Bruce
+
+[1] http://lists.edgewall.com/archive/trac/2005-November/005515.html
+[2] http://lists.edgewall.com/archive/trac/2005-November/005526.html
+
+On 12/5/05, Brad Anderson <brad [at] dsource> wrote:
+> Anybody have any code or taken a shot at this? I've been away and
+> haven't given it a whirl.
+
+
+
+*brad at dsource </lists/engine?user=191;list=trac>*
+
+Dec 9, 2005, 3:24 PM
+
+
+Views: 1410 	
+*IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+Bruce Christensen wrote:
+> I don't think that anyone has started on it apart from the work we did
+> on fleshing out the API [1] when you initiated the discussion last
+> month.
+>
+> I'm planning to spend some time working on the gallery plugin [2] when
+> school gets out for break (16 December). I'd be happy to add this
+> refactoring to my todo list if no one else has begun by then.
+>
+> --Bruce
+>
+> [1] http://lists.edgewall.com/archive/trac/2005-November/005515.html
+> [2] http://lists.edgewall.com/archive/trac/2005-November/005526.html
+>
+> On 12/5/05, Brad Anderson <brad [at] dsource> wrote:
+>
+>>Anybody have any code or taken a shot at this? I've been away and
+>>haven't given it a whirl.
+>
+>
+
+I attached a patch for this functionality to bug 2456 on Edgewall's server.
+
+http://projects.edgewall.com/trac/ticket/2456
+
+Let me know what you think. Also, there are dev notes here:
+http://trac.dsource.org/projects/test/wiki/UserDirectory
+
+Cheers,
+Brad
+
+
+
+*brad at dsource </lists/engine?user=191;list=trac>*
+
+Dec 15, 2005, 9:29 AM
+
+
+Views: 1403 	
+*Re: IUserInfoProvider (was: plans for component architecture)*
+------------------------------------------------------------------------
+
+Brad Anderson wrote:
+> I attached a patch for this functionality to bug 2456 on Edgewall's
+server.
+>
+> http://projects.edgewall.com/trac/ticket/2456
+>
+> Let me know what you think. Also, there are dev notes here:
+> http://trac.dsource.org/projects/test/wiki/UserDirectory
+>
+
+Patch 2 is out there on bug #2456...
+
+* get_known_user_info() returns username,name,email like legacy Trac
+code is expecting (heh heh, 'legacy' Trac code)
+* get_known_users() returns only username, as its name suggests
+* began using the 'limit' parameter, but could use some critique of my
+Python code
+* still nothing with attributes
+
+Enjoy,
+Brad
+
+_______________________________________________
+Trac mailing list
+Trac [at] lists
+http://lists.edgewall.com/mailman/listinfo/trac
+
+
+
+