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.26 | jesperp | morning, 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.38 | mggx | good morning, is there any default parameter to give a "<f:link.action>" an active-state class? |
07:08.18 | ChristianM | mggx like if you are rendering the template for exactly this action? |
07:09.05 | *** join/#flow3 Kollode (~patrick@designnet.work.de) |
07:09.19 | mggx | right |
07:09.35 | ChristianM | nope, but I find that is a nice feature idea, would you open a feature request in forge please? |
07:10.08 | mggx | yes, i open a feature request for that |
07:10.10 | mggx | thanks |
07:11.08 | jesperp | ChristianM: any idea why that test fails with an out of the box installation? |
07:11.18 | jesperp | or is it a known issue? |
07:11.29 | ChristianM | jesperp, I am thinking about it, and no normally all tests should run |
07:11.41 | ChristianM | especially this one because it is probably never touched since agse |
07:11.42 | skurfuerst | ChristianM / 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.44 | jesperp | might be some environment specific setting |
07:11.51 | ChristianM | skurfuers, yes fine with me |
07:12.13 | ChristianM | jesperp, let me quickly execute the tests myself |
07:12.18 | jesperp | cheers |
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.41 | jesperp | i 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.03 | skurfuerst | jesperp: for own packages, that's basic PHPunit stuff |
07:14.04 | jesperp | cause you want to add Build/ as a submodule, so can't really put it in there id say |
07:14.14 | skurfuerst | phpunit -c path/to/foo Path/To/Your/Package/Tests/Unit |
07:14.20 | ChristianM | yep |
07:14.28 | jesperp | ah so no xml is needed? |
07:14.47 | skurfuerst | well you need to specify the standard UnitTests.xml configuration using -c |
07:14.51 | skurfuerst | but nothing else |
07:15.01 | ChristianM | yep, just take your command from above and append a path to your unit tests |
07:15.26 | ChristianM | phpunit -c Build/Common/PhpUnit/UnitTests.xml Packages/Application/Foo.Bar/Tests/Unit |
07:16.17 | afoeder | morning guys |
07:16.23 | ChristianM | hey afoeder |
07:16.35 | jesperp | ahhh, cheers |
07:17.02 | ericepsylon | Good 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.44 | ChristianM | ericepsylon what happens instead? |
07:19.20 | ChristianM | jesperp, 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.40 | ericepsylon | ChristianM: I don't know what to put in the render() function to make it work |
07:20.21 | jesperp | PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli) and PHPUnit 3.7.1 |
07:20.23 | ChristianM | ericepsylon, I would basically call the parent render method to get the input rendered and then wrap the returning string with your markup |
07:21.23 | ChristianM | jesperp, then you have an even never phpunit than I have currently ;) |
07:21.25 | ChristianM | should be all fine |
07:21.35 | jesperp | strange :( |
07:21.56 | jesperp | oh 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.24 | ericepsylon | ChristianM: 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.09 | ericepsylon | public function render($required = NULL, $type = 'text', $placeholder = NULL) { |
07:24.09 | ericepsylon | |
07:24.09 | ericepsylon | <PROTECTED> |
07:24.10 | ericepsylon | |
07:24.12 | ericepsylon | $output = '<div class="control-group">' |
07:24.13 | ericepsylon | <PROTECTED> |
07:24.15 | ericepsylon | <PROTECTED> |
07:24.16 | ericepsylon | <PROTECTED> |
07:24.18 | ericepsylon | <PROTECTED> |
07:24.19 | ericepsylon | <PROTECTED> |
07:24.21 | ericepsylon | |
07:24.22 | ericepsylon | return $output; |
07:24.22 | ericepsylon | } |
07:25.39 | ericepsylon | (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.18 | ChristianM | no problem, but use pastebin or gist.github.com next time :) |
07:26.27 | ChristianM | did you add the annotations to the method? |
07:28.51 | ericepsylon | In the comments above the function you mean: yes I did |
07:29.46 | ericepsylon | http://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.17 | ChristianM | ericepsylon, 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.42 | ericepsylon | ChristianM: If I add required="false" to <eric:bootstrap … > it works |
07:53.51 | ChristianM | ok, nice |
07:54.04 | ericepsylon | But 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.18 | ndee | hey 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.42 | skurfuerst | ndee: depends on your expertise. Translation, Coding, User Interface work? |
08:43.06 | skurfuerst | Best is if you have an own concrete idea what you want to work un |
08:43.07 | skurfuerst | on* |
08:43.19 | ndee | skurfuerst: Coding actually. For example: improving the suggest wizard, make it more "configurable" |
08:43.33 | ndee | that is something I would like to contribute |
08:43.38 | skurfuerst | OK, so why not just start doing it? :) |
08:43.50 | skurfuerst | see if there is a ticket on forge; if not create one :) |
08:43.56 | ndee | skurfuerst: I did change it in one of my installations but how could I ever get that into the core? |
08:44.03 | skurfuerst | and then when your change is ready push it to https://review.typo3.org |
08:44.04 | skurfuerst | ah |
08:44.46 | skurfuerst | http://wiki.typo3.org/Contribution_Walkthrough_Tutorials |
08:44.49 | afoeder | ndee: see http://wiki.typo3.org/Contribution_Walkthrough_with_CommandLine for how to "technically" contribute :) |
08:45.03 | ndee | awesome! |
08:45.05 | ndee | thanks guys |
08:45.09 | skurfuerst | you're welcome :) |
08:45.28 | afoeder | yep 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.21 | Denyerec | Need some Fluid help |
09:29.34 | Denyerec | <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.37 | Denyerec | IS that legitimate? |
09:29.47 | Denyerec | I couldn't find anything on link.external wrt to paramters |
09:29.57 | skurfuerst | why not just use <a href>? := |
09:29.58 | Denyerec | so I just assumed I could use all HTML attributes alongside the fluid-related ones. |
09:30.04 | skurfuerst | no you cannot |
09:30.07 | Denyerec | I'm following an example |
09:30.18 | Denyerec | Which may be out of date / wrong. |
09:30.19 | Denyerec | :S |
09:30.45 | Denyerec | There were only 2 parameters on link:external in the docs I found. |
09:30.51 | Denyerec | WHich is odd, as you often need loads |
09:31.05 | Denyerec | So you'd use <a href> and variables ? |
09:31.07 | skurfuerst | yes |
09:31.08 | skurfuerst | sure |
09:31.18 | Denyerec | So why have link:external ? |
09:32.17 | afoeder | skurfuerst, 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.24 | afoeder | "getTypeOfChildProperty" |
09:32.39 | skurfuerst | what do you want to know? |
09:32.42 | afoeder | ...why doesn't the default object property mapping suffice here, btw? |
09:33.08 | afoeder | normally this is read out of the Image's property annotations...? |
09:33.16 | skurfuerst | probably because the client-side sometimes sends more data than just the resource |
09:33.30 | skurfuerst | and property mapping witll throw an exception in that case |
09:33.44 | afoeder | ahh ok, very good to know, fine |
09:33.51 | afoeder | so, at least the string property "title" lacks here |
09:34.01 | skurfuerst | could be, yes |
09:34.03 | afoeder | yep ok |
09:34.10 | afoeder | fill fix it; aand |
09:34.35 | afoeder | I think the handling of persisted images needs also some adjusting here, because the "generic" PersistedObjectTypeConverter doesn't kick in |
09:34.57 | afoeder | is this correct? (this: my assumption)? |
09:36.44 | skurfuerst | correct, this one overrides it |
09:37.15 | afoeder | ok, perfect. So (for me to assure): if a concrete property mapper is found, the generic ones ("ObjectTypeConverter") are totally disregarded, right |
09:37.20 | afoeder | it's not kinda "merged" or something |
09:37.29 | skurfuerst | correct. |
09:37.35 | skurfuerst | it depends on the order and the inheritance hierarchy |
09:37.44 | afoeder | yaayye now I understand a lot of weird things happen here :) |
09:37.50 | skurfuerst | s/order/priority/ |
09:37.54 | skurfuerst | exactly |
09:37.55 | skurfuerst | :) |
09:38.04 | afoeder | because there are many "bugs" related on the IMage property mapping |
09:38.26 | afoeder | maybe all of them exactly due to this |
09:40.27 | Denyerec | So is there much use for link.external ? |
09:40.33 | skurfuerst | not really |
09:40.39 | Denyerec | More of a completeness thing |
09:40.51 | Denyerec | That's cool, it's hard to establish "best practice" with all things TYPO3 :) |
09:40.53 | afoeder | funnily 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.56 | Denyerec | So many ways to skin the cat! |
09:41.18 | afoeder | that's because, I think, the getTypeOfChildProperty() method returns nothing, ie NULL |
09:41.53 | afoeder | shouldn't that have been occured for you, skurfuerst, while you worked on the Phx uploader? |
09:42.08 | skurfuerst | afoeder: we don't persist images, but we serialize them |
09:42.08 | afoeder | (I don't know if the Image CE supports a title here) |
09:42.13 | skurfuerst | no |
09:42.16 | skurfuerst | it doesnt :) |
09:42.18 | skurfuerst | yet |
09:42.31 | afoeder | ok... but an Image is converted anyways |
09:42.41 | afoeder | I saw it in the BackendController |
09:43.01 | skurfuerst | yeah but it is not persisted if i remembr correctly |
09:43.19 | afoeder | ok so I think so far I'd handle the "title" property manually too, in the getTYpeOfChildProperty() |
09:43.30 | skurfuerst | fine :) |
09:43.52 | afoeder | good ;) |
09:51.19 | *** join/#flow3 Akii (~Akii@116-70.wh-gutenberg.uni-ulm.de) |
09:51.50 | bassliner | any hint where to look for when trying to define custom response header from within the action controller? |
09:53.15 | afoeder | $this->response->setHeader() bassliner |
09:54.58 | bassliner | thanks. |
09:55.41 | *** join/#flow3 Postie (~Thunderbi@ip4da71422.direct-adsl.nl) |
09:56.36 | Postie | Hi 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.37 | Postie | #1264589155: Object "TYPO3\Fluid\ViewHelpers\Form\TextboxViewHelper" is not registered. |
09:57.04 | Postie | I did a copy/paste from the tutorial to the template file |
09:57.06 | skurfuerst | Postie: try <f:form.textfield instead of <f:form.textbox |
09:57.12 | skurfuerst | think the tutorial is wrong at this point |
09:57.53 | Postie | ok thanks a lot skurfuerst |
09:58.04 | afoeder | skurfuerst, 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.26 | skurfuerst | fine I think |
09:58.27 | *** join/#flow3 humnus (~humnus@wli8013.zv.uni-wuerzburg.de) |
09:58.31 | Postie | thanks skurfuerst it works :) |
09:58.40 | afoeder | yep 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.58 | afoeder | ChristianM, 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.46 | jesperp | any 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.44 | afoeder | jesperp, that might be rather a Functional Test, but depends on what you actually want to test |
11:41.11 | jesperp | just want to test that the validator throws an error when an username already exists, in this case |
11:41.18 | afoeder | if you like to keep it a UnitTest, you probably want to create a repository "mock". |
11:41.36 | afoeder | yep this'll be a Unit Test with a mock then, true. |
11:41.53 | jesperp | any example where something like this has been done? |
11:43.05 | afoeder | not that I knew of regarding repositories, but check this: http://www.phpunit.de/manual/3.0/en/mock-objects.html |
11:43.21 | afoeder | and in-file-search the FLOW3 unit test files for $this->getMock to get a clue |
11:43.33 | jesperp | cheers |
11:46.56 | *** join/#flow3 Michael (c219cfca@gateway/web/freenode/ip.194.25.207.202) |
11:53.14 | Postie | on 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.09 | afoeder | Postie, be aware that the Validation only kicks in when the objects are persisted |
11:55.23 | Postie | what exactly do you mean with that? when they are saved/updated etc? |
11:55.41 | afoeder | exactly! |
11:56.45 | Postie | ok but I don't understand why the validation doesn't work. I'm following the getting started guide |
11:57.05 | Postie | but I can enter a post with an empty title |
11:57.25 | Akii | afoeder, really? That doesn't make much sense to me.. it should kick in when trying to set the property or not? |
11:57.28 | afoeder | could you point me to where you are ATM (link to the doc) |
11:57.48 | skurfuerst | and it happens on property mapping |
11:57.55 | Postie | http://flow3.typo3.org/documentation/guide/partii/validation.html |
11:58.02 | Akii | otherwise form validation wouldn't work |
11:58.14 | Denyerec | If 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.33 | Postie | I just copy/paste the FLOW3\Validate(type="StringLength", options={ "minimum"=1, "maximum"=100 }) rule with the title property |
11:58.38 | Akii | yes (at least in extbase) |
11:58.52 | skurfuerst | that is correct Denyerec |
11:59.02 | Denyerec | Hmm. |
11:59.09 | skurfuerst | a partial is somehow like a "function", it needs all arguments explicitely passed |
11:59.11 | Denyerec | Then this extension author needs a kicking. |
11:59.25 | Denyerec | Because from what I can see, the partial receives no data, but attempts to use it. |
11:59.39 | Denyerec | Furthermore when I f:debug in the layout, the data he was trying to use inside the partial anyway is NULL! |
12:00.26 | Denyerec | However when I do a f:debug inside the partial of "status", it exists, but it's empty. |
12:00.28 | Denyerec | EG it has structure |
12:00.33 | Denyerec | but everything is NULL/0/"" |
12:01.28 | Denyerec | Hoo wait no |
12:01.30 | Denyerec | Ok |
12:01.40 | Denyerec | The layout called the section which called the partial. |
12:01.51 | Denyerec | Do you need to pass arguments to templates? |
12:02.23 | afoeder | Denyerec, only via this->assign() in the controller |
12:02.34 | alex|b | Postie 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.35 | Denyerec | Ok, so I'm going to assume that has been done. |
12:02.51 | afoeder | ahhhh alex|b of course! goood point *facepalm* |
12:03.16 | afoeder | I will make a patch of the documentation |
12:03.20 | alex|b | that should maybe made more clear in the validation example in the documentation |
12:03.31 | afoeder | yes I'll take care |
12:03.33 | bassliner | flush AAAAAAAALLLLL the caches. |
12:03.36 | bassliner | \o/ |
12:03.44 | alex|b | cool :) |
12:03.46 | afoeder | yes bassliner, twice! :) |
12:03.50 | bassliner | :) |
12:03.59 | Akii | :D |
12:04.02 | Postie | thankx alex|b , but does the "minumum" = 1 not take care of a minimum length of 1, therefore disallowing an empty string? |
12:04.12 | afoeder | nope Postie, that'S on purpose |
12:04.25 | alex|b | nope |
12:04.40 | Akii | that's similar to not null on databases I guess |
12:04.57 | afoeder | you're totally right that it would make sense; but due to convention just every validator has this behavirot |
12:05.00 | alex|b | because an empty value could in some cases be wanted, e.g. to unset values via form |
12:05.00 | afoeder | behavior |
12:05.36 | afoeder | well 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.46 | alex|b | but the "Create a new post" screenshot shows the old behaviour, so that's definitely wrong |
12:06.16 | Postie | well then the tutorial misses a notempty validator |
12:06.24 | afoeder | yep |
12:06.46 | alex|b | afoeder, 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.57 | Postie | thnx for the help |
12:07.29 | alex|b | you're welcome |
12:07.48 | afoeder | true alex|b, didn't think of this |
12:07.54 | afoeder | *thought of |
12:07.55 | afoeder | http://forge.typo3.org/issues/41451 |
12:18.58 | afoeder | alex|b, Postie: https://review.typo3.org/#/c/15139/ |
12:19.48 | *** join/#flow3 boonkerz (~boonkerz@pd95c8e64.dip0.t-ipconnect.de) |
12:20.23 | alex|b | looks 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.01 | Denyerec | The f:debug is really damn nice. |
12:32.20 | Denyerec | The 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.48 | afoeder | Denyerec: usually you should know where you placed your f:debug ;) |
12:33.12 | Denyerec | There are so many damn files |
12:33.12 | Denyerec | It's hard to keep track! |
12:33.17 | Denyerec | <- nonfunctional short term memory :/ |
12:33.28 | afoeder | don't spread f:debug's in every file :) |
12:33.37 | Denyerec | I know that now!! :D |
12:33.44 | Denyerec | grep to the rescue :D |
12:40.18 | *** part/#flow3 pgampe (~phil@pptp-212-201-75-11.pptp.stw-bonn.de) |
12:45.07 | jesperp | in 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.08 | jesperp | any hints? |
12:45.34 | jesperp | right now ive used $_POST... but not too happy with that obviously |
12:46.35 | dfeyer | hi, 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.17 | afoeder | jesperp, iirc you could inject the bootsrap |
12:47.27 | afoeder | and access the current request via it |
12:47.33 | jesperp | hmm |
12:47.37 | jesperp | ok, ill try that |
12:47.44 | afoeder | at least nicer than $_POST ;) |
12:47.48 | jesperp | definately |
12:47.51 | afoeder | :) |
12:50.15 | ChristianM | jesperp, 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.06 | afoeder | aahh ok... now as you say it ChristianM: http://wiki.typo3.org/FLOW3_Cookbook#Create_multiple_objects_with_one_Fluid_form |
12:51.22 | jesperp | does sound clean yes |
12:51.27 | jesperp | ill look into that: thanks |
12:51.30 | ChristianM | yep just like that |
12:55.06 | afoeder | ok next round ;) https://review.typo3.org/#/c/15139/ |
12:57.03 | afoeder | ah 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.59 | afoeder | I strongly have to ask Bastian why the converter is required anyways... |
12:58.32 | ChristianM | afoeder I guess it was a requirement of using plupload in phoenix or something like that |
12:58.58 | ChristianM | I have a look, but I am actually quite busy for the conference now |
12:59.11 | afoeder | yes 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.21 | afoeder | yeah of course; NP |
12:59.35 | afoeder | it's next week, yes? |
13:00.43 | afoeder | yes. |
13:01.54 | alex|b | dfeyer, 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.21 | dfeyer | alexlb, thanks but how to do that ? |
13:02.22 | alex|b | I have a working example of a StandaloneView for e-mail template rendering in my project at home... |
13:02.36 | alex|b | let me check if I can access it from here anyway |
13:03.00 | dfeyer | thanks |
13:10.07 | *** join/#flow3 tomasito (~tomasito@38.104.90.194) |
13:13.27 | alex|b | https://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.12 | dfeyer | alexia, thanks I will test that |
13:53.29 | dfeyer | alex|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.24 | Guest__ | Hi, I've one short question: Is there a constant for the settings.yaml that points to the packages resources folder? |
14:34.15 | afoeder | Guest__, you mean for the appropriate package's resource folder? the package where the setting applies? |
14:34.19 | afoeder | Torsten85... |
14:34.41 | Torsten85 | yes, I've a certificate in that resources folder of my package and I need an absolute path for that |
14:34.50 | afoeder | but you can easily use 'resource://Your.Package/Private/' |
14:34.59 | afoeder | this works for folders, too |
14:35.02 | afoeder | not only for files |
14:35.55 | Torsten85 | ok, I'll see if this works in combination with openssl_pkcs7_sign |
14:37.14 | afoeder | alex|b, I added you for reviewing https://review.typo3.org/#/c/15134/ please :) |
14:41.49 | Torsten85 | afoeder, 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.48 | afoeder | what is the actual file at the end? |
14:48.50 | afoeder | Torsten85, you mean this function? http://www.php.net/manual/en/function.openssl-pkcs7-sign.php |
14:48.57 | afoeder | I would bet it should work |
14:49.28 | Torsten85 | yes that function. But I doesn't work for the last argument ( $extracerts ) |
14:50.49 | Torsten85 | an absolute path like '/var/www/...' does work |
14:52.11 | Torsten85 | too bad that ResourceStreamWrapper->evaluateResourcePath is not public |
14:53.14 | afoeder | maybe you are lucky and dirname() basename() etc. works? |
14:53.41 | afoeder | but I dunno; never tried |
14:53.51 | afoeder | the 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.28 | dfeyer | Hi, 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.08 | alex|b | dfeyer see http://docs.doctrine-project.org/en/2.0.x/reference/association-mapping.html#ordering-to-many-collections |
15:23.51 | dfeyer | alex|b, your are my friendly ghost today ;) |
15:24.16 | alex|b | np, glad I can help :) |
15:28.35 | alex|b | Torsten85 there's already an accepted FR on forge for that https://forge.typo3.org/issues/33937 |
15:32.29 | afoeder | but alex|b, doesn't that only resolve resources to their "public" Uri? |
15:33.44 | afoeder | as far as I got it, Torsten85 wants the server-side path, like, for example, "/var/lib/foo...." |
15:34.04 | alex|b | ah, ok... yes you're right |
15:39.14 | alex|b | well, you can always just prepend the document root to the public path... not perfectly clean but still better than completely hardcoded paths |
15:39.33 | afoeder | true. |
15:39.48 | afoeder | but I'd be still interested in if there'S a plain PHP way to do it |
15:40.02 | afoeder | like, as said, for example realpath() or pathinfo() and that stuff |
15:41.02 | alex|b | well, realpath just expands the ".." notation afaik |
15:41.23 | afoeder | yesyes just a wild example |
15:41.35 | afoeder | there are a few filename-resolving functions out there |
15:42.16 | alex|b | still, 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.23 | afoeder | hm; maybe you didn't get me right; I thought of somethink like a function that goes with pathinfo('resource://32sdlkjsbasdf') |
15:43.44 | alex|b | ah, now I got you :D |
15:44.07 | afoeder | but I don't know how strictly a PHP stream wrapper decouples from source to target |
15:44.24 | afoeder | maybe "very strictly" :-/ never worked with own stream wrappers |
15:44.32 | afoeder | (aaawweesome stuff btw! ;) |
15:51.20 | afoeder | any ideas guys; in the frontend, I want to reflect members of a collection which a user can add or remove. |
15:52.22 | afoeder | currently I help myself with a stack of <f:form.hidden name="event[images][{key}]" > |
15:53.29 | afoeder | which works for adding, but not really for removing them |
15:55.45 | afoeder | the 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.53 | alex|b | well, 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.10 | afoeder | yes but that seem to not suffice |
15:59.02 | alex|b | I have basically the same problem in my work project, where we used a jquery multiselect plugin |
15:59.09 | afoeder | yeah |
15:59.28 | afoeder | ok it did suffice; |
15:59.38 | afoeder | but if I remove *all* hidden elements, nothing changes |
15:59.56 | afoeder | (which seems to be the typical problem for the field not being there at all) |
16:00.05 | afoeder | (like we all know from checkboxes :) |
16:00.12 | alex|b | ah, yes... that could be |
16:01.22 | alex|b | but what if you just add one hidden field event[images]? |
16:01.49 | afoeder | but with what value? |
16:01.54 | alex|b | the problem is that the collection property isn't submitted in the form and hence taken from persistence |
16:01.59 | afoeder | yep |
16:02.01 | alex|b | empty value I'd say |
16:02.07 | afoeder | yes will check that |
16:02.29 | alex|b | if that won't work, you'd probably have to include one single empty collection member |
16:02.58 | alex|b | which feels awkward... |
16:03.05 | afoeder | yeah; I fear that the mapper will complain about the provided variable not being an array |
16:03.07 | afoeder | (if it's empty) |
16:03.15 | afoeder | and therefore an empty string |
16:03.57 | afoeder | wow... |
16:04.01 | afoeder | clever Fluid |
16:04.23 | alex|b | works? |
16:04.26 | afoeder | >> 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.47 | alex|b | ha :D |
16:04.54 | afoeder | ^^ |
16:06.09 | afoeder | if I do event[images][] as "dummy", I think I exactly will get this "empty" member we don't want |
16:06.20 | afoeder | I think I have to do it via the multiple select biox |
16:06.49 | afoeder | (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.54 | alex|b | I just tried, we have the same issue :D you can't completely delete all members with that multi select box |
16:07.15 | afoeder | with the selectbox? yes you can! no? |
16:07.32 | alex|b | luckily that's totally unlikely in our business case, so no one noticed yet |
16:07.48 | alex|b | no, if you remove all items, it's as if you didn't change anything |
16:08.01 | afoeder | really with an f:select ? |
16:08.05 | afoeder | bound to a collection? |
16:08.14 | alex|b | yeah |
16:08.17 | afoeder | wow.. |
16:08.28 | alex|b | extbase objectStorage but it's the same |
16:08.33 | afoeder | ok... |
16:08.39 | afoeder | well will dig into this later... |
16:08.42 | afoeder | weekend now. |
16:08.50 | alex|b | enjoy ;) |
16:14.02 | afoeder | yep 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.29 | sxsde`off | hi guys |
17:16.02 | Ak2i | hi |
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.58 | Denyerec | Anyone awake ? |
23:23.47 | *** join/#flow3 ericepsylon (~epsylon@541CA82C.cm-5-5c.dynamic.ziggo.nl) |