Re: [fw-general] Form Element Translator Bug

2008-05-22 Thread Matthew Weier O'Phinney
-- bfoust <[EMAIL PROTECTED]> wrote (on Thursday, 22 May 2008, 06:06 PM -0700): > The default translator used by all forms may be set by calling: > > Zend_Form::setDefaultTranslator(new Zend_Translate(...)); > > Then, when $form->isValid is called, each of the element validators have > their

[fw-general] Form Element Translator Bug

2008-05-22 Thread bfoust
The default translator used by all forms may be set by calling: Zend_Form::setDefaultTranslator(new Zend_Translate(...)); Then, when $form->isValid is called, each of the element validators have their translators set to that same default translator (if they don't have a translator explicitly

Re: [fw-general] leaving Zend

2008-05-22 Thread Ben Scholzen 'DASPRiD'
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Yeah, good bye Darby, and thanks for your great effort you put into ZF! I promise that I will not ruin Zend_Config ;) Best regards, Ben Simone Carletti schrieb: > Good luck from my side as well! > The most part of ZF web service libraries I have take

Re: [fw-general] confirming authentication information with Zend_Mail?

2008-05-22 Thread Simon Mundy
Hi there You need to perform a 'helo' instead:- try { $test->connect(); $test->helo(); $test->disconnect(); } catch (Zend_Mail_Protocol_Exception $e) { ...handle incorrect auth details... } This is because 'auth()' expects that the smtp server has already received the helo seq

[fw-general] confirming authentication information with Zend_Mail?

2008-05-22 Thread yawnmoth
I'm trying to write a tool that'll automate the sending out of an email to ~20,000 people. The SMTP server that I'm using requires that the user login with a name and password that have been assigned to them and I'd prefer to use that for this tool. The thing is... I don't plan on sending the e

Re: [fw-general] Possible bug with sessionExists() ?

2008-05-22 Thread JARUZ
Thanks for your help! Zend_Session::isStarted() seems to do the trick. Its a bit unfortunate though that it does not appear in the Reference Guide. And although I understand the logic behind sessionExists(), I think lots of other developers might make the same mistake of expecting sessionExists()

Re: [fw-general] Re: Date Warning

2008-05-22 Thread Xavier Vidal Piera
Woah, there was a error-handler someway hidden in our frameworkof course it was catching everything (notices, warnings, ...ALL). These was a WFT error-handler... ;) Thanks ! On Thu, May 22, 2008 at 6:24 PM, Thomas Weidner <[EMAIL PROTECTED]> wrote: > Hy Xavier, > > no your problem is no

Re: [fw-general] Re: Date Warning

2008-05-22 Thread Thomas Weidner
Hy Xavier, no your problem is not reproducable for me... Read the comments of this issue if you are using a own error-handler. Greetings Thomas Weidner, I18N Team Leader, Zend Framework http://www.thomasweidner.com - Original Message - From: "Xavier Vidal Piera" <[EMAIL PROTECTED]> To

[fw-general] Zend_Db_Table_Abstract::find()

2008-05-22 Thread Philip G
I don't suppose somebody has already suggested making find() accept a hashed array of PKs for composite key tables? It's a bit of a pain to list out 7 columns, and insuring they are in the *perfect* order in order for it to find my data properly. I think it should be accepting a single value (for a

RE: [fw-general] Date Warning

2008-05-22 Thread Terre Porter
I tried this quickly like so: Code: require_once 'Zend/Loader.php'; Zend_Loader::registerAutoload(); date_default_timezone_set('Europe/Madrid'); $d = new Zend_Date(); $d->set('1977-01-01'); Zend_Debug::dump($d->__toString()); Output: string(23) "Jan 1, 1977 12:00:00 AM" array(15)

Re: [fw-general] Error trying to insert some data using Zend_Db_Table/PostgreSQL

2008-05-22 Thread Juan Felipe Alvarez Saldarriaga
I still have the same problem, any ideas ? , Thx. - Original Message - From: "Juan Felipe Alvarez Saldarriaga" <[EMAIL PROTECTED]> To: "fw-general" Sent: Thursday, May 8, 2008 4:02:25 PM (GMT-0500) America/Bogota Subject: [fw-general] Error trying to insert some data using Zend_Db_Table

[fw-general] Re: Date Warning

2008-05-22 Thread Xavier Vidal Piera
Moreover, i've found that it fails when you specify the year i'm digging into the code to see if i can find this issue. Try this code $d = new Zend_Date(); $d->setDay(1); $d->setMonth(1); $d->setYear(1977); Try the code with and without the last line (setYear). In my setup is throwing the wa

[fw-general] Date Warning

2008-05-22 Thread Xavier Vidal Piera
Hi Thomas Here it is that snippet :P *in bootstrap:* date_default_timezone_set('Europe/Madrid'); *In controller: *$d = new Zend_Date(); $d->set('1977-01-01'); *And a warning it's thrown :* [Sys Warning] timezone_open() [function.timezone-open ]: Unknown or bad timezone (1977) Can you repr

Re: [fw-general] Possible bug with sessionExists() ?

2008-05-22 Thread Pádraic Brady
Not necessarily. Try replacing with a call to isStarted() for example. You can have a session started, but not immediately existing (i.e. detected) for the current page. It is normal to require at least one additional request for a session existence check to be detectable. You have to bear in m

[fw-general] Possible bug with sessionExists() ?

2008-05-22 Thread JARUZ
Sample code: Zend_Session::start(); if( Zend_Session::sessionExists() ) { echo 'Session exists'; } else { echo 'Session does not exist'; } Will output "Session does not exist" for the FIRST request to the pag

Re: [fw-general] SVN Repository Reorganization Beginning

2008-05-22 Thread Pádraic Brady
My subversion client is beginning to sweat already ;). I should also consider watching my proposal names - many of them are destined as Extras. Best of luck on the reorg. Matthew Weier O'Phinney-3 wrote: > > Hey, all -- > > The SVN repository reorganization is about to begin. I will be making

[fw-general] SVN Repository Reorganization Beginning

2008-05-22 Thread Matthew Weier O'Phinney
Hey, all -- The SVN repository reorganization is about to begin. I will be making all access read-only until I have finished. When done, I will post details about how to update your working checkouts to point to the new locations. For more information on what is being done, please read the propos

Re: [fw-general] Zend Framework and Dojo

2008-05-22 Thread Matthew Weier O'Phinney
-- Nick Lo <[EMAIL PROTECTED]> wrote (on Thursday, 22 May 2008, 08:39 PM +1000): > Further on the idea of support that Rob brings up, what are the plans > for supporting Dojo related questions on the mailing list? Will there be > a ZF/Dojo list and/or will there be a policy on this general one a

[fw-general] Re[fw-general] ady for Review: Zend_Service_Recaptcha

2008-05-22 Thread Pádraic Brady
Hi all, http://framework.zend.com/wiki/pages/viewpage.action?pageId=42442 The Zend_Service_Recaptcha proposal has been made ready for review and your comments are very much appreciated. In forming the proposal I decided I'd list it's immediate limitations or open ended questions. 1. The compone

Re: [fw-general] Zend Framework and Dojo

2008-05-22 Thread Matthew Weier O'Phinney
-- Joó Ádám <[EMAIL PROTECTED]> wrote (on Thursday, 22 May 2008, 10:46 AM +0200): > > Btw, I suggest to wait for Matthew to go through the proposal process with > > Dojo before you work on jquery. This way we would have design consistency > > between the two (as much as possible)... > > I think

Re: [fw-general] Form Validator: Empty Element Error Message Customization

2008-05-22 Thread Matthew Weier O'Phinney
-- bfoust <[EMAIL PROTECTED]> wrote (on Wednesday, 21 May 2008, 07:53 PM -0700): > > A validator's setMessage("...") may be used to change the error message when > a validator fails. For example: > >$formElement->getValidator('StringLength')->setMessage("Your password > must be at least 6 cha

Re: [fw-general] Inefficient setTranslator?

2008-05-22 Thread Matthew Weier O'Phinney
-- bfoust <[EMAIL PROTECTED]> wrote (on Thursday, 22 May 2008, 12:49 AM -0700): > Shouldn't line 1185 of Element.php be: line 1188 in current trunk, btw. :-) > if ($translator && method_exists($validator, 'setTranslator')) { > > ? > It seems inefficient to call a method that just does some che

Re: [fw-general] Zend Framework and Dojo

2008-05-22 Thread Nick Lo
Further on the idea of support that Rob brings up, what are the plans for supporting Dojo related questions on the mailing list? Will there be a ZF/Dojo list and/or will there be a policy on this general one as to how far a question is ZF/Dojo related or just Dojo related and therefore to b

RE: [fw-general] Zend_Form Form and Action on different function

2008-05-22 Thread Bagus Nugroho
Yes, I used as advised, but I think there's a method to posted form as data from posted data. as like : $this->_request->isPost() and $this->_request->getPost(); Thanks and Rgds, bn From: Pádraic Brady [mailto:[EMAIL PROTECTED] Sent: Thu 22-May-2008 14:42 T

Re: [fw-general] Form Validator: Empty Element Error Message Customization

2008-05-22 Thread Vincent
On 5/22/08, Pádraic Brady <[EMAIL PROTECTED]> wrote: > > By the way I agree - the default messages are horrendous and border on bad > English. If I were not English speaking I'd suspect they were > incomprehensible. There is a lot to be said for having defaults that are as > simple and plain spoke

Re: [fw-general] Zend Framework and Dojo

2008-05-22 Thread Rob Allen
Hi Wil, On 22 May 2008, at 02:26, Wil Sinclair wrote: To be perfectly honest, Rob, if the standard library components will be the only part of ZF that is maintained over time and major releases, then we’ll need to start scaling back our expectations of this project- and quick-like! Actuall

Re: [fw-general] Zend Framework and Dojo

2008-05-22 Thread Joó Ádám
> Btw, I suggest to wait for Matthew to go through the proposal process with > Dojo before you work on jquery. This way we would have design consistency > between the two (as much as possible)... I think it's natural. One thing. I'd suggest and strongly hope that the ZF utilities will make use

Re: [fw-general] Form Validator: Empty Element Error Message Customization

2008-05-22 Thread Pádraic Brady
I used to do the same thing - explicitly add the validator beforehand so it's accessible for attaching a message later. >I suppose another solution might be to create a Translator. Does a >translator get called even for translations to English? In the end though, I decided a Translator was simpl

[fw-general] Inefficient setTranslator?

2008-05-22 Thread bfoust
Shouldn't line 1185 of Element.php be: if ($translator && method_exists($validator, 'setTranslator')) { ? It seems inefficient to call a method that just does some checks and then sets the already null _translator member to null again. It seems like a small issue, but just wanted to mention i

Re: [fw-general] Zend_Form Form and Action on different function

2008-05-22 Thread Pádraic Brady
Use the same form class ;). You have to remember that a Zend_Form is a programmatic description of the form structure, validation rules, filtering rules, with a sprinkling of customisation via attribute additions. Every form upon instantiation from the same class is identical. What differentiate

RE: [fw-general] Zend Framework and Dojo

2008-05-22 Thread Andi Gutmans
Btw, I suggest to wait for Matthew to go through the proposal process with Dojo before you work on jquery. This way we would have design consistency between the two (as much as possible)... Andi -Original Message- From: Joó Ádám [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 21, 2008 1