[Catalyst] Two ways to create record

2008-01-13 Thread Alex Povolotsky
Hello! In Tutorial (BTW, CRUD section of tutorial lacks U completely), I've seen this way of filling in the record: my $book = $c-model('GalleryDB::Gallery')-new({}); $book-populate_from_widget($result); In InstantCRUD data is filled in with my $item = $result-save_to_db(); Can

Re: [Catalyst] Two ways to create record

2008-01-13 Thread Alex Povolotsky
Matt S Trout wrote: On Sun, Jan 13, 2008 at 04:47:38PM +0300, Alex Povolotsky wrote: Hello! In Tutorial (BTW, CRUD section of tutorial lacks U completely), I've seen this way of filling in the record: my $book = $c-model('GalleryDB::Gallery')-new({}); $book-populate_from_widget

Re: [Catalyst] Two ways to create record

2008-01-15 Thread Alex Povolotsky
Matt S Trout wrote: Neither of these are standard DBIx::Class methods; the standard approach is to do my $obj = $rs-new(\%data); maybe use $obj-column_name($value) to set more data $obj-insert; ... I see. It does not depend on model implementation. Ok than, assume I'm using DBI

Re: [Catalyst] Documentation on DBIx Class

2008-01-16 Thread Alex Povolotsky
Tobias Kremer wrote: I need some advice on where to look for documentation specially the DBIx Class and which methods I can use in here along with Catalyst. I've already ordered the Catalyst book but until this arrive any hints? I suggest going through the tutorial application which

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

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

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:

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 select * from

[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] 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:

[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

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 link?... I don't

[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:

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

[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] 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); # Sort by follows, if required

[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

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.

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

[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] 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 = [ map { [ $_-ipid, $_-ipaddr

[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]

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(ref $me); $c-log-info(ref $traffic); yields

[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] 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 === ===

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')-search()-all(); my $ur = $c-model

[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.login,

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}),

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] 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
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

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

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.

[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:

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

[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.0

[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] 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

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 Plugin::I18N

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 Plugin::I18N

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 trouble

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 trouble

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 found garbled content, UTF-8

[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.

[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

[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,

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 worse, Catalyst does

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/ Foo # loads C

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 scheme

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 scheme

[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] 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,

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') does not work

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') does not work

[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

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. Client

[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

[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

[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] 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:

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 trtd[% item.name %]/td td a href=[% c.uri_for('/admin',formname,'edit', item.name) %]edit/a /td/tr result in warning Use of uninitialized value within %URI::Escape::escapes in substitution iterator at

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,

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? And I'm _very_

[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

[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] 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:

[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

[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:

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 tark...@over.ru 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

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 tark...@over.ru 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

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

2011-07-02 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:

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

[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:

[Catalyst] View for graphs

2011-10-08 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:

[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

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( 'Plugin

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 http://localhost:3000/accountview/list?page=4 Do I need to remove this line: my $page = 1; It

[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

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

2012-07-24 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. I've

[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

[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] 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

[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 ===

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 Authentication

[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] 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,