Re: [CAF] Proposed 0.27 release of CAF

2006-02-09 Thread G. Matthew Rice
Olaf Alders <[EMAIL PROTECTED]> writes:
> Getting closer.  I had it set to "olaf", which I guess isn't right.   The
> original one "olaf-caf" gives me this error:
> 
> Client 'olaf-caf' can only be used from host 'h250.starnix.com'.

That's because, by default, Perforce sets a Host field in your client profile
(you can thank Windows users for that feature).  To get around it, you can
set an env variable to fake that host:

export P4HOST=h250.starnix.com

Or just delete the setting and you can use the client (aka workspace) from
any host.  Useful in those NFS/AFS/Samba/... environments.


> p4-caf works.  Must have created that by accident.  :)  If it's  all the
> same, I can just use that one.

yeah, it's fine.  I'm going to revert the open file in olaf-caf, though, and
delete your two other workspaces.  that ok?


> Great.  I've done that and I think I'm up to date now.  So, I would  just
> check out files in /scratch/olaf/from-main I guess? 

Exactly.  Although, your files aren't up to date with the changes in the main
branch and I believe that some of those were Rick's changes around anonymous
users (may impact your work).  Let me know if you'd like me to up date them
for ya.  Otherwise, give this sequence a shot:

p4 integ -b caf-main-to-scratch-olaf
p4 resolve
p4 submit

(There's lots of docs on this, too.  try 'p4 help integ resolve' or the
online docs at: http://www.perforce.com.)

Also, check out the P4MERGE environment variable (p4 help environment) if you
would like to use your favourite 3-way merge tool.


> What's the protocol after I've made some edits that I think are ready to be
> looked at?

Let Richard know.  I've helped him bring the changes back, too.  I don't mind
being the regular merge custodian 'full-time', either.

Regards,
-- 
g. matthew rice <[EMAIL PROTECTED]>   starnix, toronto, ontario, ca
phone: 647.722.5301 x242  gpg id: EF9AAD20
http://www.starnix.com  professional linux services & products
___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2006-02-09 Thread Olaf Alders


On 9-Feb-06, at 9:50 AM, G. Matthew Rice wrote:


Olaf Alders <[EMAIL PROTECTED]> writes:

I'm getting this error:

olaf$ p4 integ -b caf-main-to-scratch-olaf
Client 'olaf' unknown - use 'client' command to create it.


Ah, you need some environment variables set.  In this case, P4CLIENT.


Getting closer.  I had it set to "olaf", which I guess isn't right.   
The original one "olaf-caf" gives me this error:


Client 'olaf-caf' can only be used from host 'h250.starnix.com'.   
But, p4-caf works.  Must have created that by accident.  :)  If it's  
all the same, I can just use that one.




You seem to have 3 to choose from as of last night :)

  [EMAIL PROTECTED]:~/p4/lpi$ p4 clients|grep olaf
  Client olaf-caf 2005/10/29 root /Users/olaf/p4-caf 'Created by  
olaf. '
  Client p4-caf 2006/02/08 root /Users/olaf/Documents/p4-caf  
'Created by olaf. '
  Client test-caf 2006/02/08 root /Users/olaf/Documents/p4-caf  
'Created by olaf. '


just do: export P4CLIENT=...



Any tips?  I'm obviously new to this stuff!


If you are reusing an old one and there's any possibility that you  
were doing

things to files without telling perforce, you should remove the entire
directory (or copy it out of the way) and do:

p4 sync -f


Great.  I've done that and I think I'm up to date now.  So, I would  
just check out files in /scratch/olaf/from-main I guess? What's the  
protocol after I've made some edits that I think are ready to be  
looked at?


Thanks for your help!

Olaf
--
Olaf Alders
[EMAIL PROTECTED]

http://www.vilerichard.com -- pop tunes
http://cdbaby.com/cd/vilerichard


___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2006-02-09 Thread G. Matthew Rice
Olaf Alders <[EMAIL PROTECTED]> writes:
> I'm getting this error:
> 
> olaf$ p4 integ -b caf-main-to-scratch-olaf
> Client 'olaf' unknown - use 'client' command to create it.

Ah, you need some environment variables set.  In this case, P4CLIENT.

You seem to have 3 to choose from as of last night :)

  [EMAIL PROTECTED]:~/p4/lpi$ p4 clients|grep olaf
  Client olaf-caf 2005/10/29 root /Users/olaf/p4-caf 'Created by olaf. '
  Client p4-caf 2006/02/08 root /Users/olaf/Documents/p4-caf 'Created by olaf. '
  Client test-caf 2006/02/08 root /Users/olaf/Documents/p4-caf 'Created by 
olaf. '

just do: export P4CLIENT=...


> Any tips?  I'm obviously new to this stuff!

If you are reusing an old one and there's any possibility that you were doing
things to files without telling perforce, you should remove the entire
directory (or copy it out of the way) and do:

p4 sync -f

but you do have one file opened in the 'olaf-caf':

  [EMAIL PROTECTED]:~/p4/lpi$ p4 opened -a|grep olaf
  //depot/caf/dev/i18n/Changes#1 - edit default change (text) by [EMAIL 
PROTECTED]

If you're going to use that workspace and you're going to do the 'sync -f',
you should 'p4 revert //...' first to 'unedit' the file.

HTH,
-- 
g. matthew rice <[EMAIL PROTECTED]>   starnix, toronto, ontario, ca
phone: 647.722.5301 x242  gpg id: EF9AAD20
http://www.starnix.com  professional linux services & products
___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2006-02-08 Thread Olaf Alders


On 8-Feb-06, at 6:54 PM, G. Matthew Rice wrote:


Olaf Alders <[EMAIL PROTECTED]> writes:

On 9-Dec-05, at 2:59 PM, Richard Dice wrote:

Hi everyone...

Here is a link to a tentative 0.27 tarball, for your review and   
testing.


  http://occamstoothbrush.com/caf/CGI-Application-



Framework-0.27.tar.gz


I'm just looking at this right now.  The login/pass thing still  
seems  to be
a mystery.  Had to dig around in the sql folder to find it.
rdice/foobar
seems to do the trick.  I'd be happy to fix this in the  dev  
branch, but I

haven't the foggiest idea of what my password was...


Why it's:

IForgotMyPasswordAgain


Thanks -- I've changed it now.



of course.

You should 'p4 passwd' to change that, though :)

you already have your own dev area, too, BTW.  It's in:

//depot/caf/scratch/olaf/...

You have some catch up based on the mainline.  If you're  
comfortable bringing

the changes into your codeline, it's:

p4 integ -b caf-main-to-scratch-olaf


I'm getting this error:

olaf$ p4 integ -b caf-main-to-scratch-olaf
Client 'olaf' unknown - use 'client' command to create it.

But, when I try "p4 client", I get this:

Client: olaf

Owner:  olaf


Any tips?  I'm obviously new to this stuff!

Best,

Olaf
--
Olaf Alders
[EMAIL PROTECTED]

http://www.vilerichard.com -- pop tunes
http://cdbaby.com/cd/vilerichard


___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2006-02-08 Thread G. Matthew Rice
Olaf Alders <[EMAIL PROTECTED]> writes:
> On 9-Dec-05, at 2:59 PM, Richard Dice wrote:
> > Hi everyone...
> >
> > Here is a link to a tentative 0.27 tarball, for your review and  testing.
> >
> >   http://occamstoothbrush.com/caf/CGI-Application-
> 
> > Framework-0.27.tar.gz
> 
> I'm just looking at this right now.  The login/pass thing still seems  to be
> a mystery.  Had to dig around in the sql folder to find it.   rdice/foobar
> seems to do the trick.  I'd be happy to fix this in the  dev branch, but I
> haven't the foggiest idea of what my password was...

Why it's:

IForgotMyPasswordAgain

of course.

You should 'p4 passwd' to change that, though :)

you already have your own dev area, too, BTW.  It's in:

//depot/caf/scratch/olaf/...

You have some catch up based on the mainline.  If you're comfortable bringing
the changes into your codeline, it's:

p4 integ -b caf-main-to-scratch-olaf
p4 resolve

(you can use a GUI merge tool if you like or try p4v; works on Linux, Windows
and Mac, I believe).

If you'd like me to update your branch for you, I could do that no problemo.

PS - Don't forget to change your password.

Regards,
-- 
g. matthew rice <[EMAIL PROTECTED]>   starnix, toronto, ontario, ca
phone: 647.722.5301 x242  gpg id: EF9AAD20
http://www.starnix.com  professional linux services & products
___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2006-02-08 Thread Olaf Alders

On 9-Dec-05, at 2:59 PM, Richard Dice wrote:



Hi everyone...

Here is a link to a tentative 0.27 tarball, for your review and  
testing.


  http://occamstoothbrush.com/caf/CGI-Application- 
Framework-0.27.tar.gz


I'm just looking at this right now.  The login/pass thing still seems  
to be a mystery.  Had to dig around in the sql folder to find it.   
rdice/foobar seems to do the trick.  I'd be happy to fix this in the  
dev branch, but I haven't the foggiest idea of what my password was...


O
--
Olaf Alders
[EMAIL PROTECTED]

http://www.vilerichard.com -- pop tunes
http://cdbaby.com/cd/vilerichard


___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2005-12-10 Thread Rick Delaney
On Fri, Dec 09, 2005 at 02:59:03PM -0500, Richard Dice wrote:
> 
> Hi everyone...
> 
> Here is a link to a tentative 0.27 tarball, for your review and testing.
> 
>   http://occamstoothbrush.com/caf/CGI-Application-Framework-0.27.tar.gz

I looked at rel/0.27 before looking at this and updated the MANIFEST and
$VERSION.  I probably wasn't supposed to do that but anyway it looks
like you already did that in the tarball.

The following files are in your MANIFEST that aren't in
rel/0.27/MANIFEST:

 Makefile.PL.orig
 t/data/formdata
 TODO

Since TODO wasn't in MANIFEST originally I thought it was left out
deliberately so I added it to MANIFEST.SKIP.  That was probably a
mistake since I can't see a reason to keep the todo list a secret.

Anyway, I tried out the dist and it looks good enough to me.

-- 
Rick Delaney
[EMAIL PROTECTED]
___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2005-12-10 Thread Rick Delaney
On Fri, Dec 09, 2005 at 05:44:20PM -0500, Michael Graham wrote:
> 
> However, I have two minor points that I brought up before.
> 
> First off, for the test scripts, I don't think the test SQLite database
> should be stored in blib.  That directory belongs to Module::Build, and
> the test scripts should stay out of it.
> 
> The issue is that the test sqlite_db file is under the control of
> perforce, right?

Yes, just that it's read-only.  But now that Makefile.PL file has been
removed I find that

./Build disttest

works fine since it copies all the test files into a directory like
CGI-Application-Framework-0.27 and runs the tests in there.

So change 1905 could be undone and we can run the tests that way in our
perforce workspaces.

I don't think either point should be a showstopper for a release,
though.

-- 
Rick Delaney
[EMAIL PROTECTED]
___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2005-12-09 Thread Michael Graham

I wish I had time to install this and play around with it, but I don't.
Thanks to Rick for putting in the work for this release!  I agree with
Matt that this is still Alpha software (as listed at the top of the
docs), so we should release early and release often.

However, I have two minor points that I brought up before.

First off, for the test scripts, I don't think the test SQLite database
should be stored in blib.  That directory belongs to Module::Build, and
the test scripts should stay out of it.

The issue is that the test sqlite_db file is under the control of
perforce, right?  Can't we make a directory like t/tmp and then tell
perforce to ignore it?  Then we can put all our temporary files there:
the database, the session files, the logfile etc.

If the issue is automatic cleanup, then we should make a script called 
99-teardown.t which can remove the temp directory and everything in it.  

But since we're not cleaning up any of our our session files or logfiles 
at the moment either, I don't think that the need for cleanup needs to
block the issue of where to put the SQLite database.

For now we should copy it to t/tmp/sqlite_db and deal with the cleanup
issues later.

Secondly, in copy_database() (in t/TestCDBI.pm):  the use of `pwd` is
not cross-platform safe:

-e $db or die `pwd` . $db;

This should be changed to something like this (untested):

use Cwd;
-e $db or die getcwd . $db;


Michael

---
Michael Graham <[EMAIL PROTECTED]>

___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf


Re: [CAF] Proposed 0.27 release of CAF

2005-12-09 Thread G. Matthew Rice
Richard Dice <[EMAIL PROTECTED]> writes:
> This is a fairly significant release as it has patches in it from Rick
> Delaney regarding the creation of no-login-required interaction.  I've been
> sitting on these for a few weeks without time to test, review, ruminate,
> etc.  But I figure that's it's unfair of me to keep myself forever on the
> critical path, so I'm going to ask the rest of you to take a look, give it
> a try, and let me know how it seems.  If I get enough positive feedback
> I'll upload to CPAN.

Definitely release early and often.  It's still a 0.x release so people
should be willing to take that into account.
-- 
g. matthew rice <[EMAIL PROTECTED]>   starnix, toronto, ontario, ca
phone: 647.722.5301 x242  gpg id: EF9AAD20
http://www.starnix.com  professional linux services & products
___
caf mailing list
caf@lpi.org
http://list.lpi.org/cgi-bin/mailman/listinfo/caf