#silverstripe IRC Log

IRC log for 13 March 2016

All timestamps are in UTC.

1: [00:05:17] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
2: [00:48:46] * markcl has joined #silverstripe
3: [00:51:14] * markcl quit (Client Quit)
4: [00:51:38] * markcl has joined #silverstripe
5: [01:05:00] * FrozenFire has joined #silverstripe
6: [02:12:52] * Azure quit (Remote host closed the connection)
7: [02:15:08] * Azure has joined #silverstripe
8: [02:17:08] * Azure quit (Remote host closed the connection)
9: [02:18:04] * Azure has joined #silverstripe
10: [02:18:34] * Azure quit (Remote host closed the connection)
11: [02:19:50] * Azure has joined #silverstripe
12: [02:21:17] * Azure quit (Remote host closed the connection)
13: [02:33:57] * Azure has joined #silverstripe
14: [03:09:02] * Stomach has joined #silverstripe
15: [03:25:37] * Firesphere_ quit (Ping timeout: 240 seconds)
16: [03:26:17] * Stomach quit (Quit: zzz)
17: [03:29:58] * slievr has joined #silverstripe
18: [03:30:29] * slievr quit (Read error: Connection reset by peer)
19: [04:19:55] * joelpittet has joined #silverstripe
20: [04:20:09] * r_hector has joined #silverstripe
21: [04:34:38] * Stomach has joined #silverstripe
22: [05:11:45] * Firesphere_ has joined #silverstripe
23: [05:18:00] * Stomach quit (Quit: zzz)
24: [05:28:09] * Phlunk3 quit (Ping timeout: 276 seconds)
25: [05:28:40] * Phlunk3 has joined #silverstripe
26: [05:31:02] * Stomach has joined #silverstripe
27: [05:36:30] * Stomach quit (Quit: zzz)
28: [05:42:14] * ^pH quit (Read error: Connection reset by peer)
29: [05:42:30] * ^pH has joined #silverstripe
30: [06:17:58] * r_hector has left #silverstripe
31: [06:19:21] * r_hector has joined #silverstripe
32: [07:09:58] * Stomach has joined #silverstripe
33: [07:29:41] * joelpittet quit (Remote host closed the connection)
34: [07:30:46] * Audlex has joined #silverstripe
35: [07:36:34] * r_hector quit (Remote host closed the connection)
36: [07:59:17] * markcl quit (Ping timeout: 250 seconds)
37: [08:09:47] * Stomach quit (Quit: zzz)
38: [08:12:45] * Stomach has joined #silverstripe
39: [08:12:46] * Stomach quit (Client Quit)
40: [10:06:17] * spronka has joined #silverstripe
41: [10:14:04] * Mike123 has joined #silverstripe
42: [10:14:47] <Mike123> i have created Controller , added my action, and i can't access it in url
43: [10:14:50] <Mike123> getting 404
44: [10:14:59] <Mike123> flushed all
45: [11:49:23] * Firesphere_ quit (Ping timeout: 250 seconds)
46: [12:20:30] * Varis has joined #silverstripe
47: [12:20:53] * Varis quit (Client Quit)
48: [12:37:30] * spronka quit (Quit: My Mac has gone to sleep. ZZZzzz…)
49: [14:40:25] * gelignite has joined #silverstripe
50: [16:22:23] * Mike123 quit (Ping timeout: 252 seconds)
51: [16:31:15] * Copperis quit (Quit: Leaving)
52: [18:52:40] * Stomach has joined #silverstripe
53: [19:35:56] * Stomach quit (Quit: zzz)
54: [19:37:49] * Firesphere_ has joined #silverstripe
55: [19:39:32] * Stomach has joined #silverstripe
56: [19:46:49] * Firesphere_ quit (Ping timeout: 240 seconds)
57: [19:54:35] * DimiStripe quit (Quit: DimiStripe)
58: [20:03:59] * cheddam has joined #silverstripe
59: [20:07:54] * micmania1 has joined #silverstripe
60: [20:17:23] * Mitcheru has joined #silverstripe
61: [20:17:23] <ss-helper> Mitcheru: Welcome to #silverstripe! Please ask your questions but don't leave too soon, we are a busy lot.
62: [20:23:02] * Firesphere_ has joined #silverstripe
63: [20:28:09] * Firesphere_ quit (Ping timeout: 260 seconds)
64: [20:28:54] * arnhoe has joined #silverstripe
65: [20:35:31] * arnhoe quit ()
66: [20:40:14] * micmania1 quit (Quit: micmania1)
67: [20:40:51] * spronk has joined #silverstripe
68: [20:43:27] * robbieaverill has joined #silverstripe
69: [20:47:26] <robbieaverill> Morning all - I've created a custom data object and placed it in mymodule/code/models/MyDataObject.php - very simple, MyDataObject extends DataObject and it has a single DB property - Name -> Text. It doesn't load or create the DB table for it when I dev/build/flush - am I missing something?
70: [20:56:19] <robbieaverill> Oddly implementing PermissionsProvider seemed to make it discoverable. Thanks anyway.
71: [20:58:14] * Fuxo has joined #silverstripe
72: [20:59:11] <Fuxo> Hi, is it possible to perform sum with groupby on a datalist?
73: [21:00:31] <ss-helper> Re: [silverstripe-dev] Abridged summary of silverst...@googlegroups.com - 6 updates in 2 topics - https://groups.google.com/d/msg/silverstripe-dev/MC7dak-EFoQ/dUi_1TdlBwAJ
74: [21:03:18] * micmania1 has joined #silverstripe
75: [21:11:58] * Vanny has joined #silverstripe
76: [21:12:23] <Vanny> Good Morning all
77: [21:12:31] <Stomach> good morning
78: [21:13:14] <Vanny> so as I learn more, I confuse myself more.
79: [21:14:22] <Vanny> If have a form that is generated through AddToCart($ID), which render fine, but when I submit the form. I get "SS_HTTPRequest could not be converted to int"
80: [21:15:04] <Vanny> I think it has something to do with the $ID not being passed on submit which makes sense, but not sure how to fix it.
81: [21:17:56] * DanaeNZ has joined #silverstripe
82: [21:27:14] <micmania1> vanny: the method AddToCart is used by the router. SilverStripe is trying to call $controller->AddToCart(SS_HTTPRequest $request) which is why you’re seeing that error.
83: [21:35:25] <Vanny> should I rename my function for easiest solution
84: [21:37:33] * spronk quit (Ping timeout: 240 seconds)
85: [21:45:28] <micmania1> vanny: yep
86: [22:07:09] * n8_ has joined #silverstripe
87: [22:07:42] <n8_> Simple question for a Monday brain, how do I make the edit / delete buttons of a Gridfield go on the right. Currently in the first column on the left..
88: [22:08:36] <n8_> I'm sure you know DanaeNZ
89: [22:13:51] <DanaeNZ> n8_: iirc, when you add the components to the config you can specify an additional parameter with the placement. So you'll need to remove those components and add them again
90: [22:14:40] <Stomach> ^ ding ding
91: [22:14:43] <Stomach> DanaeNZ wins the prize
92: [22:14:53] <Stomach> the prize is a "^ ding ding" from Stomach
93: [22:14:55] <DanaeNZ> what is my prize :S
94: [22:14:56] <Stomach> congratulations
95: [22:15:00] <DanaeNZ> Oh fuck YES
96: [22:15:05] <DanaeNZ> best prize 10/10
97: [22:15:45] <Stomach> :D
98: [22:16:17] * jules0x has joined #silverstripe
99: [22:17:22] <n8_> zzzz
100: [22:17:23] <Fuxo> Hi, is it possible to perform sum with groupby on a datalist?
101: [22:17:46] <n8_> So just a quick preceding ->remove( Gridfields name) will kill it all properly?
102: [22:18:15] <jules0x> I have a page that only an ADMIN can delete... trying to understand what to change to extend this to UNPUBLISH as well... I want regular users to be able to continue to make updates to the page.
103: [22:18:45] * DanaeNZ_ has joined #silverstripe
104: [22:20:08] <Stomach> n8_ ->removeComponentsByType('GridFieldAddNewButton'); ->addComponent(new GridFieldAddNewButton());
105: [22:20:10] * DanaeNZ quit (Ping timeout: 252 seconds)
106: [22:20:11] * Azure quit (Ping timeout: 252 seconds)
107: [22:20:11] <Stomach> or whatever right?
108: [22:20:39] <n8_> Services
109: [22:20:42] <Stomach> Fuxo - ->sum('FieldName')
110: [22:20:44] <n8_> oops
111: [22:21:04] <Stomach> n8_ - or action or whatever they are
112: [22:21:19] <n8_> ಠ_ಠ fo real Stomach?
113: [22:21:24] <n8_> zzz
114: [22:21:42] <Stomach> oh wait
115: [22:21:45] <Stomach> can you take a screenshot
116: [22:21:53] <Stomach> I think something is fucking out for you
117: [22:22:09] <n8_> I GOT IT.....
118: [22:22:15] <n8_> Just change the order.
119: [22:22:30] <n8_> Cause it ACTUALLY matters where " new GridFieldDataColumns()," was
120: [22:22:32] <n8_> frrp
121: [22:22:34] <Stomach> yeeah
122: [22:22:36] <n8_> where is coffee
123: [22:22:39] <n8_> ...
124: [22:22:44] <Stomach> lol
125: [22:23:01] <Stomach> DanaeNZ_and I assumed you were using a default gridfield
126: [22:23:15] <Fuxo> Stomach: I have a table for orders like with columns ProductID and Quantity and I want to get bestsellers, i.e. group by ProductID and sum by Quantity
127: [22:23:15] <n8_> alg,
128: [22:23:28] * Azure has joined #silverstripe
129: [22:23:49] <Stomach> $list->GroupBy('ProductID')->sum('Quantity') ?
130: [22:23:53] <n8_> jules0x not really sure what you mean, do you want regular users to be able to update a page, but not delete nor unpublish?
131: [22:25:52] <Fuxo> Stomach that does not work, groupby on a groupedlist gives an array
132: [22:26:04] <jules0x> n8 correct. I've added 'public function canDelete() {if Permission::check('ADMIN');} to prevent deletion... but I'm not sure how to do this for unpublish
133: [22:26:12] <Stomach> oh is it already grouped? try ->sum? - otherwise straight SQL it
134: [22:26:39] <Fuxo> Stomach DB::query("SELECT ProductID FROM OrderItem GROUP BY ProductID ORDER BY SUM(Quantity) DESC LIMIT $limit"); works
135: [22:26:47] <Stomach> yeah
136: [22:26:51] <jules0x> ugh... will try canDeleteFromLive()
137: [22:26:55] <jules0x> sounds promising
138: [22:27:06] <Fuxo> I am trying to replace it with ORM based one
139: [22:28:28] <jules0x> n8 too easy :D
140: [22:29:33] <n8_> Nice
141: [22:35:55] * gelignite quit (Quit: http://bit.ly/1kso8Ta)
142: [22:51:07] * Fuxo has left #silverstripe
143: [22:58:25] * FrozenFire quit (Ping timeout: 244 seconds)
144: [23:00:01] * ss-helper quit (Remote host closed the connection)
145: [23:00:15] * ss-helper has joined #silverstripe
146: [23:06:33] * FrozenFire has joined #silverstripe
147: [23:12:30] * micmania1 quit (Quit: micmania1)
148: [23:24:49] * mahfuz has joined #silverstripe
149: [23:40:24] * Firesphere_ has joined #silverstripe
150: [23:46:50] * DanaeNZ_ quit (Remote host closed the connection)
151: [23:47:27] * DanaeNZ has joined #silverstripe
152: [23:51:33] * DanaeNZ quit (Ping timeout: 240 seconds)
153: [23:51:37] * micmania1 has joined #silverstripe
154: [23:57:24] * n8_ quit (Ping timeout: 252 seconds)

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