Re: [Catalyst] Static::Simple plugin does not load

2017-04-26 Thread Alex Povolotsky
Yes. On 23.04.2017 7:22, mallah wrote: is it resolved now ? regd s mallah Sent from my Samsung Galaxy smartphone. Original message From: Alex Povolotsky Date: 4/21/17 16:33 (GMT+05:30) To: catalyst@lists.scsys.co.uk Subject: Re: [Catalyst] Static::Simple plugin does not

Re: [Catalyst] Static::Simple plugin does not load

2017-04-21 Thread Alex Povolotsky
Well, it did not serve anything, silently. After lots of research, I've found in root directory kdbe.yaml and kdbe.conf, the later is nginx config. Catalyst read it as well as .yaml and somehow it made Static::Simple disappointed so much that it did not serve anything... On 16.04.2017 9:03,

[Catalyst] Static::Simple plugin does not load

2017-04-15 Thread Alex Povolotsky
Hello I've installed a new Catalyst environment from scratch, and Static::Simple does not show up in list of loaded plugins and does not work. Catalyst-Action-RenderView-0.16_1 Catalyst-Devel-1.39 Catalyst-Plugin-ConfigLoader-0.34_1 Catalyst-Plugin-Static-Simple-0.33 Catalyst-Runtime-5.90114

Re: [Catalyst] Catalyst and unicode: broken or I'm dumb?

2014-02-24 Thread Alex Povolotsky
On 02/24/14 20:29, Alex Povolotsky wrote: You dumbass missed use utf-8; in EVERY of your modules. EVERY means EVERY, not just Kukso. Hello I cannot get VERY simple code with UTF-8 to work. Let's see === cut Kukso.pm === use utf-8; use Catalyst qw/ +CatalystX::SimpleLogin Authentic

[Catalyst] Catalyst and unicode: broken or I'm dumb?

2014-02-24 Thread Alex Povolotsky
Hello I cannot get VERY simple code with UTF-8 to work. Let's see === cut Kukso.pm === use utf-8; use Catalyst qw/ +CatalystX::SimpleLogin Authentication Session Session::State::Cookie Session::Store::FastMmap ConfigLoader Static::Simple Unicode::Encoding /; === cut === === cut HTML.pm === pac

[Catalyst] DBIx::Class::Core does not define $DBIx::Class::Core::VERSION--version check failed at /usr/local/lib/perl5/site_perl/5.16/Module/Runtime.pm line 386.

2014-02-17 Thread Alex Povolotsky
Hello I've started an application with Catalyst, added some fairly simple and tested code, and got an error Couldn't instantiate component "Monitor::Model::DB", "{UNKNOWN}: DBIx::Class::Core does not define $DBIx::Class::Core::VERSION--version check failed at /usr/local/lib/perl5/site_perl/5

[Catalyst] Stupid error with C::Authentication

2013-08-26 Thread Alex Povolotsky
Hello In a quite simple application __PACKAGE__->config('Plugin::Authentication' => { default_realm => 'members', realms => { members => { credential => {

[Catalyst] Adding CaptureArgs for the whole controller?

2013-04-02 Thread Alex Povolotsky
Hello! I'm implementing some sort of simple CRM, and I'd like to handle a chain like /domain/*/service/*/edit with controller App::Controller::Domain::Service, not with App::Controller::Domain How can I set CaptureArgs for the whole App::Controller::Domain::Service? I'd like to handle capt

Re: [Catalyst] X-Forwarded-Port works no more?

2012-07-23 Thread Alex Povolotsky
On 07/23/12 21:52, Tomas Doran wrote: On 23 Jul 2012, at 08:48, Alex Povolotsky wrote: Hello, I'm setting up MojoMojo, https-protected. However, it keeps making http: urls. Setting X-Forwarded-Port did not help a bit, and trying to grep X-Forwarded-Port to 443 did not help as well.

[Catalyst] X-Forwarded-Port works no more?

2012-07-23 Thread Alex Povolotsky
Hello, I'm setting up MojoMojo, https-protected. However, it keeps making http: urls. Setting X-Forwarded-Port did not help a bit, and trying to grep X-Forwarded-Port to 443 did not help as well. I've set fastcgi_param HTTPS 1, and it helps, but why X-Forwarded-Port is mentioned but does no

Re: [Catalyst] Paging problem

2012-04-27 Thread Alex Povolotsky
On 04/28/12 00:05, Kenneth S Mclane wrote: > > > ok, I tried this: > > my ($self, $c, $page) = @_; > > and my template code is issueing uri's like this: > > http://localhost:3000/accountview/list?page=4 > > > Do I need to remove this line: > > my $pa

Re: [Catalyst] Double encoded UTF in config and string constants

2011-11-05 Thread Alex Povolotsky
On 11/05/11 16:43, Peter Flanigan wrote: On 05/11/11 10:41, Alexey Illarionov wrote: On 05.11.2011 13:36, Alex Povolotsky wrote: How do I make Confg::Any understand that my .conf file is in UTF-8 and how do I correctly put UTF-8 string constants into code? __PACKAGE__->config( 

[Catalyst] Double encoded UTF in config and string constants

2011-11-05 Thread Alex Povolotsky
Hello! With Catalyst::Plugin::Unicode::Encoding, data from databases works fine. Templates in UTF-8 are also OK. However, data from .conf or UTF-8 constants in code still gets double-encoded. Data/constants are UTF-8, but perl for some reason does not set UTF-8 flag on them. What's more str

[Catalyst] View for graphs

2011-10-07 Thread Alex Povolotsky
Hello, what C::V would you recommend for graph drawing? It should not be abandoned by author a year ago at version 0.02 and be more or less working and stable. Alex ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/ma

[Catalyst] I18N and TT question

2011-07-25 Thread Alex Povolotsky
Hello! How do I define a macro for localization GLOBALLY? I don't like to add MACRO to every template, nor I don't want to write c.localize() instead of l() Alex ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailma

[Catalyst] Catalyst::TraitFor::Model::DBIC::Schema::Caching and default behavior

2011-07-03 Thread Alex Povolotsky
Hello! How can I set some cache_for to be default for all searches? Without explicit cache_for, TraitFor Caching does not seem to do anything but load itself. Alex ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mai

Re: [Catalyst] Complete example for autocomplete with HTML::FormFu, please

2011-07-02 Thread Alex Povolotsky
On 07/02/11 11:23, Oroszi, Ro'bert wrote: In my opinion you should use jQueryUI because it's official (very efficient team working on it), unlike the simple jQuery plugins. Sounds reasonable; however, plugin works, jQueryUI not, and I'll try to make it work if time permits. Thanks. Alex

Re: [Catalyst] Complete example for autocomplete with HTML::FormFu, please

2011-07-01 Thread Alex Povolotsky
On 07/01/11 21:18, Alan Humphrey wrote: Firebug shows the following as the JSON content returned in their demo: I've found http://www.devbridge.com/projects/autocomplete/jquery/ - works like a charm and well-documented. Alex ___ List: Catalyst@li

Re: [Catalyst] Complete example for autocomplete with HTML::FormFu, please

2011-07-01 Thread Alex Povolotsky
On 06/19/11 13:44, Charlie Garrison wrote: Good evening, On 19/06/11 at 12:18 AM +0400, Alex Povolotsky wrote: I'm trying to make a form with autocomplete text edit field; I do understand general workflow but I still miss some simple-but-complete example. Can anyone please provide me

Re: [Catalyst] Complete example for autocomplete with HTML::FormFu, please

2011-06-19 Thread Alex Povolotsky
On 06/19/11 13:44, Charlie Garrison wrote: Good evening, On 19/06/11 at 12:18 AM +0400, Alex Povolotsky wrote: I'm trying to make a form with autocomplete text edit field; I do understand general workflow but I still miss some simple-but-complete example. Can anyone please provide me

[Catalyst] Complete example for autocomplete with HTML::FormFu, please

2011-06-18 Thread Alex Povolotsky
Hello! I'm trying to make a form with autocomplete text edit field; I do understand general workflow but I still miss some simple-but-complete example. Can anyone please provide me with one? JQuery would be the best. Alex ___ List: Catalyst@lists.

[Catalyst] Which JS framework to use?

2011-03-13 Thread Alex Povolotsky
Hello! I'm QUITE new to JS, and tried my best to evade it, but now I have to face that thing. First of all, I'd need autocompletion and form extension ("Add one more field" button, to clone selectbox+text fields) I understand that it can be done using ANY nowadays framework, but I'd also l

[Catalyst] Something wrong in Catalyst::Model::DBIC::Schema?

2011-02-24 Thread Alex Povolotsky
Hello! Freshly created application with out-of-the-box Catalyst::Model::DBIC::Schema-based model (nothing except creation with helper)fails to run, all modules are fresh. Application just does not run. Have I missed something? > ./script/ptest_server.pl Couldn't load class (PTest) because: C

[Catalyst] Forcing scalar context in TT?

2010-12-23 Thread Alex Povolotsky
Hello! I'm writing an application that needs to count some related objects [% row.objects.count %] results in "select * from objects" [% row.objects.scalar.count %] yields an error [% row.search_related_rs('objects').count %] is UGLY Do I have any better solution? Alex. _

[Catalyst] Catalyst handling big files?

2010-08-13 Thread Alex Povolotsky
Hello! I'm working on processing relatively big (10+Mb) XML files, and it seems to me that Catalyst is taking an awful lot of time on some internal processing before call to handler, using surprisingly 200 MBs of RAM (about 40 MBs before request) Can I somehow improve Catalyst's performance?

[Catalyst] Catalyst::Plugin::Prototype: current state?

2010-03-20 Thread Alex Povolotsky
Hello! Catalyst::Plugin::Prototype is supplied with Prototype 1.4.0; however, http://prototype.conio.net/ does not work at present and http://script.aculo.us/ states that current Prototype version is 1.6.1 Can anyont point me at - interoperability with C::P::P and current Prototype - maybe o

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Alex Povolotsky
On 03/09/10 16:55, Tomas Doran wrote: Alex Povolotsky wrote: Catalyst is 5.80020 5.80021 2010-03-03 23:02:01 Bug fixed: - $c->uri_for will now escape unsafe characterss in captures ($c->request->captures) and correctly encode utf8 charracters. Can you try upgrading?

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Alex Povolotsky
On 03/09/10 17:05, Bernhard Graf wrote: Then you are probably doing it wrong! I suspect that you want to use cyrillic characters. The problem is, that most software components (also Perl) default to latin1 or similar. A good start is always to use utf-8 encoding everywhere: your source code, y

Re: [Catalyst] uri_for and unicode

2010-03-09 Thread Alex Povolotsky
On 03/09/10 13:47, Bernhard Graf wrote: Am 09.03.2010 11:26, schrieb Alex Povolotsky: uri_for seems to have some troubles with unicode. Use of uninitialized value within %URI::Escape::escapes in substitution iterator at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 1268

[Catalyst] uri_for and unicode

2010-03-09 Thread Alex Povolotsky
Hello! uri_for seems to have some troubles with unicode. The following template part [% item.name %] edit result in warning Use of uninitialized value within %URI::Escape::escapes in substitution iterator at /usr/local/lib/perl5/site_perl/5.10.1/Catalyst.pm line 1268. and, while displayi

[Catalyst] Users, roles, HTML::FormFu::DBIx::Class::Model - complete example?

2010-01-27 Thread Alex Povolotsky
Hello! Maybe someone can provide the community with complete example of users/roles editor with HTML::FormFu::DBIx::Class::Model? Manual drops to foo:bar explaination too often ( Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.s

[Catalyst] How to change base class for autogenerated Schema/* files?

2010-01-18 Thread Alex Povolotsky
Hello! I'm using Catalyst::Model::DBIC::Schema::Loader and autogenerate Schema/*.pm files. I'd like to add some common functionality to some of them, and I'd greatly prefer adding it in one place to copypasting code. How to I change base class for them? Of course that class should inherit

[Catalyst] Elegant way to check action presence?

2010-01-09 Thread Alex Povolotsky
Hello! I'm working on a (more or less) flexible system with plugins should be installed just like controllers; some basic information about them (particulary, numerical id) must be kept in database. Plugins should be handle some queries in /admin/service/$servicename I'd like to put 'smart l

[Catalyst] CATALYST_DEBUG is broken?

2010-01-07 Thread Alex Povolotsky
Hello! Catalyst::Runtime 5.80016, freshly generated script, nearly empty application. Running with CATALYST_DEBUG=1, on every incoming request [error] Caught exception in engine "Attribute (_static_debug_message) does not pass the type constraint because: Validation failed for 'Str' failed

Re: [Catalyst] Help with weird client: POST without Content-Type

2009-12-18 Thread Alex Povolotsky
Andrew Rodland wrote: On Friday 18 December 2009 05:11:56 am Alex Povolotsky wrote: Hello! I'm (still) working with weird client-weird server-weird DB system, and I need some more help from community. Weird self-written client sends POST request without setting Content-Type at all. C

[Catalyst] Help with weird client: POST without Content-Type

2009-12-18 Thread Alex Povolotsky
Hello! I'm (still) working with weird client-weird server-weird DB system, and I need some more help from community. Weird self-written client sends POST request without setting Content-Type at all. Client will be fixed, but until then I have to force Catalyst to parse that request as if i

Re: [Catalyst] go to chained action

2009-12-17 Thread Alex Povolotsky
Tomas Doran wrote: On 16 Dec 2009, at 13:18, Alex Povolotsky wrote: Hello! Having, for example, /controller/*/action handled by /controller/base (1) => /controller/action, how do I write correct go to /controller/argument/action ? just $c->go('/controller/argument/action'

Re: [Catalyst] go to chained action

2009-12-17 Thread Alex Povolotsky
Tomas Doran wrote: On 16 Dec 2009, at 13:18, Alex Povolotsky wrote: Hello! Having, for example, /controller/*/action handled by /controller/base (1) => /controller/action, how do I write correct go to /controller/argument/action ? just $c->go('/controller/argument/action'

[Catalyst] go to chained action

2009-12-16 Thread Alex Povolotsky
Hello! Having, for example, /controller/*/action handled by /controller/base (1) => /controller/action, how do I write correct go to /controller/argument/action ? just $c->go('/controller/argument/action') does not work. $c->go('/controller/action', [qw(argument)]) does not work as well, wh

[Catalyst] Forcing model to reconnect with different connect_info

2009-12-10 Thread Alex Povolotsky
Hello! It's a bit of crazed setup, but I do have it; I have about 100 identicaly-structured based with different conent. I think it's more reasonable to have one model and set dbname for each connect. However, I haven't found any way to force model to reconnect with different connect_info. M

[Catalyst] Catalyst::Model::Factory::PerRequest: missing something?

2009-02-24 Thread Alex Povolotsky
Hello! I'm trying to glue Mail::IMAPTalk to Catalyst::Model with C::M::Factory::PerRequest and I'm sorely missing something important. What should I write to glue module to make it a simple thing - on first request to $c->model('IMAP') read server name from config and just connect to it? I

[Catalyst] Current state of Catalyst::Model::IMAP

2009-02-12 Thread Alex Povolotsky
Hello! Can anyone tell me about current status of Catalyst::Model::IMAP? Alex. ___ 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.sc

Re: [Catalyst] Plugin::Authentication vs Authentiaction

2008-11-10 Thread Alex Povolotsky
John Romkey wrote: On Nov 10, 2008, at 8:46 AM, Alex Povolotsky wrote: That's not enough. Apparently, Plugin::Authentication is different from Authentication, and slightly not compartible. Alex, The Authentication modules underwent a significant overhaul a while back. In the old s

Re: [Catalyst] Plugin::Authentication vs Authentiaction

2008-11-10 Thread Alex Povolotsky
John Romkey wrote: On Nov 10, 2008, at 8:46 AM, Alex Povolotsky wrote: That's not enough. Apparently, Plugin::Authentication is different from Authentication, and slightly not compartible. Alex, The Authentication modules underwent a significant overhaul a while back. In the old s

Re: [Catalyst] Plugin::Authentication vs Authentiaction

2008-11-10 Thread Alex Povolotsky
Joel Bernstein wrote: 2008/11/10 Alex Povolotsky <[EMAIL PROTECTED]>: Joel Bernstein wrote: The fine manual states: If your plugin starts with a name other than Catalyst::Plugin::, you can fully qualify the name by using a unary plus. So you'd do: use Catalyst qw/ Fo

Re: [Catalyst] Plugin::Authentication vs Authentiaction

2008-11-10 Thread Alex Povolotsky
Joel Bernstein wrote: 2008/11/10 Alex Povolotsky <[EMAIL PROTECTED]>: Hello! Trying to use Catalyst::Authentication::Credential::Authen::Simple (::RADIUS, but it does not matter), I've found that I've got two Authentication directories, one is under Plugin. What's wor

[Catalyst] Plugin::Authentication vs Authentiaction

2008-11-10 Thread Alex Povolotsky
Hello! Trying to use Catalyst::Authentication::Credential::Authen::Simple (::RADIUS, but it does not matter), I've found that I've got two Authentication directories, one is under Plugin. What's worse, Catalyst does not load Catalyst::Authentication::Credential::Authen::Simple automatically,

[Catalyst] many_to_many filling

2008-04-01 Thread Alex Povolotsky
defaults_from_model does only default settings. To fill select/checkbox group/whatever else, one must add to .yml file: db: model: (name-of-your-Catalyst-model) resultset: (name-of-proper-resultset) label_column: (column to put into label) It is not documented anywhere but can be extracted f

[Catalyst] Nested calls to model does not work?

2008-04-01 Thread Alex Povolotsky
Sorry for resending, looks like everyone able to answer overlooked this message. I'm researching the problem without much success. Hello! I've experienced strange problem displaying data. Minimal test case is fairly big, I can attach it here, but will try to extract most important information.

Re: [Catalyst] mod_perl2 vs. Catalyst server: utf problem

2008-03-31 Thread Alex Povolotsky
Jon wrote: On Sat, Mar 22, 2008 at 7:34 PM, Alex Povolotsky <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hello! Hi I've debugged my app under Catalyst::HTTP server, it worked just fine with UTF-8. After deploying it under mod_perl, I've

[Catalyst] Nested calls to model does not work?

2008-03-31 Thread Alex Povolotsky
Hello! I've experienced strange problem displaying data. Minimal test case is fairly big, I can attach it here, but will try to extract most important information. Creating database (Pg) create table parent (pid serial primary key, name varchar(64)); create table child (cid serial primary ke

Re: [Catalyst] Plugin::I18N and UTF-8

2008-03-24 Thread Alex Povolotsky
Knut-Olav Hoven wrote: On Monday 24 March 2008 14:33:47 Alex Povolotsky wrote: Knut-Olav Hoven wrote: On Monday 24 March 2008 08:08:06 Alex Povolotsky wrote: Hello! Having completed UTF-8 quest successfully, I've tried to do I18N and found the same double-UTF-encoding tr

Re: [Catalyst] Plugin::I18N and UTF-8

2008-03-24 Thread Alex Povolotsky
Knut-Olav Hoven wrote: On Monday 24 March 2008 14:33:47 Alex Povolotsky wrote: Knut-Olav Hoven wrote: On Monday 24 March 2008 08:08:06 Alex Povolotsky wrote: Hello! Having completed UTF-8 quest successfully, I've tried to do I18N and found the same double-UTF-encoding tr

Re: [Catalyst] Plugin::I18N and UTF-8

2008-03-24 Thread Alex Povolotsky
Andrew Rodland wrote: On Monday 24 March 2008 02:08:06 am Alex Povolotsky wrote: Hello! Having completed UTF-8 quest successfully, I've tried to do I18N and found the same double-UTF-encoding trouble. I've put UTF-8 strings into I18N/ru.po file,and configured Plugin:I18N Pl

Re: [Catalyst] Plugin::I18N and UTF-8

2008-03-24 Thread Alex Povolotsky
Knut-Olav Hoven wrote: On Monday 24 March 2008 08:08:06 Alex Povolotsky wrote: Hello! Having completed UTF-8 quest successfully, I've tried to do I18N and found the same double-UTF-encoding trouble. I've put UTF-8 strings into I18N/ru.po file,and configured Plugin:I18N Pl

[Catalyst] fix config right before database connect?

2008-03-24 Thread Alex Povolotsky
Hello! I'm running several instances of Catalyst app (for every developer and production) on the same box; I'm thinking of automatically patch database name loaded from config file to allow separate copies of databases to coexist transparently. What should I override to fix config AFTER file

[Catalyst] Plugin::I18N and UTF-8

2008-03-24 Thread Alex Povolotsky
Hello! Having completed UTF-8 quest successfully, I've tried to do I18N and found the same double-UTF-encoding trouble. I've put UTF-8 strings into I18N/ru.po file,and configured Plugin:I18N Plugin::I18N: maketext_options: Decode: 0 Encoding: utf-8 (Decode: 1 did not make a

[Catalyst] mod_perl2 vs. Catalyst server: utf problem

2008-03-22 Thread Alex Povolotsky
Hello! I've debugged my app under Catalyst::HTTP server, it worked just fine with UTF-8. After deploying it under mod_perl, I've found garbled content, UTF-8 strings are just different. I'm using perl 5.8.8, apache 2.2.8, mod_perl2 2.0.3_3. Searching interned yielded no result at all. Ale

[Catalyst] Handy shotcuts

2008-03-20 Thread Alex Povolotsky
Hello! I've implemented $c->uri_redirect($path) as a shortcut to $c->res->redirect($c->uri_for($path)) and $c->uri_redirect_d($path) as $c->uri_redirect($path); $c->detach() I guess these shortcuts are really useful. Patch is attached. Alex. --- Catalyst.pm.orig 2008-03-20 13:11:59.00

Re: [Catalyst] Behaviour of Catalyst::Plugin::Authentication

2008-03-19 Thread Alex Povolotsky
Jochen Luig wrote: Hi, I stumbled upon a feature of the Authentication Plugin today (Yes I was the guy who used Ash's cardboard cutout programmer service earlier today on #catalyst, so thanks again, Ash ;-) My configuration was something like this: authentication: default_realm: users real

Re: [Catalyst] Catalyst and Shibboleth authentication

2008-03-17 Thread Alex Povolotsky
Jay K wrote: My point is simply that I built the Auth module to allow the most flexibility for customization without the need to 'rewrite Catalyst from scratch' as you put it. Any of the hook points I mentioned can be appropriate, and indeed for an SSO such as OpenID, which is much more comple

Re: [Catalyst] Catalyst and Shibboleth authentication

2008-03-17 Thread Alex Povolotsky
Jay K wrote: That page is slightly incorrect. In C::A::Store::Null -based class, apparently $storeclass- >can('find_user') returns 0 (called from C::A::Authentication::Realm.pm line 85) so Realm tries to construct find_user by itself, without success. Yes. Null does not implement find_use

Re: [Catalyst] Automatically uri_unescape parameters

2008-03-17 Thread Alex Povolotsky
Ashley wrote: On Mar 17, 2008, at 1:53 PM, Alex Povolotsky wrote: So far I can tell only that SOMETIMES it does not escape it properly. I'm heavily pressed by missing deadline, but I'll make a test case and send it to you. This sounds like you are double encoding URIs in some

Re: [Catalyst] Automatically uri_unescape parameters

2008-03-17 Thread Alex Povolotsky
Jonathan Rockway wrote: * On Mon, Mar 17 2008, Stef T wrote: Hello Alex, I would assume that if Catalyst-Plugin-HTML-Scrubber-0.01 doesn't do what you want, it will probably point you in the right direction ;) You could probably also do this using the DBIx inflate_column I dare say.

[Catalyst] Automatically uri_unescape parameters

2008-03-17 Thread Alex Povolotsky
Hello! Do we have some way to automatically uri_unescape parameters passed to handlers? Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/

Re: [Catalyst] Catalyst and Shibboleth authentication

2008-03-15 Thread Alex Povolotsky
Mike Whitaker wrote: On 14 Mar 2008, at 19:00, Kirby Krueger wrote: Greetings, I'm writing a new web application, and have decided to jump into Catalyst (because I am smart.) One thing that Catalyst seems to do well is have a good mechanism for plugging in standard approaches to things.

Re: [Catalyst] Catalyst and Shibboleth authentication

2008-03-15 Thread Alex Povolotsky
Ashley wrote: Well, The Whole Thing seems reasonable; however, maybe you'll provide me with some idea on more complex setup? I want to AUTHENTICATE users via some external SSO, but KEEP users once they've been authenticated into database. I have (still) no good idea on interaction of Realm

Re: [Catalyst] Catalyst and Shibboleth authentication

2008-03-15 Thread Alex Povolotsky
Mike Whitaker wrote: I dunno exactly what Shibboleth does, but if the notes on dealing with external single sign on (http://catwiki.toeat.com/gettingstarted/tutorialsandhowtos/sso_authentication) are any help, steal away :) (JayK did sanity check them for me, and He Should Know :) ) That p

Re: [Catalyst] Catalyst and Shibboleth authentication

2008-03-15 Thread Alex Povolotsky
Mike Whitaker wrote: On 14 Mar 2008, at 19:00, Kirby Krueger wrote: Greetings, I'm writing a new web application, and have decided to jump into Catalyst (because I am smart.) One thing that Catalyst seems to do well is have a good mechanism for plugging in standard approaches to things.

Re: [Catalyst] model update

2008-03-08 Thread Alex Povolotsky
Jennifer Ahn wrote: hello! i'm writing my first controller method to update the database using the catalyst model, but i seem to have the syntax for that all wrong. my $obj = $c->model ('MyAppDB::Student')->update ( { name => $name }, { id => $id} ); I'm updating

Re: [Catalyst] CGI.pm and Catalyst?

2008-03-07 Thread Alex Povolotsky
Martin Ellison wrote: Is there anything attached to Catalyst similar to the CGI.pm module? That is, creating the HTML by a series of procedure calls rather than by instantiating a template? Or is there some way to link up the existing CGI module? $c->response->body(ul(li(q{hello}), li(q{world

[Catalyst] On authentication again

2008-03-06 Thread Alex Povolotsky
Hello! Maybe someone could provide the complete example of auth system with MODERN Catalyst::Plugin::Authentication? I mean, with database, Model and proper config. Right now, I've stopped by You must provide a user_class at /usr/local/lib/perl5/site_perl/5.8.8/Catalyst.pm line 911 error,

Re: [Catalyst] How can it be - wrong model returned?

2008-03-06 Thread Alex Povolotsky
Ash Berlin wrote: On 6 Mar 2008, at 11:12, Alex Povolotsky wrote: Hello! I've made a simple many-to-many relationship for user/roles authentication, and suddenly found that my $model = $c->model('Pwuser')->search()->all(); my $roles = $c->model('Role&#

[Catalyst] How can it be - wrong model returned?

2008-03-06 Thread Alex Povolotsky
Hello! I've made a simple many-to-many relationship for user/roles authentication, and suddenly found that my $model = $c->model('Pwuser')->search()->all(); my $roles = $c->model('Role')->search()->all(); my $ur = $c->model('UserRole')->search()->all(); results in SELECT me.uid, me.

Re: [Catalyst] On authentication

2008-03-05 Thread Alex Povolotsky
Felix Antonius Wilhelm Ostmann wrote: i asked for that yesterday in the channel ... you must install Catalyst::Authentication::Store::DBIx::Class (without Plugin) Cool... maybe you'd explain me a bit configuration options? Role-related ones are just mentioned in docs, not explained at all A

[Catalyst] On HTML::FormFu rendering

2008-03-05 Thread Alex Povolotsky
Hello! I'm trying to use Catalyst::Controller::HTML::FormFu Code is quite simple for this time === from controller === sub add : Local FormConfig { my ($self, $c) = @_; my $form : Stashed; } === cut === === TT template === [% META title = 'Add user' %] [% Form.render %] === cut === === Y

[Catalyst] On authentication

2008-03-05 Thread Alex Povolotsky
Hello! Comparing tutorial/book and perldoc Catalyst::Plugin::Authentication, I've found completely different ways to configure authentication/authorization. Looks like Catalyst::Plugin::Authentication is much richer, but much worse documented and, say, there is no Catalyst::Plugin::Authenticat

Re: [Catalyst] $c->model weirdness?

2008-03-01 Thread Alex Povolotsky
Alex Povolotsky wrote: Hello! I've created the DBIC model with helper script, all files are in place and seems to be OK. However, my $model = $c->model('TrafficDB::Server'); my $traffic = $c->model('TrafficDB::DailySummary'); . $c->log->info(

[Catalyst] $c->model weirdness?

2008-03-01 Thread Alex Povolotsky
Hello! I've created the DBIC model with helper script, all files are in place and seems to be OK. However, my $model = $c->model('TrafficDB::Server'); my $traffic = $c->model('TrafficDB::DailySummary'); ... $c->log->info(ref $me); $c->log->info(ref $traffic); yields [info] Traffic2::M::

[Catalyst] Catalyst::Controller::FormBuilder and select - need help - again

2008-02-28 Thread Alex Povolotsky
Hello! I'm trying to fill in select in Form-based action (Catalyst::Controller::FormBuilder). Debug shows that select IS filled properly, attempt to $c->log->info($self->formbuilder->render); yields correctly filled select, but in template no inserted data appears. What could I have done wr

Re: [Catalyst] Re: Needs some help with select and Controller::FormBuilder

2008-02-27 Thread Alex Povolotsky
Stephen Sykes wrote: Alex Povolotsky wrote: Hello! I'm trying to make a form with select using Controller::FormBuilder. Code is quite straightforward Why not map directly from your model... $self->formbuilder->field( name => 'ipid', options =&g

[Catalyst] Needs some help with select and Controller::FormBuilder

2008-02-26 Thread Alex Povolotsky
Hello! I'm trying to make a form with select using Controller::FormBuilder. Code is quite straightforward === edit.fb === name: server_edit method: post fields: name: label: Server Name required: 1 type: text size: 60 descr:

Re: [Catalyst] Dumb questionagain: nowCatalyst::Controller::FormBuilder

2008-02-25 Thread Alex Povolotsky
Peter Sørensen wrote: what I meant was: name: location_edit method: post title: Location fields: CHANHE HERE ---> locationname: insteadof name name: Location name type: text size: 60 required: 1 descr: name: Location description type: textarea row

Re: [Catalyst] Book

2008-02-25 Thread Alex Povolotsky
Dermot wrote: Hi, I am considering getting the Catalyst book and had a question or 2. Should it be bought from the Packt publishing site as opposed to anywhere else? Does buying it there help the catalyst project in some way more than buying it at another site that perhaps I am already regis

Re: [Catalyst] Dumb question again: nowCatalyst::Controller::FormBuilder

2008-02-25 Thread Alex Povolotsky
Peter Sørensen wrote: Maybe FormBuilder don't like: fields: name: name: Location name You use "name" as both field and object name. Just a guess. Oh no! Removing first name: yields the same error with method :( Alex.

[Catalyst] Dumb question again: now Catalyst::Controller::FormBuilder

2008-02-23 Thread Alex Povolotsky
[info] *** Request 1 (1.000/s) [43248] [Sun Feb 24 02:05:17 2008] *** [debug] "GET" request for "location/add" from "89.222.147.9" [debug] Path is "location/add" [debug] Form (location/edit): Looking for config file location/edit.fb [debug] Form (location/edit): Found form config /usr/local/traff

Re: [Catalyst] Feelnig dumb: $c->model returns controller?

2008-02-23 Thread Alex Povolotsky
Alex Povolotsky wrote: Hello! I'm still writing my first Catalyst app; I'm beginning to love DBIx, and the overall concept. But. my $lmodel = $c->model('Location'); use Data::Dumper; print STDERR Dumper($lmodel); my $locs = $lmodel->search(undef); # Sor

[Catalyst] Feelnig dumb: $c->model returns controller?

2008-02-23 Thread Alex Povolotsky
Hello! I'm still writing my first Catalyst app; I'm beginning to love DBIx, and the overall concept. But. my $lmodel = $c->model('Location'); use Data::Dumper; print STDERR Dumper($lmodel); my $locs = $lmodel->search(undef); # Sort by follows, if required

Re: [Catalyst] So, what do we want in the -next- book?

2008-02-23 Thread Alex Povolotsky
Matt S Trout wrote: Since a fair few of you will now have John's book, I figured it was time to ask what you'd want from a second book. I guess the existing one provides a pretty good tutorial style, so we should be looking at something more in-depth / intermediate to advanced. What do you guys

[Catalyst] Instant CRUD with DBIC::Schema

2008-02-20 Thread Alex Povolotsky
Hello! Scaffold seems to be a good thing, but it is using CDBI. Maybe something like it with DBIC exists? Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www

Re: [Catalyst] Dumb (?) question on TTsite

2008-02-18 Thread Alex Povolotsky
Matt S Trout wrote: On Sun, Feb 17, 2008 at 11:20:46PM +0300, Alex Povolotsky wrote: Hello! How can I access variables in [% META %] part of template? META is compile-time. There aren't any variables yet. So do I have a way to modify title without rewriting TTsite wr

Re: [Catalyst] Calendar for Catalyst application?...

2008-02-18 Thread Alex Povolotsky
Len Jaffe wrote: On Feb 17, 2008 2:14 PM, Alex Povolotsky <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hello! I recall I've seen somewhere calendar plugin for catalyst applications, but I cannot find one. Maybe someone will point me to a missing

[Catalyst] Dumb (?) question on TTsite

2008-02-17 Thread Alex Povolotsky
Hello! How can I access variables in [% META %] part of template? I've found no example in tutorial and no clues as well... Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable a

[Catalyst] Calendar for Catalyst application?...

2008-02-17 Thread Alex Povolotsky
Hello! I recall I've seen somewhere calendar plugin for catalyst applications, but I cannot find one. Maybe someone will point me to a missing link?... Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/li

Re: [Catalyst] Dumb question of a beginner

2008-02-11 Thread Alex Povolotsky
Johan Lindström wrote: At 11:21 2008-02-11, Alex Povolotsky wrote: Looking at Catalyst::Enzyme::CRUD::Controller . $c->stash->{items} = [ $model->retrieve_all() ]; . what should I change? If you're a newbie, I think it's a mistake to go down the Class::DBI rou

Re: [Catalyst] Dumb question of a beginner

2008-02-11 Thread Alex Povolotsky
Chisel Wright wrote: On Mon, Feb 11, 2008 at 12:55:55PM +0300, Alex Povolotsky wrote: Hello! I haven't find the answer in FAQ and cookbook, so I'm asking here. How do I add server-side sorting for list operation? I want to select * from table sort by field instead of default sel

[Catalyst] Dumb question of a beginner

2008-02-11 Thread Alex Povolotsky
Hello! I haven't find the answer in FAQ and cookbook, so I'm asking here. How do I add server-side sorting for list operation? I want to select * from table sort by field instead of default select * from table Alex. ___ List: Catalyst@lists.scsys.

Re: [Catalyst] Documentation on DBIx Class

2008-01-18 Thread Alex Povolotsky
Jennifer Ahn wrote: Where is a good place to learn DBIx::Class in a few hours? I've always used the DBI module for my CGI scripts. Few hours? Ask your documentation pills dealer... ;) Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://list

Re: [Catalyst] Documentation on DBIx Class

2008-01-18 Thread Alex Povolotsky
Ian Tegebo wrote: Unfortunately, Tutorial is weak. CRUD section lacks Update at all, and it does not deal with any transaction, and it seems to use poor methods to create records. Could you provide an example of richer methods for record creation? Not yet. I'm learning Catalyst for ab

Re: [Catalyst] Development environments and performance

2008-01-16 Thread Alex Povolotsky
Ian Docherty wrote: I would just like to canvas opinion on a good development environment and practices for Catalyst since we are starting to have some performance issues. We are running on a managed server (Red Hat Enterprise), Apache2, MySql 5.1 We have several people developing on this m

  1   2   >