<?xml version="1.0"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Forum posts to 'Archive'</title>
		<link>http://www.silverstripe.org/archive/rss</link>
		<atom:link href="http://www.silverstripe.org/archive/rss" rel="self" type="application/rss+xml" />
		<description></description>

		
		<item>
			<title>Re: Is there any way to implement a validator for DataObjectDecorators?</title>
			<link>http://www.silverstripe.org/archive/show/3532?start=0#post4444</link>
			<description>&lt;p&gt;OK, I fixed that problem in r40925. It's not the best (scalable) solution but it works for the moment and Hayden said that I should not change the core's validation behavior at the moment.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Is there any way to implement a validator for DataObjectDecorators? &lt;a href=&quot;http://www.silverstripe.org/archive/show/3532?start=0#post4444&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3532?start=0#post4444&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 28 Aug 2007 01:05:30 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3532?start=0#post4444</guid>
		</item>
		
		<item>
			<title>Re: Is there any way to implement a validator for DataObjectDecorators?</title>
			<link>http://www.silverstripe.org/archive/show/3532?start=0#post4265</link>
			<description>&lt;p&gt;I talked about that yesterday with Hayden.. he is searching a solution.&lt;/p&gt;&lt;p&gt;Since I didn't get any answer and the GSoC is over now, I assigned the ticket to Hayden (my mentor).&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Is there any way to implement a validator for DataObjectDecorators? &lt;a href=&quot;http://www.silverstripe.org/archive/show/3532?start=0#post4265&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3532?start=0#post4265&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 21 Aug 2007 21:46:25 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3532?start=0#post4265</guid>
		</item>
		
		<item>
			<title>Re: Is there any way to implement a validator for DataObjectDecorators?</title>
			<link>http://www.silverstripe.org/archive/show/3532?start=0#post3556</link>
			<description>&lt;p&gt;Thanks for you reply Lakshan!&lt;/p&gt;&lt;p&gt;&amp;gt; I saw in ForumRole.php, implemented a ForumMember validator extending&lt;br /&gt;&amp;gt; Member_Validator and overriding the getValidator function inside ForumRole. &lt;br /&gt;&amp;gt;&lt;br /&gt;&amp;gt; Similarly can't you extend the Member_Validator and add php() function with necessary&lt;br /&gt;&amp;gt; validation which is to executed server-side ? &lt;/p&gt;&lt;p&gt;That was also my first thought and so I tried that already but unfortunately that is code that isn't executed at all.&lt;br /&gt;It doesn't do anything in the ForumRole so that code is also buggy..&lt;/p&gt;&lt;p&gt;I forgot to post a bug report about that to the bugs forum (will do that now).&lt;/p&gt;&lt;p&gt;&lt;strong&gt;Edit:&lt;/strong&gt; I &lt;a href=&quot;http://www.silverstripe.com/bugs/flat/3561&quot;&gt;posted it to the bugs forum&lt;/a&gt; and created a &lt;a href=&quot;http://open.silverstripe.com/ticket/1401&quot;&gt;ticket&lt;/a&gt;.&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Is there any way to implement a validator for DataObjectDecorators? &lt;a href=&quot;http://www.silverstripe.org/archive/show/3532?start=0#post3556&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3532?start=0#post3556&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 07 Aug 2007 01:56:36 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3532?start=0#post3556</guid>
		</item>
		
		<item>
			<title>Re: Is there any way to implement a validator for DataObjectDecorators?</title>
			<link>http://www.silverstripe.org/archive/show/3532?start=0#post3549</link>
			<description>&lt;p&gt;Not sure whether you're looking for a similar solution but thought this would shed some light ;)&lt;/p&gt;&lt;p&gt;I saw in &lt;a href=&quot;http://open.silverstripe.com/browser/modules/forum/trunk/code/ForumRole.php&amp;quot;&quot;&gt; ForumRole.php&lt;/a&gt;, implemented a ForumMember validator extending Member_Validator and overriding the getValidator function inside ForumRole. &lt;/p&gt;&lt;p&gt;Similarly can't you extend the Member_Validator and add php() function with necessary validation which is to executed server-side ?&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Is there any way to implement a validator for DataObjectDecorators? &lt;a href=&quot;http://www.silverstripe.org/archive/show/3532?start=0#post3549&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/reply/3532?start=0#post3549&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Tue, 07 Aug 2007 01:16:21 +1200</pubDate>
			<dc:creator>laktek</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3532?start=0#post3549</guid>
		</item>
		
		<item>
			<title>Is there any way to implement a validator for DataObjectDecorators?</title>
			<link>http://www.silverstripe.org/archive/show/3532#post3532</link>
			<description>&lt;p&gt;Since no one was answering to &lt;a href=&quot;http://www.silverstripe.com/google-summer-of-code-forum/flat/2572&quot;&gt;my post in the GSoC forum&lt;/a&gt; I'll try it here  &lt;img src='http://www.silverstripe.org/sapphire/images/smilies/smile.gif'&gt; &lt;/p&gt;&lt;p&gt;For OpenID support I implemented a DataObjectDecorator, but I couldn't figure out how I can add a custom validator to it. I need to ensure that the entered OpenID is unique so that only one user account is linked to a specific OpenID. Is that somehow possible? &lt;/p&gt;&lt;p&gt;At the moment I prevent duplicate OpenIDs by using a unique-index, but no error message will be shown. &lt;/p&gt;&lt;p&gt;Is there any way to implement a validator for DataObjectDecorators or handle such database errors (&quot;Duplicate entry 'http://markus-lanthaler.myopenid.com/' for key 2&quot;)?&lt;/p&gt;&lt;p&gt;This would help me a lot to complete OpenID support!&lt;/p&gt;&lt;br&gt;&lt;br&gt;Posted to: Is there any way to implement a validator for DataObjectDecorators? &lt;a href=&quot;http://www.silverstripe.org/archive/show/3532#post3532&quot;&gt;Show Thread&lt;/a&gt; | &lt;a href=&quot;http://www.silverstripe.org/archive/show/3532#post3532&quot;&gt;Post Reply&lt;/a&gt;</description>
			<pubDate>Mon, 06 Aug 2007 20:28:49 +1200</pubDate>
			<dc:creator>Markus</dc:creator>
			<guid>http://www.silverstripe.org/archive/show/3532#post3532</guid>
		</item>
		

	</channel>
</rss>