Urs Lang | 1 Dec 23:45 2008
Picon

ezcWebdavSimpleBackend class

Hi,

Is there a source code example for the use of the ezcWebdavSimpleBackend class?

I get also this error message "Class 'ezcWebdavDigestAuthenticatorBase' not found". Which file contain this class?


Best regards,
Urs

<div><p>Hi,<br><br>Is there a source code example for the use of the ezcWebdavSimpleBackend class?<br><br>I get also this error message "Class 'ezcWebdavDigestAuthenticatorBase' not found". Which file contain this class? <br><br><br>Best regards,<br>Urs<br></p></div>
Tobias Schlitt | 2 Dec 00:02 2008
Picon

Re: ezcWebdavSimpleBackend class

Hi Urs,

On 12/01/2008 11:45 PM Urs Lang wrote:

> Is there a source code example for the use of the ezcWebdavSimpleBackend
> class?

The ezcWebdavFileBackend and ezcWebdavMemoryBackend (which is private,
but still you can look at it in the source) both extend
ezcWebdavSimpleBackend.

> I get also this error message "Class 'ezcWebdavDigestAuthenticatorBase' not
> found". Which file contain this class?

The class resides in Webdav/src/auth/digest_base.php. Which version of
ezc do you use, on what operating system and which installation method
did you choose? Maybe you are running Windows and forgot to re-run the
ezc setup script after updating from SVN?

HTH,
Toby
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

ts <at> ez.no | eZ Systems AS | ez.no
--

-- 
Components mailing list
Components <at> lists.ez.no
http://lists.ez.no/mailman/listinfo/components
Derick Rethans | 2 Dec 11:05 2008
Picon

eZ Components 2008.2beta1 released

Hello!

The eZ Components team just released the first beta version of the new 
2008.2 release. This beta version implements the issues that were found 
during our review process as well as some other major improvements. The 
MvcTools component received quite a bit of attention from both internal 
and external reviews, and therefore has quite a few changes. A new 
version of the Webdav component including support for locking and 
authentication has been bundled as well as beta version. Besides this, 
there is a good deal of other minor changes that you can find below in 
the ChangeLog.

The ChangeLog and other information can be found in the official release 
announcement: http://ezcomponents.org/resources/news/news-2008-12-01

--

-- 
Derick Rethans
eZ components Product Manager
eZ systems | http://ez.no
Thomas Koch | 9 Dec 16:25 2008
X-Face
Picon

on authentication

Hi,

I'm just putting ezcAuthentication inside a new app and find some
thinks, that just don't feel right. Since neither arbit nor TheWire use
Authentication as indicated in the tutorial[1], I believe that there may
be some thinks broken by design(tm):

* ezcAuthenticationSession makes sense only as a singleton, but doesn't
  have a getInstance method.

* ezcAuthenticationSession::isValid() needs to be called with
  $credentials, but that doesn't make sense, since I don't have
  credentials if I only want to check, whether a user is logged in.

* I can only set an instance of ezcAuthenticationSession in
  ezcAuthentication->session, but not my own session implementation.[2]

Is it me, or is Authentication a bid weird?

[1] arbit has it's own session class and TheWire directly accesses
    $_SESSION['ezcAuth_id'].
[2] Yes. I could extend.

Best regards,
--

-- 
Thomas Koch, Software Developer
http://www.koch.ro

Young Media Concepts GmbH
Sonnenstr. 4
CH-8280 Kreuzlingen
Switzerland

Tel    +41 (0)71 / 508 24 86
Fax    +41 (0)71 / 560 53 89
Mobile +49 (0)170 / 753 89 16
Web    www.ymc.ch

Alexandre, Lydia | 9 Dec 17:35 2008
Picon

[Components-Workflow] compare input var

Hi,
 
I would like to know how to compare 2 input variables of a workflow ?
 
I have 2 var input :

$d1 = new ezcWorkflowNodeInput ( array ('d1' => new ezcWorkflowConditionIsInteger ( ) ) );

$now = new ezcWorkflowNodeInput ( array ('now' => new ezcWorkflowConditionIsInteger ( ) ) );

Conditions :

$c1 = new ezcWorkflowConditionVariable ( 'd1' ,

    new ezcWorkflowConditionIsEqualOrLessThan ( $now )

);

It's not ok with $now, I tried this :

$c1 = new ezcWorkflowConditionVariable ( 'd1' , 'now',

    new ezcWorkflowConditionIsEqualOrLessThan () );

but it doesn't work.

 

Thanks,

 

Lydia

~maKyo

<div>
<div><span class="071112716-09122008">Hi,</span></div>
<div>
<span class="071112716-09122008"></span>&nbsp;</div>
<div><span class="071112716-09122008">I 
would like to know how to compare 2 input variables of a workflow 
?</span></div>
<div>
<span class="071112716-09122008"></span>&nbsp;</div>
<div><span class="071112716-09122008">I 
have 2 var input :</span></div>
<div><span class="071112716-09122008"><span lang="FR">
<p>$d<span class="071112716-09122008">1</span> = new 
ezcWorkflowNodeInput ( array ('d<span class="071112716-09122008">1</span>' =&gt; 
new ezcWorkflowConditionIsInteger ( ) ) );</p>
<p>$now = new ezcWorkflowNodeInput ( array ('now' =&gt; 
new ezcWorkflowConditionIsInteger ( ) ) );</p>
<p><span class="071112716-09122008">Conditions :</span></p>
<span class="071112716-09122008"><span lang="FR">
<p>$c<span class="071112716-09122008">1</span> = new 
ezcWorkflowConditionVariable ( 'd<span class="071112716-09122008">1</span>' , 
</p>
<p><span class="071112716-09122008">&nbsp;&nbsp;&nbsp; </span>new 
ezcWorkflowConditionIsEqualOrLessThan (&nbsp;<span class="071112716-09122008">$now</span> )</p>
<p>);</p>
<p><span class="071112716-09122008">It's 
not ok with $now, I tried this : </span></p>
<p><span class="071112716-09122008"></span><span class="071112716-09122008"><span lang="FR">$c1 = new ezcWorkflowConditionVariable ( 
'd<span class="071112716-09122008">1</span>' ,&nbsp;<span class="071112716-09122008">'now', </span></span></span></p>
<p><span class="071112716-09122008"><span lang="FR"><span class="071112716-09122008"></span>&nbsp;&nbsp;&nbsp; new 
ezcWorkflowConditionIsEqualOrLessThan ()<span class="071112716-09122008"> 
</span>);</span></span></p>
<p><span class="071112716-09122008">but it 
doesn't work.</span></p>
<p><span class="071112716-09122008"></span>&nbsp;</p>
<p><span class="071112716-09122008">Thanks,</span></p>
<p><span class="071112716-09122008"></span>&nbsp;</p>
<p><span class="071112716-09122008">Lydia 
</span></p>
<p><span class="071112716-09122008">~maKyo</span></p></span></span></span></span></div>
</div>
Alexandre, Lydia | 10 Dec 14:58 2008
Picon

Re: [Components-Workflow] compare input var

Ok, I found it.  it is with a 's' -> ezcWorkflowConditionVariables

$c1 = new ezcWorkflowConditionVariables ( 'd1' , 'now',

    new ezcWorkflowConditionIsEqualOrLessThan () );

...
Lydia


De : components-bounces-p125XxirBjMXWF+eFR7m5Q@public.gmane.org [mailto:components-bounces-p125XxirBjMXWF+eFR7m5Q@public.gmane.org] De la part de Alexandre, Lydia
Envoyé : mardi 9 décembre 2008 17:35
À : components-p125XxirBjMXWF+eFR7m5Q@public.gmane.org
Objet : [Components] [Components-Workflow] compare input var

Hi,
 
I would like to know how to compare 2 input variables of a workflow ?
 
I have 2 var input :

$d1 = new ezcWorkflowNodeInput ( array ('d1' => new ezcWorkflowConditionIsInteger ( ) ) );

$now = new ezcWorkflowNodeInput ( array ('now' => new ezcWorkflowConditionIsInteger ( ) ) );

Conditions :

$c1 = new ezcWorkflowConditionVariable ( 'd1' ,

    new ezcWorkflowConditionIsEqualOrLessThan ( $now )

);

It's not ok with $now, I tried this :

$c1 = new ezcWorkflowConditionVariable ( 'd1' , 'now',

    new ezcWorkflowConditionIsEqualOrLessThan () );

but it doesn't work.

 

Thanks,

 

Lydia

~maKyo

<div>
<div dir="ltr" align="left"><span class="194344913-10122008">Ok, I found it.&nbsp; it is with a 's' -&gt; ezcWorkflowConditionVariables</span></div>
<p><span class="071112716-09122008"></span><span class="071112716-09122008"><span lang="FR">$c1 = new 
ezcWorkflowConditionVariable<span class="194344913-10122008">s</span> ( 'd<span class="071112716-09122008">1</span>' ,&nbsp;<span class="071112716-09122008">'now', 
</span></span></span></p>
<p><span class="071112716-09122008"><span lang="FR"><span class="071112716-09122008"></span>&nbsp;&nbsp;&nbsp; new 
ezcWorkflowConditionIsEqualOrLessThan ()<span class="071112716-09122008"> 
</span>);</span></span></p>
<div><span class="071112716-09122008"><span lang="FR"><span class="194344913-10122008">...</span></span></span></div>
<div><span class="071112716-09122008"><span lang="FR"><span class="194344913-10122008">Lydia</span></span></span></div>
<p><br></p>
<div class="OutlookMessageHeader" lang="fr" dir="ltr" align="left">
De&nbsp;: components-bounces@... 
[mailto:components-bounces@...] De la part de Alexandre, 
Lydia<br>Envoy&eacute;&nbsp;: mardi 9 d&eacute;cembre 2008 17:35<br>&Agrave;&nbsp;: 
components@...<br>Objet&nbsp;: [Components] [Components-Workflow] 
compare input var<br><br>
</div>
<div></div>
<div><span class="071112716-09122008">Hi,</span></div>
<div>
<span class="071112716-09122008"></span>&nbsp;</div>
<div><span class="071112716-09122008">I 
would like to know how to compare 2 input variables of a workflow 
?</span></div>
<div>
<span class="071112716-09122008"></span>&nbsp;</div>
<div><span class="071112716-09122008">I 
have 2 var input :</span></div>
<div><span class="071112716-09122008"><span lang="FR">
<p>$d<span class="071112716-09122008">1</span> = new 
ezcWorkflowNodeInput ( array ('d<span class="071112716-09122008">1</span>' =&gt; 
new ezcWorkflowConditionIsInteger ( ) ) );</p>
<p>$now = new ezcWorkflowNodeInput ( array ('now' =&gt; 
new ezcWorkflowConditionIsInteger ( ) ) );</p>
<p><span class="071112716-09122008">Conditions :</span></p>
<span class="071112716-09122008"><span lang="FR">
<p>$c<span class="071112716-09122008">1</span> = new 
ezcWorkflowConditionVariable ( 'd<span class="071112716-09122008">1</span>' , 
</p>
<p><span class="071112716-09122008">&nbsp;&nbsp;&nbsp; </span>new 
ezcWorkflowConditionIsEqualOrLessThan (&nbsp;<span class="071112716-09122008">$now</span> )</p>
<p>);</p>
<p><span class="071112716-09122008">It's 
not ok with $now, I tried this : </span></p>
<p><span class="071112716-09122008"></span><span class="071112716-09122008"><span lang="FR">$c1 = new ezcWorkflowConditionVariable ( 
'd<span class="071112716-09122008">1</span>' ,&nbsp;<span class="071112716-09122008">'now', </span></span></span></p>
<p><span class="071112716-09122008"><span lang="FR"><span class="071112716-09122008"></span>&nbsp;&nbsp;&nbsp; new 
ezcWorkflowConditionIsEqualOrLessThan ()<span class="071112716-09122008"> 
</span>);</span></span></p>
<p><span class="071112716-09122008">but it 
doesn't work.</span></p>
<p><span class="071112716-09122008"></span>&nbsp;</p>
<p><span class="071112716-09122008">Thanks,</span></p>
<p><span class="071112716-09122008"></span>&nbsp;</p>
<p><span class="071112716-09122008">Lydia 
</span></p>
<p><span class="071112716-09122008">~maKyo</span></p></span></span></span></span></div>
</div>
Piotrek Karas | 12 Dec 23:50 2008
Picon

[userinput] definition: required vs. optional

Hi,

Just looking at the UserInput component for the first time, I completed 
the tutorial sample code, seems to run fine, but I seem to have found 
some inconsistencies:

With definition:

$definition = array(
     'firstName' => new ezcInputFormDefinitionElement( 
ezcInputFormDefinitionElement::REQUIRED, 'string' ),
     'lastName' => new ezcInputFormDefinitionElement( 
ezcInputFormDefinitionElement::REQUIRED, 'string' ),
     'age' => new ezcInputFormDefinitionElement( 
ezcInputFormDefinitionElement::REQUIRED, 'int', array( 'min_range' => 1, 
'max_range' => 99 ), FILTER_FLAG_ALLOW_HEX ),
     'email' => new ezcInputFormDefinitionElement( 
ezcInputFormDefinitionElement::REQUIRED, 'validate_email' ),
);

If I submit an empty form, "age" and "email" get [invalid] warning, and 
"first name" and "last name" don't.

1) Since first and last name are REQUIRED, why is an empty string 
interpreted as valid?

2) When I change REQUIRED to ezcInputFormDefinitionElement::OPTIONAL, 
nothing seems to change. So how do I make an e-mail field optional, as 
in "validate the field if some value provided"? It doesn't seem to have 
any extra options to control that...

Thanks,

Piotrek

Gaetano Giunta | 14 Dec 17:33 2008
Face
Picon

Re: eZ Components 2008.2beta1 released

Congrats for the release.
While we are talking about improvements to the mvc component, I would 
like to ask if anybody has tried / is trying to use it to reimplement 
the existing ezp controller.
That would be an excellent demo to showcase in Barcelona (giving ezp 
developers a good time), and a good test of the current mvc feature set 
/ ease of use.
Of course the final goal would be to have a better controller than what 
we have now, as in
- faster
- slimmer
- more flexible
but for the first iteration it would be good if we could keep it running 
with the current
- permission controls
- virtual uri system
- module/view system, including internal and external redirections

Any volunteers?

bye
Gaetano
> Hello!
>
> The eZ Components team just released the first beta version of the new 
> 2008.2 release. This beta version implements the issues that were found 
> during our review process as well as some other major improvements. The 
> MvcTools component received quite a bit of attention from both internal 
> and external reviews, and therefore has quite a few changes. A new 
> version of the Webdav component including support for locking and 
> authentication has been bundled as well as beta version. Besides this, 
> there is a good deal of other minor changes that you can find below in 
> the ChangeLog.
>
> The ChangeLog and other information can be found in the official release 
> announcement: http://ezcomponents.org/resources/news/news-2008-12-01
>
>   

Kevin Waterson | 15 Dec 10:02 2008

New Component Proposal

My proposal is for an ezcForm component.
The ezcForm component would provide an interface to the creation
of HTML form objects which may be rendered for use with templates.

Each form element would be an object which whose properties would
define how the form would be rendered.
eg:

<?php
  $form = new ezcForm;

  $form->setMethod('post');

  $form->setId('my_form_id');

  $form->setAction($url);

  $select = new ezcFormSelect;
  $select->options($array)
         ->setLabel('My Select')
         ->setId('my_select_id');

  $submit = new ezcFormSubmit;
  $submit->setValue('Click Me')
         ->setScript('onclick="do_some_js"');

  $form->render(array($select, $submit));
?>

Also proposed, is the ability to attach validators directly to
to each object.

<?php
  $txt = new ezcFormText;
  $text->setName="email")
       ->setId("email")
       ->setLabel('Enter Email')
       ->setRequired(true)
       ->setValidator(ezcFormValidateEmail);
?>

In this instance, ezcFormValidateEmail could be a call back to
new ezcInputFormDefinitionElement(
  ezcInputFormDefinitionElement::REQUIRED, 'validate_email'
  )

An ezcForm component will provide a comprehensive suite of
easy to use form objects with an easy to use API. Forms will
initially be defined insite a definition list, but other
markup should not be hard to build in.

Larson was working on something similar at some time in 
experimental, but after a quick chat on IRC he described his
as overly complex.

Any thoughts, ideas, objections, abuse is welcome.

Kind regards
Kevin

  
Alexandru Stanoi | 15 Dec 10:27 2008
Picon

Re: New Component Proposal

Kevin Waterson wrote:
> My proposal is for an ezcForm component.
> The ezcForm component would provide an interface to the creation
> of HTML form objects which may be rendered for use with templates.

Does it need to depend on the Template component?

> Each form element would be an object which whose properties would
> define how the form would be rendered.
> eg:
> 
> <?php
>   $form = new ezcForm;
> 
>   $form->setMethod('post');
> 
>   $form->setId('my_form_id');
> 
>   $form->setAction($url);
> 
>   $select = new ezcFormSelect;
>   $select->options($array)
>          ->setLabel('My Select')
>          ->setId('my_select_id');
> 
>   $submit = new ezcFormSubmit;
>   $submit->setValue('Click Me')
>          ->setScript('onclick="do_some_js"');
> 
>   $form->render(array($select, $submit));
> ?>

How about CSS for the form? Also it should support different "renderers" 
(HTML, templates, maybe smartphone forms?).

> Also proposed, is the ability to attach validators directly to
> to each object.
> 
> <?php
>   $txt = new ezcFormText;
>   $text->setName="email")
>        ->setId("email")
>        ->setLabel('Enter Email')
>        ->setRequired(true)
>        ->setValidator(ezcFormValidateEmail);
> ?>

How is state being kept? If the user enters a wrong email address it 
needs to appear in the textbox as it was when displaying the page again.

Also how would multi-page forms (wizards) be implemented?

> In this instance, ezcFormValidateEmail could be a call back to
> new ezcInputFormDefinitionElement(
>   ezcInputFormDefinitionElement::REQUIRED, 'validate_email'
>   )

Is it a good idea to depend on another component? (UserInput in this case).

> An ezcForm component will provide a comprehensive suite of
> easy to use form objects with an easy to use API. Forms will
> initially be defined insite a definition list, but other
> markup should not be hard to build in.
> 
> Larson was working on something similar at some time in 
> experimental, but after a quick chat on IRC he described his
> as overly complex.
> 
> Any thoughts, ideas, objections, abuse is welcome.
> 
> Kind regards
> Kevin
> 
> 
> 
>   

--

-- 
Alexandru Stanoi
System Developer
eZ Systems | http://ez.no

Gmane