IRC log for #flow3 on 20120928

00:49.41*** join/#flow3 tomasito (~tomasito@c-76-110-206-191.hsd1.fl.comcast.net)
00:53.25*** join/#flow3 robsonpeixoto (~robsonpei@189-104-20-120.user.veloxzone.com.br)
01:30.57*** join/#flow3 shoelessone (~kevin@76.14.67.16)
03:01.13*** join/#flow3 Nurbs (~nurbs@f048138060.adsl.alicedsl.de)
03:04.43*** join/#flow3 robsonpeixoto (~robsonpei@189-104-20-120.user.veloxzone.com.br)
04:30.55*** join/#flow3 skurfuerst (~Adium@pD95FB430.dip0.t-ipconnect.de)
04:46.25*** join/#flow3 robsonpeixoto (~robsonpei@189-104-20-120.user.veloxzone.com.br)
05:29.43*** join/#flow3 Michael (c219cfca@gateway/web/freenode/ip.194.25.207.202)
05:36.18*** join/#flow3 foertel (~foertel@p4FE66201.dip0.t-ipconnect.de)
05:49.07*** join/#flow3 lelepankaj (~lelepanka@116.74.73.4)
06:07.30*** join/#flow3 xaver (~xaver@p578FD731.dip.t-dialin.net)
06:12.49*** join/#flow3 Robbo_ (~robbo@ppp232-35.static.internode.on.net)
06:17.27*** join/#flow3 ericepsylon (~epsylon@static-238-193-112-80.thenetworkfactory.nl)
06:18.50*** join/#flow3 andreaswolf (~aw@p5B23F5E1.dip.t-dialin.net)
06:31.45*** join/#flow3 soee (~soee@83-238-167-52.ip.netia.com.pl)
06:44.33*** join/#flow3 sorenmalling (~sorenmall@91.194.37.55)
06:45.29*** join/#flow3 dahrens (~ahrensde@141.71.113.75)
06:45.30*** join/#flow3 jesperp (~jesperp@188.204.150.90)
06:48.26jesperpmorning, i am still fiddling around with unit testing.. downloaded a fresh flow3 1.1 installation and running phpunit -c Build/Common/PhpUnit/UnitTests.xml, but i get the following result: http://pastebin.com/uaj4muPM
06:53.33*** join/#flow3 afoeder (~afoeder@p4FD643F8.dip0.t-ipconnect.de)
06:55.31*** join/#flow3 soc42 (~soc42@HSI-KBW-46-237-193-8.hsi.kabel-badenwuerttemberg.de)
07:04.41*** join/#flow3 Misan (~misan@62.99.234.20)
07:06.16*** join/#flow3 benvantende (~quassel@095-096-221-228.static.chello.nl)
07:07.38mggxgood morning, is there any default parameter to give a "<f:link.action>" an active-state class?
07:08.18ChristianMmggx like if you are rendering the template for exactly this action?
07:09.05*** join/#flow3 Kollode (~patrick@designnet.work.de)
07:09.19mggxright
07:09.35ChristianMnope, but I find that is a nice feature idea, would you open a feature request in forge please?
07:10.08mggxyes, i open a feature request for that
07:10.10mggxthanks
07:11.08jesperpChristianM: any idea why that test fails with an out of the box installation?
07:11.18jesperpor is it a known issue?
07:11.29ChristianMjesperp, I am thinking about it, and no normally all tests should run
07:11.41ChristianMespecially this one because it is probably never touched since agse
07:11.42skurfuerstChristianM / mggx I'd rather not pollute the f:link ViewHelper with it, but have a separate ViewHelper for stuff like "menus" or so
07:11.44jesperpmight be some environment specific setting
07:11.51ChristianMskurfuers, yes fine with me
07:12.13ChristianMjesperp, let me quickly execute the tests myself
07:12.18jesperpcheers
07:13.12*** join/#flow3 xaver (~xaver@host-80-81-17-255.static.customer.m-online.net)
07:13.36*** join/#flow3 aertmann (~aertmann@109.202.148.90)
07:13.41jesperpi can't really find any documentation on how to execute tests for your own package, i assume by making your own UnitTests.xml and adjust the paths.. what location is best practice to save this file in ? Resources/Private/Build ?
07:14.03skurfuerstjesperp: for own packages, that's basic PHPunit stuff
07:14.04jesperpcause you want to add Build/ as a submodule, so can't really put it in there id say
07:14.14skurfuerstphpunit -c path/to/foo Path/To/Your/Package/Tests/Unit
07:14.20ChristianMyep
07:14.28jesperpah so no xml is needed?
07:14.47skurfuerstwell you need to specify the standard UnitTests.xml configuration using -c
07:14.51skurfuerstbut nothing else
07:15.01ChristianMyep, just take your command from above and append a path to your unit tests
07:15.26ChristianMphpunit -c Build/Common/PhpUnit/UnitTests.xml Packages/Application/Foo.Bar/Tests/Unit
07:16.17afoedermorning guys
07:16.23ChristianMhey afoeder
07:16.35jesperpahhh, cheers
07:17.02ericepsylonGood morning! I'm still trying to get a custom view helper for rendering a form field. I created a view helper extending TYPO3\Fluid'ViewHelpers\Form\TextfieldViewHelper and I want to get <eric:formfield property="name" id="name" /> to result in <div class="control-group"><label for="name" class="control-label">name</label><f:form.textfield property="name" id="name" /></div> of course with <f:form.textfield… replaced. Any i
07:18.44ChristianMericepsylon what happens instead?
07:19.20ChristianMjesperp, I did run the unit tests on 1.1 now instead of master, still no failings. Maybe something about our phpunit version or php versoin?
07:19.40ericepsylonChristianM: I don't know what to put in the render() function to make it work
07:20.21jesperpPHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli)    and    PHPUnit 3.7.1
07:20.23ChristianMericepsylon, I would basically call the parent render method to get the input rendered and then wrap the returning string with your markup
07:21.23ChristianMjesperp, then you have an even never phpunit than I have currently ;)
07:21.25ChristianMshould be all fine
07:21.35jesperpstrange :(
07:21.56jesperpoh well, as long as i can test my own package fine, ill have to have faith that you guys don't break anything ;)
07:22.20*** part/#flow3 mneuhaus (~mneuhaus@ip-178-201-145-99.unitymediagroup.de)
07:23.24ericepsylonChristianM: I get an error: #1: Notice: Undefined index: required in /Users/tom/Sites/FLOW3/Packages/Framework/TYPO3.Fluid/Classes/Core/ViewHelper/AbstractViewHelper.php line 255
07:24.09ericepsylonpublic function render($required = NULL, $type = 'text', $placeholder = NULL) {
07:24.09ericepsylon
07:24.09ericepsylon<PROTECTED>
07:24.10ericepsylon
07:24.12ericepsylon$output = '<div class="control-group">'
07:24.13ericepsylon<PROTECTED>
07:24.15ericepsylon<PROTECTED>
07:24.16ericepsylon<PROTECTED>
07:24.18ericepsylon<PROTECTED>
07:24.19ericepsylon<PROTECTED>
07:24.21ericepsylon
07:24.22ericepsylonreturn $output;
07:24.22ericepsylon}
07:25.39ericepsylon(sorry for my 13 line post)
07:25.46*** join/#flow3 xaver (~xaver@host-80-81-17-255.static.customer.m-online.net)
07:26.18ChristianMno problem, but use pastebin or gist.github.com next time :)
07:26.27ChristianMdid you add the annotations to the method?
07:28.51ericepsylonIn the comments above the function you mean: yes I did
07:29.46ericepsylonhttp://pastebin.com/yH2z9b5a
07:34.20*** join/#flow3 andreaswolf (~aw@p5B23F5E1.dip.t-dialin.net)
07:42.43*** join/#flow3 sorenmalling (~sorenmall@109.202.148.90)
07:52.17ChristianMericepsylon, something abou tthe parameters is wrong, but I would have to debug it because I don't really the the problem right away
07:53.42ericepsylonChristianM: If I add required="false" to <eric:bootstrap … > it works
07:53.51ChristianMok, nice
07:54.04ericepsylonBut why is this required attribute not needed for a <f:form.textfield tag?
08:12.41*** join/#flow3 lelepankaj (~lelepanka@116.74.74.206)
08:12.50*** join/#flow3 alex|b (~chatzilla@80.149.237.98)
08:14.46*** part/#flow3 Kib (~kib@b2b-46-252-131-198.unitymedia.biz)
08:27.50*** join/#flow3 Kib (~kib@b2b-46-252-131-198.unitymedia.biz)
08:30.56*** join/#flow3 Conic (~conic@mail.mauersberger.org)
08:41.47*** join/#flow3 ndee (~andy@251-153.60-188.cust.bluewin.ch)
08:42.18ndeehey guys, if I want to contribute something to typo3 (didn't get an answer in #typo3), what's the best approach to do that?
08:42.42skurfuerstndee: depends on your expertise. Translation, Coding, User Interface work?
08:43.06skurfuerstBest is if you have an own concrete idea what you want to work un
08:43.07skurfuerston*
08:43.19ndeeskurfuerst: Coding actually. For example: improving the suggest wizard, make it more "configurable"
08:43.33ndeethat is something I would like to contribute
08:43.38skurfuerstOK, so why not just start doing it? :)
08:43.50skurfuerstsee if there is a ticket on forge; if not create one :)
08:43.56ndeeskurfuerst: I did change it in one of my installations but how could I ever get that into the core?
08:44.03skurfuerstand then when your change is ready push it to https://review.typo3.org
08:44.04skurfuerstah
08:44.46skurfuersthttp://wiki.typo3.org/Contribution_Walkthrough_Tutorials
08:44.49afoederndee: see http://wiki.typo3.org/Contribution_Walkthrough_with_CommandLine for how to "technically" contribute :)
08:45.03ndeeawesome!
08:45.05ndeethanks guys
08:45.09skurfuerstyou're welcome :)
08:45.28afoederyep NP, great to see willing-to-contributees :)
09:01.15*** join/#flow3 robsonpeixoto (~robsonpei@189-104-20-120.user.veloxzone.com.br)
09:07.58*** join/#flow3 Denyerec (~Never@cpc4-shep11-2-0-cust49.8-3.cable.virginmedia.com)
09:09.19*** join/#flow3 SpareParts1 (~ondriq_h@ip-86-49-37-134.net.upcbroadband.cz)
09:29.21DenyerecNeed some Fluid help
09:29.34Denyerec<f:link.external uri="https://twitter.com/{user.screenName}" class="twitter-follow-button" data-size="large" data-show-screen-name="false" data-dnt="true">
09:29.37DenyerecIS that legitimate?
09:29.47DenyerecI couldn't find anything on link.external wrt to paramters
09:29.57skurfuerstwhy not just use <a href>? :=
09:29.58Denyerecso I just assumed I could use all HTML attributes alongside the fluid-related ones.
09:30.04skurfuerstno you cannot
09:30.07DenyerecI'm following an example
09:30.18DenyerecWhich may be out of date / wrong.
09:30.19Denyerec:S
09:30.45DenyerecThere were only 2 parameters on link:external in the docs I found.
09:30.51DenyerecWHich is odd, as you often need loads
09:31.05DenyerecSo you'd use <a href> and variables ?
09:31.07skurfuerstyes
09:31.08skurfuerstsure
09:31.18DenyerecSo why have link:external ?
09:32.17afoederskurfuerst, could you explain me something in a minute please; regarding http://git.typo3.org/FLOW3/Packages/TYPO3.Media.git?a=blob;f=Classes/TypeConverter/ImageConverter.php;h=385f5c2871bee545d871d34a03f98c07f558b4c1;hb=master#l57
09:32.24afoeder"getTypeOfChildProperty"
09:32.39skurfuerstwhat do you want to know?
09:32.42afoeder...why doesn't the default object property mapping suffice here, btw?
09:33.08afoedernormally this is read out of the Image's property annotations...?
09:33.16skurfuerstprobably because the client-side sometimes sends more data than just the resource
09:33.30skurfuerstand property mapping witll throw an exception in that case
09:33.44afoederahh ok, very good to know, fine
09:33.51afoederso, at least the string property "title" lacks here
09:34.01skurfuerstcould be, yes
09:34.03afoederyep ok
09:34.10afoederfill fix it; aand
09:34.35afoederI think the handling of persisted images needs also some adjusting here, because the "generic" PersistedObjectTypeConverter doesn't kick in
09:34.57afoederis this correct? (this: my assumption)?
09:36.44skurfuerstcorrect, this one overrides it
09:37.15afoederok, perfect. So (for me to assure): if a concrete property mapper is found, the generic ones ("ObjectTypeConverter") are totally disregarded, right
09:37.20afoederit's not kinda "merged" or something
09:37.29skurfuerstcorrect.
09:37.35skurfuerstit depends on the order and the inheritance hierarchy
09:37.44afoederyaayye now I understand a lot of weird things happen here :)
09:37.50skurfuersts/order/priority/
09:37.54skurfuerstexactly
09:37.55skurfuerst:)
09:38.04afoederbecause there are many "bugs" related on the IMage property mapping
09:38.26afoedermaybe all of them exactly due to this
09:40.27DenyerecSo is there much use for link.external ?
09:40.33skurfuerstnot really
09:40.39DenyerecMore of a completeness thing
09:40.51DenyerecThat's cool, it's hard to establish "best practice" with all things TYPO3 :)
09:40.53afoederfunnily the mapper throws an exception currently anyways, saying for example >>Exception while property mapping for target type "TYPO3\Media\Domain\Model\Image", at property path "title": The target type was no string, but of type "NULL"<<
09:40.56DenyerecSo many ways to skin the cat!
09:41.18afoederthat's because, I think, the getTypeOfChildProperty() method returns nothing, ie NULL
09:41.53afoedershouldn't that have been occured for you, skurfuerst, while you worked on the Phx uploader?
09:42.08skurfuerstafoeder: we don't persist images, but we serialize them
09:42.08afoeder(I don't know if the Image CE supports a title here)
09:42.13skurfuerstno
09:42.16skurfuerstit doesnt :)
09:42.18skurfuerstyet
09:42.31afoederok... but an Image is converted anyways
09:42.41afoederI saw it in the BackendController
09:43.01skurfuerstyeah but it is not persisted if i remembr correctly
09:43.19afoederok so I think so far I'd handle the "title" property manually too, in the getTYpeOfChildProperty()
09:43.30skurfuerstfine :)
09:43.52afoedergood ;)
09:51.19*** join/#flow3 Akii (~Akii@116-70.wh-gutenberg.uni-ulm.de)
09:51.50basslinerany hint where to look for when trying to define custom response header from within the action controller?
09:53.15afoeder$this->response->setHeader() bassliner
09:54.58basslinerthanks.
09:55.41*** join/#flow3 Postie (~Thunderbi@ip4da71422.direct-adsl.nl)
09:56.36PostieHi I'm following the getting started tutorial on flow3. Just added the part to create a new blog post, but on going to the url I encounter the following error:
09:56.37Postie#1264589155: Object "TYPO3\Fluid\ViewHelpers\Form\TextboxViewHelper" is not registered.
09:57.04PostieI did a copy/paste from the tutorial to the template file
09:57.06skurfuerstPostie: try <f:form.textfield instead of <f:form.textbox
09:57.12skurfuerstthink the tutorial is wrong at this point
09:57.53Postieok thanks a lot skurfuerst
09:58.04afoederskurfuerst, just a quick look for a second please (I know you are in heavy work load ;) https://review.typo3.org/#/c/15134/1/Classes/TypeConverter/ImageConverter.php
09:58.26skurfuerstfine I think
09:58.27*** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de)
09:58.31Postiethanks skurfuerst it works :)
09:58.40afoederyep OK, (just in order to avoid misunderstandings ;)
09:59.30*** join/#flow3 ericepsylon (~epsylon@static-238-193-112-80.thenetworkfactory.nl)
10:01.24*** join/#flow3 CedricZiel (~cziel@cable-86-56-78-237.cust.telecolumbus.net)
10:05.42*** join/#flow3 boonkerz (~boonkerz@p5DC6574B.dip.t-dialin.net)
10:06.17*** part/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de)
10:20.39*** join/#flow3 Akii (~Akii@116-70.wh-gutenberg.uni-ulm.de)
10:21.34*** join/#flow3 fcool (~fcool@ip-37-201-40-78.unitymediagroup.de)
10:29.49*** join/#flow3 julle (Elite2814@198.154.110.127)
10:32.58afoederChristianM, could you have a look at this please? https://review.typo3.org/#/c/15134/
10:37.50*** join/#flow3 robsonpeixoto (~robsonpei@177.42.209.167)
10:47.45*** join/#flow3 ericepsylon (~epsylon@static-238-193-112-80.thenetworkfactory.nl)
10:54.27*** join/#flow3 boonkerz (~boonkerz@p5DC6574B.dip.t-dialin.net)
10:55.40*** join/#flow3 boonkerz_ (~boonkerz@pd95c8e64.dip0.t-ipconnect.de)
11:30.22*** join/#flow3 skurfuerst (~Adium@pD95FB430.dip0.t-ipconnect.de)
11:34.43*** join/#flow3 lelepankaj (~lelepanka@116.74.76.95)
11:36.46jesperpany examples on unit testing repositories, where you have to select data? say you want to unit test a validator that checks for an "unique username" validator, i need to query the repository to check if an account exists, how can i simulate an existing one?
11:40.44afoederjesperp, that might be rather a Functional Test, but depends on what you actually want to test
11:41.11jesperpjust want to test that the validator throws an error when an username already exists, in this case
11:41.18afoederif you like to keep it a UnitTest, you probably want to create a repository "mock".
11:41.36afoederyep this'll be a Unit Test with a mock then, true.
11:41.53jesperpany example where something like this has been done?
11:43.05afoedernot that I knew of regarding repositories, but check this: http://www.phpunit.de/manual/3.0/en/mock-objects.html
11:43.21afoederand in-file-search the FLOW3 unit test files for $this->getMock to get a clue
11:43.33jesperpcheers
11:46.56*** join/#flow3 Michael (c219cfca@gateway/web/freenode/ip.194.25.207.202)
11:53.14Postieon the getting started tutorial, I've got validation set in the Post model (* @FLOW3\Validate(type="StringLength", options={ "minimum"=1, "maximum"=100 })) on the title property. However I can still set an empty title. According to the tutorial it shouldn't be possible
11:54.09afoederPostie, be aware that the Validation only kicks in when the objects are persisted
11:55.23Postiewhat exactly do you mean with that? when they are saved/updated etc?
11:55.41afoederexactly!
11:56.45Postieok but I don't understand why the validation doesn't work. I'm following the getting started guide
11:57.05Postiebut I can enter a post with an empty title
11:57.25Akiiafoeder, really? That doesn't make much sense to me.. it should kick in when trying to set the property or not?
11:57.28afoedercould you point me to where you are ATM (link to the doc)
11:57.48skurfuerstand it happens on property mapping
11:57.55Postiehttp://flow3.typo3.org/documentation/guide/partii/validation.html
11:58.02Akiiotherwise form validation wouldn't work
11:58.14DenyerecIf you do not pass data to a partial via arguements="..." is it correct that the partial will have no model data to work with ?
11:58.33PostieI just copy/paste the FLOW3\Validate(type="StringLength", options={ "minimum"=1, "maximum"=100 }) rule with the title property
11:58.38Akiiyes (at least in extbase)
11:58.52skurfuerstthat is correct Denyerec
11:59.02DenyerecHmm.
11:59.09skurfuersta partial is somehow like a "function", it needs all arguments explicitely passed
11:59.11DenyerecThen this extension author needs a kicking.
11:59.25DenyerecBecause from what I can see, the partial receives no data, but attempts to use it.
11:59.39DenyerecFurthermore when I f:debug  in the layout, the data he was trying to use inside the partial anyway is NULL!
12:00.26DenyerecHowever when I do a f:debug inside the partial of "status", it exists, but it's empty.
12:00.28DenyerecEG it has structure
12:00.33Denyerecbut everything is NULL/0/""
12:01.28DenyerecHoo wait no
12:01.30DenyerecOk
12:01.40DenyerecThe layout called the section which called the partial.
12:01.51DenyerecDo you need to pass arguments to templates?
12:02.23afoederDenyerec, only via this->assign() in the controller
12:02.34alex|bPostie The Validators only check on non-empty values, if you explicitly want to disallow empty values, you have to add the NotEmpty Validator
12:02.35DenyerecOk, so I'm going to assume that has been done.
12:02.51afoederahhhh alex|b of course! goood point *facepalm*
12:03.16afoederI will make a patch of the documentation
12:03.20alex|bthat should maybe made more clear in the validation example in the documentation
12:03.31afoederyes I'll take care
12:03.33basslinerflush AAAAAAAALLLLL the caches.
12:03.36bassliner\o/
12:03.44alex|bcool :)
12:03.46afoederyes bassliner, twice! :)
12:03.50bassliner:)
12:03.59Akii:D
12:04.02Postiethankx alex|b , but does the "minumum" = 1 not take care of a minimum length of 1, therefore disallowing an empty string?
12:04.12afoedernope Postie, that'S on purpose
12:04.25alex|bnope
12:04.40Akiithat's similar to not null on databases I guess
12:04.57afoederyou're totally right that it would make sense; but due to convention just every validator has this behavirot
12:05.00alex|bbecause an empty value could in some cases be wanted, e.g. to unset values via form
12:05.00afoederbehavior
12:05.36afoederwell in the StringLength and RegExp cases it's really arguable, but as said: to have every validator behave the same, it's on purpose
12:05.46alex|bbut the "Create a new post" screenshot shows the old behaviour, so that's definitely wrong
12:06.16Postiewell then the tutorial misses a notempty validator
12:06.24afoederyep
12:06.46alex|bafoeder, well, imagine a "city" text field, where you want to only regard minimum X characters as a valid city name, but the field is not required
12:06.57Postiethnx for the help
12:07.29alex|byou're welcome
12:07.48afoedertrue alex|b, didn't think of this
12:07.54afoeder*thought of
12:07.55afoederhttp://forge.typo3.org/issues/41451
12:18.58afoederalex|b, Postie: https://review.typo3.org/#/c/15139/
12:19.48*** join/#flow3 boonkerz (~boonkerz@pd95c8e64.dip0.t-ipconnect.de)
12:20.23alex|blooks good
12:24.10*** join/#flow3 pgampe (~phil@pptp-212-201-75-11.pptp.stw-bonn.de)
12:26.28*** join/#flow3 dfeyer (~dom@62.220.134.68)
12:32.01DenyerecThe f:debug is really damn nice.
12:32.20DenyerecThe only thing that would make it better, is if it included the file & line number it was called from so you could track it down afterwards :D
12:32.48afoederDenyerec: usually you should know where you placed your f:debug ;)
12:33.12DenyerecThere are so many damn files
12:33.12DenyerecIt's hard to keep track!
12:33.17Denyerec<- nonfunctional short term memory :/
12:33.28afoederdon't spread f:debug's in every file :)
12:33.37DenyerecI know that now!! :D
12:33.44Denyerecgrep to the rescue :D
12:40.18*** part/#flow3 pgampe (~phil@pptp-212-201-75-11.pptp.stw-bonn.de)
12:45.07jesperpin a validator, i am looking to access other get/post vars.. for instance i have a "matching password" validator, which needs to check the value of another post value... ive tried injecting just about everything, but cant seem to access them
12:45.08jesperpany hints?
12:45.34jesperpright now ive used $_POST... but not too happy with that obviously
12:46.35dfeyerhi, how to access the Current ActionRequest in a service ? I have a Fluid Standalone based service to send email, everything work fine, but when I need to use the f:link.action inside the template, the route are not found, I don't now why. Thanks
12:47.17afoederjesperp, iirc you could inject the bootsrap
12:47.27afoederand access the current request via it
12:47.33jesperphmm
12:47.37jesperpok, ill try that
12:47.44afoederat least nicer than $_POST ;)
12:47.48jesperpdefinately
12:47.51afoeder:)
12:50.15ChristianMjesperp, the clean solution is to define a Data Transfer Object (a model that is not persisted) which includes both passwords and then use a object validator on that. if that object is valid you can extract the user from that and persist it.
12:51.06afoederaahh ok... now as you say it ChristianM: http://wiki.typo3.org/FLOW3_Cookbook#Create_multiple_objects_with_one_Fluid_form
12:51.22jesperpdoes sound clean yes
12:51.27jesperpill look into that: thanks
12:51.30ChristianMyep just like that
12:55.06afoederok next round ;) https://review.typo3.org/#/c/15139/
12:57.03afoederah ChristianM: could you have a look on this please? :) https://review.typo3.org/#/c/15134/
12:57.26*** join/#flow3 sorenmalling (~sorenmall@109.202.148.90)
12:57.43*** join/#flow3 Nurbs (~nurbs@f048138060.adsl.alicedsl.de)
12:57.59afoederI strongly have to ask Bastian why the converter is required anyways...
12:58.32ChristianMafoeder I guess it was a requirement of using plupload in phoenix or something like that
12:58.58ChristianMI have a look, but I am actually quite busy for the conference now
12:59.11afoederyes sebastian already guessed it was because of the case when "too much" arguments come in; but this will result in an error here, too
12:59.21afoederyeah of course; NP
12:59.35afoederit's next week, yes?
13:00.43afoederyes.
13:01.54alex|bdfeyer, it is because you need to setup the controllerContext for the standalone view, so the viewhelpers can access e.g. the uriBuilder and stuff
13:02.21dfeyeralexlb, thanks but how to do that ?
13:02.22alex|bI have a working example of a StandaloneView for e-mail template rendering in my project at home...
13:02.36alex|blet me check if I can access it from here anyway
13:03.00dfeyerthanks
13:10.07*** join/#flow3 tomasito (~tomasito@38.104.90.194)
13:13.27alex|bhttps://gist.github.com/3799749 what I did was to inject the service into my base controller class and inject the controllerContext from the controllers initializeAction function. It works without that though, due to the $view->initializeObject(); call, which creates a new request object and initialzes a new context
13:16.41*** join/#flow3 sorenmalling (~sorenmall@91.194.37.55)
13:27.16*** join/#flow3 indira (ade6aa4e@gateway/web/freenode/ip.173.230.170.78)
13:53.12dfeyeralexia, thanks I will test that
13:53.29dfeyeralex|b, thanks I will test that ;)
14:00.30*** join/#flow3 ericepsylon (~epsylon@static-238-193-112-80.thenetworkfactory.nl)
14:00.47*** join/#flow3 CedricZiel (~cziel@cable-86-56-78-237.cust.telecolumbus.net)
14:06.56*** join/#flow3 lelepankaj (~lelepanka@116.74.73.215)
14:32.25*** join/#flow3 Guest__ (~textual@ip-95-222-156-104.unitymediagroup.de)
14:33.24Guest__Hi, I've one short question: Is there a constant for the settings.yaml that points to the packages resources folder?
14:34.15afoederGuest__, you mean for the appropriate package's resource folder? the package where the setting applies?
14:34.19afoederTorsten85...
14:34.41Torsten85yes, I've a certificate in that resources folder of my package and I need an absolute path for that
14:34.50afoederbut you can easily use 'resource://Your.Package/Private/'
14:34.59afoederthis works for folders, too
14:35.02afoedernot only for files
14:35.55Torsten85ok, I'll see if this works in combination with openssl_pkcs7_sign
14:37.14afoederalex|b, I added you for reviewing https://review.typo3.org/#/c/15134/ please :)
14:41.49Torsten85afoeder, openssl_pkcs7_sign is unable to handle 'resource://...' … is there a way of converting this to an absolute path?
14:42.23*** join/#flow3 soc42 (~soc42@HSI-KBW-46-237-193-8.hsi.kabel-badenwuerttemberg.de)
14:47.48afoederwhat is the actual file at the end?
14:48.50afoederTorsten85, you mean this function? http://www.php.net/manual/en/function.openssl-pkcs7-sign.php
14:48.57afoederI would bet it should work
14:49.28Torsten85yes that function. But I doesn't work for the last argument ( $extracerts )
14:50.49Torsten85an absolute path like '/var/www/...' does work
14:52.11Torsten85too bad that ResourceStreamWrapper->evaluateResourcePath is not public
14:53.14afoedermaybe you are lucky and dirname() basename() etc. works?
14:53.41afoederbut I dunno; never tried
14:53.51afoederthe resource:// always worked in my cases
14:55.59*** join/#flow3 nd__ (~nd@mnhm-5f74e899.pool.mediaWays.net)
15:12.29*** join/#flow3 shoeless_ (~kevin@76.14.67.16)
15:12.47*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
15:17.28dfeyerHi, I don't found documentation about how to deal with n:m relation sorting … any hints ?
15:22.16*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
15:23.08alex|bdfeyer see http://docs.doctrine-project.org/en/2.0.x/reference/association-mapping.html#ordering-to-many-collections
15:23.51dfeyeralex|b, your are my friendly ghost today ;)
15:24.16alex|bnp, glad I can help :)
15:28.35alex|bTorsten85 there's already an accepted FR on forge for that https://forge.typo3.org/issues/33937
15:32.29afoederbut alex|b, doesn't that only resolve resources to their "public" Uri?
15:33.44afoederas far as I got it, Torsten85 wants the server-side path, like, for example, "/var/lib/foo...."
15:34.04alex|bah, ok... yes you're right
15:39.14alex|bwell, you can always just prepend the document root to the public path... not perfectly clean but still better than completely hardcoded paths
15:39.33afoedertrue.
15:39.48afoederbut I'd be still interested in if there'S a plain PHP way to do it
15:40.02afoederlike, as said, for example realpath() or pathinfo() and that stuff
15:41.02alex|bwell, realpath just expands the ".." notation afaik
15:41.23afoederyesyes just a wild example
15:41.35afoederthere are a few filename-resolving functions out there
15:42.16alex|bstill, you'd have to resolve the resource filename to a relative filename first anyway, since that's very FLOW3-specific and could theoretically change
15:43.23afoederhm; maybe you didn't get me right; I thought of somethink like a function that goes with pathinfo('resource://32sdlkjsbasdf')
15:43.44alex|bah, now I got you :D
15:44.07afoederbut I don't know how strictly a PHP stream wrapper decouples from source to target
15:44.24afoedermaybe "very strictly" :-/ never worked with own stream wrappers
15:44.32afoeder(aaawweesome stuff btw! ;)
15:51.20afoederany ideas guys; in the frontend, I want to reflect members of a collection which a user can add or remove.
15:52.22afoedercurrently I help myself with a stack of <f:form.hidden name="event[images][{key}]" >
15:53.29afoederwhich works for adding, but not really for removing them
15:55.45afoederthe last choice would be a multiple select box; but that not that easy to keep in sync withg javascript
15:57.52*** join/#flow3 Kollode (~patrick@designnet.work.de)
15:57.53alex|bwell, removing them means to remove the hidden field for that one member
15:57.53*** join/#flow3 Ak2i (~Ak2i@116-70.wh-gutenberg.uni-ulm.de)
15:58.10afoederyes but that seem to not suffice
15:59.02alex|bI have basically the same problem in my work project, where we used a jquery multiselect plugin
15:59.09afoederyeah
15:59.28afoederok it did suffice;
15:59.38afoederbut if I remove *all* hidden elements, nothing changes
15:59.56afoeder(which seems to be the typical problem for the field not being there at all)
16:00.05afoeder(like we all know from checkboxes :)
16:00.12alex|bah, yes... that could be
16:01.22alex|bbut what if you just add one hidden field event[images]?
16:01.49afoederbut with what value?
16:01.54alex|bthe problem is that the collection property isn't submitted in the form and hence taken from persistence
16:01.59afoederyep
16:02.01alex|bempty value I'd say
16:02.07afoederyes will check that
16:02.29alex|bif that won't work, you'd probably have to include one single empty collection member
16:02.58alex|bwhich feels awkward...
16:03.05afoederyeah; I fear that the mapper will complain about the provided variable not being an array
16:03.07afoeder(if it's empty)
16:03.15afoederand therefore an empty string
16:03.57afoederwow...
16:04.01afoederclever Fluid
16:04.23alex|bworks?
16:04.26afoeder>>  The form field "event[images][0][__identity]" is declared as array, but it collides with a previous form field of the same name which declared the field as string. This is an inconsistency you need to fix inside your Fluid form. (String overridden by Array) <<
16:04.47alex|bha :D
16:04.54afoeder^^
16:06.09afoederif I do event[images][] as "dummy", I think I exactly will get this "empty" member we don't want
16:06.20afoederI think I have to do it via the multiple select biox
16:06.49afoeder(already did that btw; works nice effectively, but as said: it's hard to keep the invisible "dummy" selectbox in sync with the bloated, nice looking UI widget)
16:06.54alex|bI just tried, we have the same issue :D you can't completely delete all members with that multi select box
16:07.15afoederwith the selectbox? yes you can! no?
16:07.32alex|bluckily that's totally unlikely in our business case, so no one noticed yet
16:07.48alex|bno, if you remove all items, it's as if you didn't change anything
16:08.01afoederreally with an f:select ?
16:08.05afoederbound to a collection?
16:08.14alex|byeah
16:08.17afoederwow..
16:08.28alex|bextbase objectStorage but it's the same
16:08.33afoederok...
16:08.39afoederwell will dig into this later...
16:08.42afoederweekend now.
16:08.50alex|benjoy ;)
16:14.02afoederyep thanks same to you
16:22.32*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
16:34.07*** join/#flow3 Conic2 (~conic@mail.mauersberger.org)
16:37.44*** join/#flow3 Kollode (~Kollode@g224123252.adsl.alicedsl.de)
16:50.01*** join/#flow3 andreaswolf (~aw@p5B23F5E1.dip.t-dialin.net)
17:02.29sxsde`offhi guys
17:16.02Ak2ihi
17:19.30*** join/#flow3 lelepankaj (~lelepanka@116.74.75.94)
17:22.43*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
17:34.30*** join/#flow3 xaver (~xaver@p578FD731.dip.t-dialin.net)
17:40.14*** part/#flow3 fcool (~fcool@ip-37-201-40-78.unitymediagroup.de)
18:22.55*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
18:24.21*** join/#flow3 Denyerec (~Never@86.13.39.50)
19:17.12*** join/#flow3 boonkerz (~boonkerz@p5DC6574B.dip.t-dialin.net)
19:23.08*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
19:29.24*** join/#flow3 ndee (~andy@251-153.60-188.cust.bluewin.ch)
19:32.43*** join/#flow3 andreaswolf (~aw@p5B23F5E1.dip.t-dialin.net)
20:23.23*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
20:27.01*** join/#flow3 xaver (~xaver@p578FD731.dip.t-dialin.net)
20:30.53*** join/#flow3 CedricZiel (~cziel@cable-86-56-78-237.cust.telecolumbus.net)
20:44.43*** join/#flow3 pgorley (~pgorley@68.65.34.227)
20:55.25*** join/#flow3 pgorley_ (~pgorley@cpe-65-189-221-205.neo.res.rr.com)
21:23.35*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
21:30.52*** join/#flow3 tomasito (~tomasito@38.104.90.194)
22:23.47*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)
23:22.58DenyerecAnyone awake ?
23:23.47*** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.