#silverstripe IRC Log

IRC log for 26 January 2013

All timestamps are in UTC.

1: [00:00:00] <Zauberfisch> I want to rewrite a get param (?url=yay) should be passed to php as ?otherURL=yay
2: [00:00:00] <Zauberfisch> someone around here good with rewrite rules? (:
3: [00:02:00] <simon_w|air> I'm not entirely sure that's possible
4: [00:03:00] <simon_w|air> since the rule is against the path
5: [00:07:00] * UncleCheese quit (Quit: UncleCheese)
6: [00:09:00] * UncleCheese has joined #silverstripe
7: [00:15:00] <Zauberfisch> simon_w|air damn it, that is what I was afraid of :S
8: [00:15:00] * aaron1245 quit (Ping timeout: 248 seconds)
9: [00:16:00] <Zauberfisch> can't you somehow do a rule on the query_string?
10: [00:20:00] <simon_w|air> You can do a condition on it
11: [00:23:00] * UncleCheese quit (Quit: UncleCheese)
12: [00:24:00] * UncleCheese has joined #silverstripe
13: [00:33:00] * aaron1245 has joined #silverstripe
14: [00:33:00] <Zauberfisch> (issue see dev mailing list)
15: [00:33:00] <Zauberfisch> indeed, but unfortunately this does not fix my issue
16: [00:39:00] * UncleCheese quit (Quit: UncleCheese)
17: [00:40:00] * UncleCheese has joined #silverstripe
18: [00:45:00] * chillu quit (Quit: chillu)
19: [00:52:00] * liam has joined #silverstripe
20: [00:52:00] * liam quit (Client Quit)
21: [00:54:00] * liam has joined #silverstripe
22: [00:55:00] * UncleCheese quit (Quit: UncleCheese)
23: [00:56:00] * UncleCheese has joined #silverstripe
24: [00:56:00] * elgrodo quit (Remote host closed the connection)
25: [00:59:00] * catcher quit (Ping timeout: 255 seconds)
26: [01:03:00] * liam quit (Quit: liam)
27: [01:09:00] * ARNHOFF quit (Read error: Connection reset by peer)
28: [01:11:00] * UncleCheese quit (Quit: UncleCheese)
29: [01:11:00] * Colin[pi] quit ()
30: [01:12:00] * UncleCheese has joined #silverstripe
31: [01:23:00] <DesignerX> anyone uses netbeans IDE ?
32: [01:28:00] * UncleCheese quit (Quit: UncleCheese)
33: [01:28:00] * UncleCheese has joined #silverstripe
34: [01:44:00] * UncleCheese quit (Quit: UncleCheese)
35: [01:44:00] * UncleCheese has joined #silverstripe
36: [01:47:00] * slith1 quit (Quit: Leaving.)
37: [01:55:00] * instabil quit (Read error: Connection reset by peer)
38: [01:58:00] <DesignerX> how can I call a function on dev/build ? I have class MyPageType & I need to fun a function on it when ever I do dev/build to fix/adjust few things.
39: [01:59:00] * UncleCheese quit (Quit: UncleCheese)
40: [02:00:00] <simon_w|air> requireDefaultRecords()
41: [02:00:00] * UncleCheese has joined #silverstripe
42: [02:03:00] <DesignerX> thanks
43: [02:10:00] <DesignerX> how can I reset the ID count in MyObject table in the DB ?
44: [02:12:00] <simon_w|air> And? It doesn't have to start from 1
45: [02:12:00] <DesignerX> was doing some test & now removed all the data .
46: [02:12:00] <simon_w|air> Why do you need to?
47: [02:12:00] <DesignerX> its only for testing
48: [02:13:00] <simon_w|air> ALTER TABLE `TableName` AUTO_INCREMENT = 1;
49: [02:14:00] <DesignerX> ah ty .
50: [02:16:00] * UncleCheese has joined #silverstripe
51: [02:16:00] * UncleCheese quit (Quit: UncleCheese)
52: [02:20:00] * priithansen quit (Quit: priithansen)
53: [02:27:00] * Emil_Blume quit (Quit: Leaving.)
54: [02:41:00] <Zauberfisch> simon_w simon_w|air thanks for your input earlier
55: [02:41:00] <Zauberfisch> https://groups.google.com/forum/?fromgroups=#!topic/silverstripe-dev/QVoaFpWRQJs
56: [02:41:00] <Zauberfisch> if you care, I figured out a way to do it
57: [02:42:00] <simon_w|air> Did try just applying those two pull requests?
58: [03:27:00] <Zauberfisch> what 2 pull requests?
59: [03:27:00] <Zauberfisch> simon_w|air you talking to me?
60: [03:28:00] <Zauberfisch> ---
61: [03:30:00] <Zauberfisch> another question: is embedding media broken in ss3 master?
62: [03:31:00] <Zauberfisch> I am currently trying to mess around with oembed, but nothing is working, so I am not sure did I screw up or is it broken
63: [03:31:00] <Zauberfisch> because youtube doesn't work eighter nor does my own oembed provider
64: [03:35:00] <DesignerX> hi again, i read somewhere in the docs that NOT to use the __constructor in my classes but use something else provided by SS, anyone know what it is ( cant find it anymore!)
65: [03:45:00] <Zauberfisch> DesignerX if you are talking about controllers then what you are searching for is "public function init() {}"
66: [03:46:00] <DesignerX> another question, is onAfterWrite(0 triggerd after all relations to MyClass has be written ?
67: [03:46:00] <DesignerX> Zauberfisch: thanks, I wilkl tr it
68: [03:47:00] * liam has joined #silverstripe
69: [03:47:00] <Zauberfisch> what do you mean?
70: [03:48:00] <DesignerX> I am trying to use MyPage->onAfterWrite to modify MyObject which is related to MyPage using has-one
71: [03:49:00] <DesignerX> but when I do MyObject->Write in onbeforeWrite, its creating a new object & not getting the one already "exist" as if the relation didnt exists yet at that time
72: [03:58:00] <Zauberfisch> I can't follow your explaining :P
73: [03:58:00] <Zauberfisch> show your code please
74: [04:07:00] * UncleCheese has left #silverstripe
75: [04:11:00] <DesignerX> Zauberfisch: got it working, it was more of a problem with how widget + widgetarea related to page/object
76: [04:21:00] * cloph_away1 has joined #silverstripe
77: [04:22:00] * cloph_away quit (Ping timeout: 255 seconds)
78: [04:29:00] * simon__w has joined #silverstripe
79: [04:30:00] * simon_w quit (Read error: Operation timed out)
80: [04:33:00] * Motoservo has joined #silverstripe
81: [04:42:00] * liam quit (Quit: liam)
82: [05:01:00] * cloph_away has joined #silverstripe
83: [05:02:00] <simon_w|air> Zauberfisch, yes, I replied to your first post with links to two pull requests
84: [05:02:00] * cloph_away1 quit (Ping timeout: 256 seconds)
85: [05:02:00] * slith1 has joined #silverstripe
86: [05:04:00] <Zauberfisch> on the dev list?
87: [05:05:00] <Zauberfisch> @ simon_w|air
88: [05:05:00] <Zauberfisch> because I don't see any reply from you
89: [05:05:00] <Zauberfisch> @ simon__w|air
90: [05:06:00] <simon_w|air> yes, on the dev list
91: [05:06:00] <Zauberfisch> can you give me a link please, I can't seem to find it
92: [05:07:00] <simon_w|air> https://github.com/silverstripe/silverstripe-installer/pull/23 and https://github.com/silverstripe/sapphire/pull/856
93: [05:07:00] <simon_w|air> Bah, bloody google ignoring my replies
94: [05:14:00] * slith1 has left #silverstripe
95: [05:15:00] <Zauberfisch> awesome
96: [05:15:00] <Zauberfisch> nice work simon_w|air
97: [05:15:00] <Zauberfisch> oh, look at that
98: [05:16:00] <Zauberfisch> oh wait, not your requests
99: [05:17:00] <simon_w|air> No, just me pointing out problems with them :p
100: [05:17:00] <simon_w|air> Feel free to post to ss-dev and ask about how they're going, since I can't seem to anymore
101: [05:34:00] <Zauberfisch> done
102: [05:46:00] * aaron1245 quit (Quit: aaron1245)
103: [05:46:00] * Error404NotFound has joined #silverstripe
104: [05:53:00] * liam has joined #silverstripe
105: [06:02:00] * aaron1245 has joined #silverstripe
106: [06:03:00] * lurker quit (Ping timeout: 255 seconds)
107: [06:37:00] * aaron1245 quit (Quit: aaron1245)
108: [06:49:00] <DesignerX> question , when did SS3 started supporting a 2nd lvl of tabs on pages ? like Content.Level1.Level2 ?
109: [06:52:00] * SightUnseen has joined #silverstripe
110: [06:52:00] * SightUnseen has left #silverstripe
111: [07:00:00] <simon_w|air> It always has
112: [07:01:00] * MichaelDesignerX has joined #silverstripe
113: [07:04:00] * DesignerX quit (Ping timeout: 256 seconds)
114: [07:10:00] * DesignerX has joined #silverstripe
115: [07:13:00] * MichaelDesignerX quit (Ping timeout: 276 seconds)
116: [07:16:00] * MichaelDesignerX has joined #silverstripe
117: [07:18:00] * DesignerX quit (Ping timeout: 252 seconds)
118: [07:44:00] * liam quit (Quit: liam)
119: [07:54:00] <MichaelDesignerX> Hi guys, with Build task, can I have like Sub build tasks ? I have few taskes related to one Class & want to orgnize them into "groups of tasks "
120: [08:04:00] * EPIK quit (Ping timeout: 244 seconds)
121: [08:09:00] * Guits has joined #silverstripe
122: [08:09:00] * MrGuits quit (Read error: Connection reset by peer)
123: [08:18:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
124: [08:29:00] * Error404NotFound has joined #silverstripe
125: [08:35:00] * Shrike_Finland has joined #silverstripe
126: [08:40:00] * liam has joined #silverstripe
127: [08:59:00] * liam quit (Quit: liam)
128: [09:19:00] * robert__ has joined #silverstripe
129: [09:21:00] * robert_ quit (Read error: Connection reset by peer)
130: [09:32:00] * CodeTrap has joined #silverstripe
131: [09:46:00] * zfmf has joined #silverstripe
132: [10:00:00] * liam has joined #silverstripe
133: [10:06:00] * CodeTrap quit (Quit: CodeTrap)
134: [10:12:00] * liam quit (Quit: liam)
135: [10:22:00] * Error404NotFound quit (Ping timeout: 256 seconds)
136: [10:27:00] * Error404NotFound has joined #silverstripe
137: [10:29:00] * Error404NotFound quit (Max SendQ exceeded)
138: [10:29:00] * jerga has joined #silverstripe
139: [10:45:00] * liam has joined #silverstripe
140: [10:46:00] * CodeTrap has joined #silverstripe
141: [10:46:00] * liam quit (Client Quit)
142: [10:50:00] * Error404NotFound has joined #silverstripe
143: [10:53:00] * CodeTrap quit (Ping timeout: 244 seconds)
144: [10:59:00] * MichaelDesignerX is now known as DesignerX
145: [10:59:00] <MichaelDesignerX> hi, shoudnt return SSViewer::getTemplateFileByType('Page','Layout'); get me the path to Page.ss ? its not returning anything
146: [11:11:00] * jerga has left #silverstripe
147: [11:13:00] * Error404NotFound quit (Disconnected by services)
148: [11:13:00] * Err404NotFound has joined #silverstripe
149: [11:14:00] * Emil_Blume has joined #silverstripe
150: [11:15:00] * Err404NotFound is now known as Error404NotFound
151: [12:05:00] * pex__ has joined #silverstripe
152: [12:11:00] * robert__ is now known as robert_
153: [12:18:00] * ARNHOFF has joined #silverstripe
154: [12:19:00] * ARNHOFF quit (Client Quit)
155: [12:20:00] * ARNHOFF has joined #silverstripe
156: [12:20:00] * ARNHOFF is now known as ARNHOE
157: [12:51:00] * pex__ has left #silverstripe
158: [12:58:00] * priithansen has joined #silverstripe
159: [13:03:00] * Error404NotFound quit (Ping timeout: 256 seconds)
160: [13:05:00] * Error404NotFound has joined #silverstripe
161: [13:13:00] * DesignerX has joined #silverstripe
162: [13:13:00] * DesignerX quit (Quit: KVIrc 4.2.0 Equilibrium http://www.kvirc.net/)
163: [13:24:00] * pex__ has joined #silverstripe
164: [13:45:00] * jerga has joined #silverstripe
165: [13:45:00] * jerga has left #silverstripe
166: [13:45:00] * pex__ has left #silverstripe
167: [13:51:00] * jerga has joined #silverstripe
168: [14:01:00] * jerga has left #silverstripe
169: [14:08:00] * DesignerX quit (Ping timeout: 255 seconds)
170: [14:38:00] * jerga has joined #silverstripe
171: [14:49:00] * r3v3rb has joined #silverstripe
172: [15:13:00] * Error404NotFound quit (Quit: User guilty of hitting the Big Red X...)
173: [15:19:00] * jerga has left #silverstripe
174: [15:32:00] * Error404NotFound has joined #silverstripe
175: [15:36:00] * ivoba has joined #silverstripe
176: [15:37:00] * gelignite has joined #silverstripe
177: [15:37:00] * jerga has joined #silverstripe
178: [15:38:00] <jerga> anyone used ManyManyPickerField in a decorator? (2.4.x)
179: [15:39:00] <jerga> *ahem*
180: [15:39:00] <jerga> never mind
181: [15:39:00] <jerga> found the problem
182: [15:40:00] <jerga> I should be using a HasManyPickerField :-[
183: [16:04:00] * EPIK has joined #silverstripe
184: [16:37:00] * zfmf has left #silverstripe
185: [17:03:00] * r3v3rb quit (Quit: r3v3rb)
186: [17:10:00] * lurker has joined #silverstripe
187: [18:00:00] * l8s has joined #silverstripe
188: [18:01:00] * ivoba quit (Quit: Leaving)
189: [18:02:00] * Shrike_Finland quit (Quit: Leaving.)
190: [18:04:00] <l8s> can anybody tell me how to use the mysql string comparison operator LIKE, when fetching dataobjects: $myObjects = MyDataObjects::get()->where(<???>);
191: [18:12:00] <ec8or> l8s: http://doc.silverstripe.org/framework/en/topics/datamodel#search-filter-modifiers
192: [18:13:00] <ec8or> l8s: for a straight up like you would use PartialMatch
193: [18:16:00] <l8s> ok, thanks. that was it. i need LIKE "sometext%" and looking in /framework/search/filters/ also revealed StartsWithFilter.php
194: [18:18:00] <ec8or> yep you got them listed here http://api.silverstripe.org/3.0/framework/search/SearchFilter.html
195: [18:26:00] * aaron1245 has joined #silverstripe
196: [18:33:00] <ARNHOE> Is it possible to allow a user the only edit ONE dataobject ?
197: [18:40:00] * Shrike_Finland has joined #silverstripe
198: [19:14:00] * lurker quit (Ping timeout: 245 seconds)
199: [19:56:00] * lurker has joined #silverstripe
200: [20:31:00] * SightUnseen has joined #silverstripe
201: [20:32:00] * SightUnseen has left #silverstripe
202: [20:49:00] * slith1 has joined #silverstripe
203: [20:49:00] * slith1 has left #silverstripe
204: [21:02:00] * lurker quit (Ping timeout: 245 seconds)
205: [21:34:00] * pex__ has joined #silverstripe
206: [21:56:00] * jerga quit (Ping timeout: 240 seconds)
207: [22:15:00] * Bollig|DesignCty has joined #silverstripe
208: [22:15:00] * Bollig|DesignCty quit (Client Quit)
209: [22:19:00] * aaron1245 quit (Quit: aaron1245)
210: [22:21:00] * Bollig|DesignCty has joined #silverstripe
211: [23:01:00] * Shrike_Finland quit (Quit: Leaving.)
212: [23:02:00] * Shrike_Finland has joined #silverstripe
213: [23:08:00] * l8s quit (Quit: Nettalk6 - www.ntalk.de)
214: [23:09:00] * howardgrigg has joined #silverstripe
215: [23:23:00] * instabil has joined #silverstripe
216: [23:23:00] <howardgrigg> hey simon_w|air how far did you get witht the unsaved relation stuff you were working on?
217: [23:24:00] * lurker has joined #silverstripe
218: [23:30:00] * pex__ has left #silverstripe
219: [23:31:00] * instabil quit (Quit: Verlassend)
220: [23:41:00] * DesignerX has joined #silverstripe
221: [23:48:00] * jerga has joined #silverstripe
222: [23:48:00] * MichaelDesignerX has joined #silverstripe
223: [23:48:00] * DesignerX quit (Read error: Connection reset by peer)
224: [23:56:00] <jerga> ARNHOE: If you're still around, the answer is yes. Look into the functions canEdit, canView etc, in your canEdit function you can make the comparison needed (Title/ID etc versus Member ID/Group ...) and return true or false

These logs were automatically created by ss-log on irc.freenode.net.