Re: Moving Cake Folder

2008-12-16 Thread Ed Howland

I also suggest considering using svn:externals. I created a new
repository for just the cake dir, and imprted the nightly into it.
Every time I do an update, it checks the external for any updates as
well,

Ed

On Tue, Dec 16, 2008 at 9:46 AM, Sam Sherlock sam.sherl...@gmail.com wrote:
 put C:\wamp\cake in you include path either in you php.ini or your
 httpd-vhosts.conf

 eg in php.ini
 include_path =
 .;d:\php-5.2.6\includes;d:\php-5.2.6\PEAR;C:\wamp\cake;C:\wamp\simpletest
 ; windows include path

 or in vhosts
 php_value include_path
 .;d:\php-5.2.6\includes;d:\php-5.2.6\PEAR;C:\wamp\cake;C:\wamp\simpletest
 ; windows include path



 2008/12/16 Penfold ianwtas...@gmail.com

 I have developed a Cake application in a folder which holds a RC3
 version of the Cake.
 I would like to separate my application and cake to ease upgrading and
 use the same Cake Files for multiple projects.

 I currently have cake installed at C:\wamp\www\[projectname] i would
 like to have cake in C:\wamp\cake
 so i can use bake cake bake [projectname] and all projects share the
 cake files.

 I know how to do this for all new projects but is there anything i
 need to change in my existing project to work with the new setup?




 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Getting simpletest to work with test DB

2008-12-13 Thread Ed Howland

You seem to be rught Mark, But why does this dependency exist in the
first place?

Ed

On Sat, Dec 13, 2008 at 10:36 AM, mark_story mark.st...@gmail.com wrote:

 Ed, looks like those fails are on the schema and containable classes,
 not the model.  And as you found out bake doesn't search through every
 related model to add fixtures from.  It only goes one level deep, you
 need to manually add all the missing fixtures.

 -Mark

 On Dec 12, 5:53 pm, Ed Howland ed.howl...@gmail.com wrote:
 I forgot to mention that I am still getting the previous errors on the
 Core/model tests.
 --
 Ed Howlandhttp://greenprogrammer.blogspot.comhttp://twitter.com/ed_howland
 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Getting simpletest to work with test DB

2008-12-12 Thread Ed Howland

On Fri, Dec 12, 2008 at 8:13 AM, Marcus rik...@gmail.com wrote:

 On Dec 11, 10:55 pm, mark_story mark.st...@gmail.com wrote:
 Should be fixed now! :)

 Indeed, it works again :)

 Thank you, Mark.

 Marcus
 


I think my bake scripts created the old style test, with model = new
Model(). I'm going to try  the ClassRegistry.init route.

Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Tip: ignoring tmp dirs in Subversion

2008-12-12 Thread Ed Howland

Also, what do you think about keeping the cake folder on a sep svn
repos and using svn:externals to link it into your app. In our case it
let us follow nightly builds w/o having
to do the rsync shuffle above.

Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Getting simpletest to work with test DB

2008-12-12 Thread Ed Howland

Ok, currently (nightly build 12/12/2008) I am seeing the following.

First, I re-baked all models to get new fixtures and test cases.

1. Any leaf model w.o any associations works fine.
2. Any leaf model that has a has_many association, doesn't seem to
create that table.
3. Any model with a single depth belongs_to association works fine
4. Any model that belongs_to a model that belongs_to another model
doesn't create the furthest model in the chain.

I am not sure that final one is a consistent symptom. But I had a 4
way indirect chain and it bombed on the final model that the
penultimate model belonged to. But it seemed to create all other
tables up to that point.

Do your tests test models with deep associations?

Also, I have 6 failures in the Core tests for model.

All model tests

* Failed
  Equal expectation fails with member [comments] with member
[article_id] as key list [type, null, default] does not match key list
[type, null] at
[/var/www/xeon/cake/tests/cases/libs/model/schema.test.php line 391]
  ModelGroupTest -
/var/www/xeon/cake/tests/cases/libs/model/schema.test.php -
CakeSchemaTest - testSchemaRead
* Failed
  Identical expectation [Array: 4 items] fails with [Array: 3
items] as key list [type, null, default, length] does not match key
list [type, null, length] at
[/var/www/xeon/cake/tests/cases/libs/model/schema.test.php line 395]
  ModelGroupTest -
/var/www/xeon/cake/tests/cases/libs/model/schema.test.php -
CakeSchemaTest - testSchemaRead
* Failed
  at 
[/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
line 110]
  ModelGroupTest -
/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
- ContainableTest - testContainments
* Failed
  at 
[/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
line 111]
  ModelGroupTest -
/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
- ContainableTest - testContainments
* Failed
  Equal expectation fails as key list [] does not match key list
[0, 1] at 
[/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
line 112]
  ModelGroupTest -
/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
- ContainableTest - testContainments
* Failed
  Equal expectation fails as key list [] does not match key list
[0] at [/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
line 113]
  ModelGroupTest -
/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
- ContainableTest - testContainments


Ed


-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Getting simpletest to work with test DB

2008-12-12 Thread Ed Howland

Ok, final update. All my tests are now passing!

The trick was to make sure that ALL the down-chain fixtures get
loaded. This applies to both belongs_to and has_many. The bake scripts
did not fully populate the var $fixtures. I am not sure this is a bug
because of the order of my baking the models and creating the db
tables.

So I'd suggest creating all the DB tables before baking models. Then
double check the fullest extent of fixtures get loaded in the tests.

Overall, this seems to me to not be a necessary dependency. In
RSpec/Rails you can be very fine grained about what fixtures you want
to load. So you can load a single fixture for that model's table and
ignore any belongs_to or has_many associations.

Ed

On Fri, Dec 12, 2008 at 2:48 PM, Ed Howland ed.howl...@gmail.com wrote:
 Ok, currently (nightly build 12/12/2008) I am seeing the following.

 First, I re-baked all models to get new fixtures and test cases.

 1. Any leaf model w.o any associations works fine.
 2. Any leaf model that has a has_many association, doesn't seem to
 create that table.
 3. Any model with a single depth belongs_to association works fine
 4. Any model that belongs_to a model that belongs_to another model
 doesn't create the furthest model in the chain.

 I am not sure that final one is a consistent symptom. But I had a 4
 way indirect chain and it bombed on the final model that the
 penultimate model belonged to. But it seemed to create all other
 tables up to that point.

 Do your tests test models with deep associations?

 Also, I have 6 failures in the Core tests for model.

 All model tests

* Failed
  Equal expectation fails with member [comments] with member
 [article_id] as key list [type, null, default] does not match key list
 [type, null] at
 [/var/www/xeon/cake/tests/cases/libs/model/schema.test.php line 391]
  ModelGroupTest -
 /var/www/xeon/cake/tests/cases/libs/model/schema.test.php -
 CakeSchemaTest - testSchemaRead
* Failed
  Identical expectation [Array: 4 items] fails with [Array: 3
 items] as key list [type, null, default, length] does not match key
 list [type, null, length] at
 [/var/www/xeon/cake/tests/cases/libs/model/schema.test.php line 395]
  ModelGroupTest -
 /var/www/xeon/cake/tests/cases/libs/model/schema.test.php -
 CakeSchemaTest - testSchemaRead
* Failed
  at 
 [/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 line 110]
  ModelGroupTest -
 /var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 - ContainableTest - testContainments
* Failed
  at 
 [/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 line 111]
  ModelGroupTest -
 /var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 - ContainableTest - testContainments
* Failed
  Equal expectation fails as key list [] does not match key list
 [0, 1] at 
 [/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 line 112]
  ModelGroupTest -
 /var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 - ContainableTest - testContainments
* Failed
  Equal expectation fails as key list [] does not match key list
 [0] at 
 [/var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 line 113]
  ModelGroupTest -
 /var/www/xeon/cake/tests/cases/libs/model/behaviors/containable.test.php
 - ContainableTest - testContainments


 Ed


 --
 Ed Howland
 http://greenprogrammer.blogspot.com
 http://twitter.com/ed_howland




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Getting simpletest to work with test DB

2008-12-12 Thread Ed Howland

I forgot to mention that I am still getting the previous errors on the
Core/model tests.
-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Trouble with Model associations

2008-12-12 Thread Ed Howland

On Fri, Dec 12, 2008 at 3:49 PM, Sanfly san...@gmail.com wrote:

 Okay then, lets say I change the member_years to member_payments, and
 just have the member_id and payment_id fields (remove the year field).

 So long as I manage to link up these fields, I should be able to
 extrapolate the Year data from the payment data anyway

 Even so, I cant figure out how to link the three tables.  Help!

I am not sure you need to go to HABTM for your app. Are you saying
that there is more than one member per payment, instead of just
members have many payments? The year field is in payment anyway. Why
not just set Payment belongs_to Member and Member has_many payments?

Ed




 On Dec 13, 10:11 am, Marcelo Andrade mfandr...@gmail.com wrote:
 On Fri, Dec 12, 2008 at 4:13 PM, Sanfly san...@gmail.com wrote:

  I have three tables im trying to connect:

  1.  members  (primary key is 'id')
  2.  payments  (primary Key is 'id')

  and then because each year that the person is a member, and they need
  to pay their membership fees, I've got another table

  3.  member_years, the fields are:  member_id, payment_id, year

  What sort of model associations do I need to link all these together
  when necessary?  I've been trying things out for a couple of days now
  with no success :(  Any help would be appreciated

 Not sure if I understood your problem.

 Shouldn't your join table at item 3 be
 named to member_payment according to
 Cake conventions?  If not, maybe you
 must consider use another model for this
 information about the years.  But like
 I said, I'm not sure...

 Best regards,

 --
 MARCELO DE F. ANDRADE (aka eleKtron)
 Belem, PA, Amazonia, Brazil
 Linux User #221105

 [...@parĂ¡ ~]# linkshttp://pa.slackwarebrasil.org/

 For Libby's backstory be told on 
 Losthttp://www.petitiononline.com/libby423/petition.html

 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Getting simpletest to work with test DB

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 2:19 AM, Marcus [EMAIL PROTECTED] wrote:

 Same problem here. The error message Database table not found
 appeared with changeset 7870 of CakePHP.

So an earlier changeset might work for me?

 When calling ClassRegistry::init('Foo') in the startTest method of a
 test case, Cake tries to set up 'Foo' with all the associated models
 and fails when initializing the first related model: CakePHP reads the
 schema definition from database with wrong connection.


 When calling ClassRegistry::init('Foo'), Cake uses the 'default'
 connection for getting the schema for 'Foo' and everything works fine.
 Then the first related Model is initialized, CakePHP tries to read the
 schema, but now with the 'test_suite' connection, which raises the
 error because the table doesn't exist in the test database.


I poked around some more and I think I am seeing the same thing.

 Is this an error that should be filed to trac?

Nothing open in trac at the moment. perhaps a closed
 Marcus

On Thu, Dec 11, 2008 at 8:22 AM, mark_story [EMAIL PROTECTED] wrote:

 How are your fixtures setup?
var $fixtures = array('app.form', 'app.program');

 Are you using imports?
App::import('Model', 'Form');

 Are you initializing your models in setup() or startTest()?
function start() {
parent::start();
$this-Form = new TestForm();
}

 Are you using ClassRegistry::init() or are you use new Model()?
Tried both. But it came with new Model();

It seems like a DB connection issue, as Marcus said. I wonder if it
work with models with no associations.

Ed
 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

This always confused me.

cd app
svn up
find tmp -type d | grep -v svn| xargs -L1 svn propset svn:ignore '*'
svn commit -m ignoring app/tmp in subversion

HTH someone
Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 12:16 PM, Marcus rik...@gmail.com wrote:

 On Dec 11, 6:40 pm, Ed Howland ed.howl...@gmail.com wrote:
 This always confused me.

 cd app
 svn up
 find tmp -type d | grep -v svn| xargs -L1 svn propset svn:ignore '*'
 svn commit -m ignoring app/tmp in subversion

 This isn't a good solution: If you check out your project on another
 machine, the whole 'tmp' directory and its structure is missing.

It worked for me I did two commit+checkout round trips, and the tmp
structure was maintained. I did have to svn rm the old cache files,
but now svn st reports no changes. I think that works because the
pattern supplied was '*' and svn propset does not apply that to
directories.

Let me know if you have a different experience.

Ed



 Marcus
 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 8:35 PM, brian bally.z...@gmail.com wrote:

 On Thu, Dec 11, 2008 at 2:24 PM, Ed Howland ed.howl...@gmail.com wrote:

 Let me know if you have a different experience.


 As Marcus said, it'll be a different experience if the repository is
 checked out on a *different machine*.

 Subversion has the capability to handle things like this, though one
 needs to set things up for it. Here's  a Cake-specific solution posted
 by Andy:

 http://bakery.cakephp.org/articles/view/setting-svn-ignore-properties


Brian, thanks for the link. It's a good idea for the core.php and
database.php files as well. BTW, I did test my command and checked it
out on another machine and it still worked. Perhaps there is a
difference wrt versions of svn?

What I didn't know about was the -R (recursive) flag for svn propset.
I wanted to make sure that the '.svn' dirs were preserved and thus
excluded. But propset must do that already.

Ed
.


 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Getting simpletest to work with test DB

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 3:55 PM, mark_story mark.st...@gmail.com wrote:

 Should be fixed now! :)


On r7916:

Ok, I am getting a lot farther now. Before, no model tests were
passing. Now only two don't pass. Those two models belong_to other
models. E.g. User = Group. The error reports  that the group table is
missing, in that case.

Thanks for fixing the rest of them though.

Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 10:25 PM, brian bally.z...@gmail.com wrote:

 The contents of the .svn dirs  are modified by Subversion, so it
 wouldn't make sense to try to get it to ignore them. They're full of
 meta-info. .svn/text-base/ contains a clean copy of everything, for
 instance, and it's these files that are compared to your working copy
 in order to discern what's been changed.

 One can checkout an entire site without them (say, for uploading to
 production or tarring up an archive) by doing svn export ... Note
 that you'll want to export to somewhere other than your working
 directory.

 You can also copy a subversion working dir without the .svn dirs by
 using rsync -C ...

That last one is good for me too. I just checked out a latest HEAD and
wanted to overlay a working directory to check a bug fix in unit
tests. I did it by hand for each dir. That could have saved me some
time! (Hey universe, can I have those last 30 minutes back?)

Thanks for the tip.

Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Re: Tip: ignoring tmp dirs in Subversion

2008-12-11 Thread Ed Howland

On Thu, Dec 11, 2008 at 10:26 PM, brian bally.z...@gmail.com wrote:

 BTW, why would you not want to version-control core.php or database.php?

Well the site with the tip lays it out, but in my case, I am
developing on my laptop and we also have a server for all the devs to
work on. The DB's configs are quite different. Also, we keep core.php
(DEBUG=0) to be as close as possible to the final production env.

Ed
-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

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



Getting simpletest to work with test DB

2008-12-10 Thread Ed Howland

Hi,

I've got simpletest installed but now I am having problems with the test DB.

I had to change the name of the variable to $test_suite from $test.
After that I could see the create table statements.

Here is my setup:

var $test_suite = array(
'driver' = 'mysql',
'persistent' = false,
'host' = 'localhost',
'login' = 'eddie',
'password' = 'eddie',
'database' = 'bph_test',
'prefix' = '',
);

But now every test reports
Error:  Database table forms for model Form was not found. The rest of
the test aborts.

Any idea what I am doing wrong?

Thanks,
Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Example working app w/tests

2008-12-10 Thread Ed Howland

Hey does anyone have a sample app that works in RC3 with Unit tests?
Or know where one can be found?

Thanks
Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Example working app w/tests

2008-12-10 Thread Ed Howland

On Wed, Dec 10, 2008 at 10:36 PM, websta*
[EMAIL PROTECTED] wrote:

 Have you had a look at the core tests, recommend them as a good place to
 start.

Yes, I did run the core apps and they are broken the same way. That is
why I wanted a reference app to compare against. I cheked a fair
number of apps in cakeforge and only ine of them had any tests, but
they were all jyst stubs and used an older version of the test suite,

I need a recent RC3 if possible app with working tests.

Thanks
Ed


 -Original Message-
 From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
 Of Ed Howland
 Sent: Thursday, December 11, 2008 10:26 AM
 To: cake-php@googlegroups.com
 Subject: Example working app w/tests


 Hey does anyone have a sample app that works in RC3 with Unit tests?
 Or know where one can be found?

 Thanks
 Ed

 --
 Ed Howland
 http://greenprogrammer.blogspot.com
 http://twitter.com/ed_howland


 No virus found in this incoming message.
 Checked by AVG - http://www.avg.com
 Version: 8.0.176 / Virus Database: 270.9.16/1842 - Release Date: 12/10/2008
 6:53 PM


 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How can I view the screencasts on Linux

2008-12-08 Thread Ed Howland

 If you can't get the videos to play in your browser,look at the HTML
 source, search for the .mov files and play them with your favorite player.


I copied the url of the .mov into by browser's address bar and it
played fine. They are doing some weird Javascript (I guess to play in
the little window).  I might try to debug it with Firebug later,

However, at the moment the cakephp.org servers seem to be down (again)!

Thanks
Ed
-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Noob help with migrations add/drop coluumns

2008-12-08 Thread Ed Howland

Hi, when trying to add or drop a column (really I want to rename it), and I run

cake schema run update -4

it says
Comparing Database to Schema...
Schema is up to date.

Anyone have any idea what is going on? I want to rename a column in
users from 'login; to 'username'. I am writing a presentation on Cake
and don't (necessarily want to use any plugins or custom code.)

Thanks
Ed
-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Can/Should I use 1.2RC3 in a production environment

2008-12-07 Thread Ed Howland

HI, cake noob here. I know 1.2 isn't stable yet, but does anyone have
any experience or advice wrt usin 1.2RC3 in a production environment?
We are migrating a Perl CGI project over to Cake and first decided to
use 1.1 because of the stable tag on it.

But if 1.2 is going stable in January/early '09, should we develop on
it? I only want to do TDD work and have read that using Simpletest in
1.1 is problematic.

Thanks
Ed

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can/Should I use 1.2RC3 in a production environment

2008-12-07 Thread Ed Howland

Thanks to all.

That gives me comfort esp. wrt to unit testing.

Ed

On Sun, Dec 7, 2008 at 2:02 PM, lightglitch [EMAIL PROTECTED] wrote:

 Despite being in RC3 I already use it in some productions projects
 without
 any problems. It may have some bugs in some features but the main 1.2
 core
 is stable enough to start development.

 And 1.2 is a big evolution over 1.1 version.


 On Dec 7, 5:59 pm, Ed Howland [EMAIL PROTECTED] wrote:
 HI, cake noob here. I know 1.2 isn't stable yet, but does anyone have
 any experience or advice wrt usin 1.2RC3 in a production environment?
 We are migrating a Perl CGI project over to Cake and first decided to
 use 1.1 because of the stable tag on it.

 But if 1.2 is going stable in January/early '09, should we develop on
 it? I only want to do TDD work and have read that using Simpletest in
 1.1 is problematic.

 Thanks
 Ed
 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Can/Should I use 1.2RC3 in a production environment

2008-12-07 Thread Ed Howland

On Sun, Dec 7, 2008 at 4:09 PM, aranworld [EMAIL PROTECTED] wrote:

 For the last 6 months or so, most of the changes made to the 1.2 core
 code have been with regards to test coverage.  Very little (if any) of
 the most commonly used API has changed, and I think the developers
 have been pretty clear that not much will change either.  For the most
 part, websites I put together in March 2008 still function perfectly
 fine with the latest version of the core code.

 Upgrading from 1.1 to 1.2, however, does require a bit of work,

Since this project is Greenfield, it shouldn't be a problem. All I
have now is the login page, home page and various user add,edit, list
stuff. Did note the file extension changed from .thtml to .ctp.

 because of the changes made to the way the HTML helper forms work.
 Also, so many more people are focused on 1.2, that if there are any
 major vulnerabilities or performance problems discovered, they will be
 found quickly making its use relatively safe from a project management
 standpoint.


Also most of the on-line discussion seems to assume 1.2. With the
release being nearly 2 years old, I;d say it is mature enough for our
use. After all I'm writing this on GMail(beta)!

Thanks
Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



How can I view the screencasts on Linux

2008-12-07 Thread Ed Howland

I am having trouble playing the screencasts on the cakephp.org site. I
am using Ubuntu 8.10 w/FF.

Does anyone have any suggestions?

Thanks
Ed

-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: How can I view the screencasts on Linux

2008-12-07 Thread Ed Howland

On Sun, Dec 7, 2008 at 9:32 PM, Marcelo Andrade [EMAIL PROTECTED] wrote:
 On Sun, Dec 7, 2008 at 10:09 PM, Ed Howland [EMAIL PROTECTED] wrote:

 I am having trouble playing the screencasts on the cakephp.org site. I
 am using Ubuntu 8.10 w/FF.

 Does anyone have any suggestions?

 What kind of problems?

It just says video loading and then quits. Do you know what kind of
video format it is?

Thanks
Ed


 --
 MARCELO DE F. ANDRADE (aka eleKtron)
 Belem, PA, Amazonia, Brazil
 Linux User #221105

 [EMAIL PROTECTED] ~]# links http://pa.slackwarebrasil.org/

 For Libby's backstory be told onLost
 http://www.petitiononline.com/libby423/petition.html

 




-- 
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
CakePHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---