Re: [Catalyst] Safari, Sessions and Cookies

2012-08-13 Thread Mark A. Stratman
On Aug 11, 2012, at 9:56 AM, jeff robinson wrote:
 This hand off causes a change in the user agent that is
 reported to Catalyst, which in turn cause the Session to be reset.

Are you sure that's the reason?  If you haven't already you may want to turn on 
debugging and take a close look at your logs.  The session plugin outputs a 
message when it deletes the session data.

And if it is, in fact, an issue with the user agent, can you verify the 
configuration is being properly read?
Hopefully that gets you a step closer to figuring out what's going on.


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] FCGI problem.

2012-08-03 Thread Mark A. Stratman
On Aug 2, 2012, at 8:43 AM, Duncan Garland wrote:

 Any idea what’s causing this? I tried re-installing Plack::Handler::FCGI but 
 it just made things worse. It works using the development server or cgi. It 
 works using fcgi on our other servers.

 [warn] Use of uninitialized value $host in substitution (s///) at 
 /usr/lib64/perl5/site_perl/share/perl5/Catalyst/Engine.pm line 447, DATA 
 line 998.

I can't say for certain, but it looks like neither the HTTP_HOST nor the 
SERVER_NAME environment variables are set.  Whether this is what's causing the 
FCGI to freak out remains to be seen, but if nobody else has a more 
authoritative answer, this is the first thing I would try to remedy.

- Mark___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Mistake in documentation

2011-04-08 Thread Mark A. Stratman
I fixed it in a branch: /people/mstratman/intro_attribute

So when a core contributor gets around to it, can you please review and put in 
master (there's another /people/mstratman/* branch too, btw).

On Apr 8, 2011, at 3:51 AM, John M. Dlugosz wrote:

 I would suppose that the maintainers follow this mailing list?
 
 Near the beginning of Catalyst::Manual::Intro, it reads:
 
Note that actions with the |:Global | attribute are equivalent to using a 
 |:Path('action_name') | attribute, so our action could be equivalently:
 
 However, the preceding listing it is referring to uses :Local, not :Global.
 
 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/


___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


[Catalyst] Wiki: How To vs. Cookbook, and general change requests

2011-03-25 Thread Mark A. Stratman
I've been picking at it here and there, but one of these days soon I'm 
planning to sit down and thoroughly go through my growing todo list for 
the wiki ... namely page cleanups for consistency, clearly marking 
outdated stuff, and perhaps some slight reorganization.


But first I'd like to run this by everyone since it's a fairly large change:
The howto and the cookbook sections of the wiki both seem to be filling 
the same How do I...? role

http://wiki.catalystframework.org/wiki/gettingstarted/howtos
http://wiki.catalystframework.org/wiki/wikicookbook

Should they remain separate, and if so what should the logical 
distinction between them be?  Otherwise, I'd like to roll them into the 
same page (and if so, anyone have opinions on whether it should be How 
to... or Cookbook ?)


Further, does anyone have anything they'd really like to see happen on 
the wiki but haven't had time to do? Perhaps I can throw it on my plate 
with the rest of this.


--
Mark

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Best form library?

2011-03-06 Thread Mark A. Stratman

On 3/6/11 9:45 AM, Tobias Kremer wrote:

On 06.03.2011, at 16:31, Octavian Rasnita wrote:

From: John M. Dlugoszwxju46g...@snkmail.com

What's the best form-generating/processing library for Catalyst, assuming I 
don't need
to worry about old baggage and can move forward with the latest and greatest 
stuff?


It depends on what you prefer.
The best and most used seem to be HTML::FormFu and HTML::FormHandler.


I'm quite happy with Rose::HTML::Form because I like having forms as classes. It also was 
one of the fastest form solutions back when we evaluated the candidates. Nowadays, I'd 
probably give HTML::FormHandler a try, mainly because it also follows the every 
form is a class approach (which IMHO is *much* better than having your forms 
defined in YAML files).



In addition to the documentation on CPAN, the wiki contains some 
information on those three form handlers too:


HTML::FormFu
http://wiki.catalystframework.org/wiki/howtos/forms/formfu
http://wiki.catalystframework.org/wiki/FormFu_FAQ

HTML::FormHandler
http://wiki.catalystframework.org/wiki/howtos/forms/hfh
http://wiki.catalystframework.org/wiki/hfh_faq

Rose::HTML
http://wiki.catalystframework.org/wiki/rhtmlo

By the way: As you begin using one of them if you run across anything 
you think those pages should have contained, feel free to edit them, or 
send me an email and I'll be happy to (they're on my radar to be better 
interlinked, and cleaned up a bit).


- Mark

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Tutorial : Schema Generator

2010-08-10 Thread Mark A. Stratman

On Aug 2, 2010, at 5:39 PM, Greg Zapp wrote:

 I keep having to manually change 'role_id' and 'user_id' to 'role' and 
 'user'.   My data base is MySQL and I have the foreign keys setup in the 
 UserRole table.  Why is this happening?  It happens for the BookAuthor as 
 well, and it causes checksum mismatches due to my manual intervention:(

Try passing a 'naming' option when you generate the schema:
http://search.cpan.org/~rkitover/DBIx-Class-Schema-Loader-0.07001/lib/DBIx/Class/Schema/Loader/Base.pm#naming

e.g. naming='{relationships=current,monikers=current}'___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Re: possible to get uri fragment?

2010-06-15 Thread Mark A. Stratman
On Jun 15, 2010, at 4:07 AM, Fayland Lam wrote:

 hmm, it seems server can't get #fragment because the browser doesn't send it 
 to server?
 so leave it. Thanks

If the links are being visited from other pages, what you can do is just add an 
http param to all named links. e.g. http://localhost/?anchor=test#test

Or: http://localhost/test1#test1
http://localhost/test2#test2
etc

Where all those are handled by your index and rendering the same template, and 
test1, test2 are just arguments.

If the links are being clicked locally on the page with the anchors, then 
you'll need to set up some javascript 'click' handlers on the links.

- mark
___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


Re: [Catalyst] Literal elements in uri_for generated paths

2010-06-09 Thread Mark A. Stratman
If you're passing a string for the action anyway, why not just append the 
additional @args to it manually?  String paths aren't url encoded, but the 
additional args will be.

That is: c.uri_for('/static/data/eof/{symbol}.txt').path

On Jun 8, 2010, at 3:16 AM, Octavian Rasnita wrote:

 Hi,
  
 I have tried to use uri_for() in some parameters of a Java applet, but that 
 URI should contain chars like { and } which then should be replaced by the 
 appled with something else:
  
 param name=DataSource value=[% c.uri_for('/static/data/eof', 
 '{symbol}.txt').path %]
  
 If I do this , { and } are URI encoded and I don't want that.
  
 Is it possible to create URIs that contain literal {symbol} when using 
 uri_for() or uri_for_action()?
  
 Thanks.
  
 --
 Octavian
 
 
 __ Information from ESET NOD32 Antivirus, version of virus signature 
 database 5180 (20100607) __
 
 The message was checked by ESET NOD32 Antivirus.
 
 http://www.eset.com
 ___
 List: Catalyst@lists.scsys.co.uk
 Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
 Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
 Dev site: http://dev.catalyst.perl.org/

___
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/