1 2015-06-08T00:07:52  *** vipul20 has quit IRC
   2 2015-06-08T03:27:52  *** ThomasWaldmann2 has quit IRC
   3 2015-06-08T04:48:44  *** vipul20 has joined #moin-dev
   4 2015-06-08T08:01:00  *** greg_f has joined #moin-dev
   5 2015-06-08T09:33:40  *** yask has joined #moin-dev
   6 2015-06-08T13:03:35  *** skathpalia has joined #moin-dev
   7 2015-06-08T13:07:16  <vipul20> Hi skathpalia: I am working on file uploads. For every file uploaded I've cerated a new item with item_name as: <domain>/<item_id of ticket/<file_name>
   8 2015-06-08T13:07:32  <vipul20> Hi skathpalia  I am little confused about how to implement this in ticket creation view as there is only item_name and no itemid during ticket create view so if we upload a file it'll be like: <ticket_item_name>/<file_name> but once a ticket is created, in update view we can upload file as <ticket_item_id>/<file_name>. The problem here is that we'll
   9 2015-06-08T13:07:46  <vipul20> be diplaying all the files uploaded in the ticket-update view. Since, initial name of the ticket is lost after its creation therefore only files/items of the form: <ticket_item_id>/<file_name> will be available to display
  10 2015-06-08T13:08:58  <skathpalia> What would this file have?
  11 2015-06-08T13:09:09  <skathpalia> I mean the file uploaded for a ticket
  12 2015-06-08T13:10:28  <skathpalia> And you want to implement fileupload in which file is stored as subitem of the ticket
  13 2015-06-08T13:10:30  <skathpalia> right?
  14 2015-06-08T13:10:36  <skathpalia> vipul20:^^
  15 2015-06-08T13:12:36  <vipul20> skathpalia: these will be media files or screen shot images
  16 2015-06-08T13:12:51  <vipul20> skathpalia: yes I am trying to store as subitem of the ticket
  17 2015-06-08T13:13:07  <skathpalia> As per the current code you can't do that
  18 2015-06-08T13:13:27  <skathpalia> as nameless items do not have subitems support
  19 2015-06-08T13:13:42  <skathpalia> I mean you can't create subitems of a nameless item
  20 2015-06-08T13:14:18  <skathpalia> so the way you are talking about would only be possible if you add subitems support to nameless items
  21 2015-06-08T13:14:26  <skathpalia> or there is one more way
  22 2015-06-08T13:15:01  <skathpalia> you can add it as a field in metadata
  23 2015-06-08T13:26:04  <skathpalia> May be discuss it with tw also
  24 2015-06-08T13:26:16  <skathpalia> Lets see what he suggests
  25 2015-06-08T13:26:34  <skathpalia> vipul20:^^
  26 2015-06-08T13:33:13  <vipul20> skathpalia: what I've done till now is: I've used itemid of the ticket and created new items as <itemid>/<file_name> and wrote a small function to get all the items of the form <itemid>/<file_name>
  27 2015-06-08T13:34:43  <skathpalia> But you don't have itemid on ticket creation view, so thsi won't work while creating tickets
  28 2015-06-08T13:34:57  <skathpalia> It will work only when ticket is being updated
  29 2015-06-08T13:35:26  <vipul20> yes that's the problem which I am not able to understand what should be done
  30 2015-06-08T13:36:11  <skathpalia> wait
  31 2015-06-08T13:36:29  <skathpalia> you are also not using the notion of itemid
  32 2015-06-08T13:37:17  <vipul20> means ?
  33 2015-06-08T13:37:26  <skathpalia> what you are actually doing is you are making an item with item_name = <itemid of ticket> and creating the subitems of this item
  34 2015-06-08T13:37:43  <skathpalia> you are not actually creating the subitems of ticket item
  35 2015-06-08T13:37:52  <skathpalia> I don't think this is a good way
  36 2015-06-08T13:38:36  <vipul20> yes, you are right
  37 2015-06-08T13:39:05  <skathpalia> I don't think this is a nice way to do so
  38 2015-06-08T13:39:17  <skathpalia> Have you discussed this method with Thomas?
  39 2015-06-08T13:42:53  <vipul20> skathpalia: not much just told him my plan what I was trying to do.. but not about this issue related to subitem of ticket
  40 2015-06-08T13:43:55  <skathpalia> I am asking the way you have done right now(I mean creating an items with name = <itemid> and using it has uploaded file)
  41 2015-06-08T13:43:57  <vipul20> I am confused now about how should I proceed, I've already spent a lot of time on this :|
  42 2015-06-08T13:44:08  <skathpalia> Have you discussed this with him?
  43 2015-06-08T13:45:05  <skathpalia> vipul20:^^
  44 2015-06-08T13:45:26  <vipul20> skathpalia: I asked him yesterday but he didn't reply
  45 2015-06-08T13:46:20  <skathpalia> Just have his thoughts on this also
  46 2015-06-08T13:48:12  <vipul20> skathpalia: what can be another way ?
  47 2015-06-08T14:07:14  *** yask has quit IRC
  48 2015-06-08T14:09:43  <skathpalia> I said the another way laso
  49 2015-06-08T14:09:54  <skathpalia> have an extra field in metadata
  50 2015-06-08T14:09:58  <skathpalia> vipul20:^^
  51 2015-06-08T14:23:22  *** skathpalia has quit IRC
  52 2015-06-08T15:00:55  *** RogerHaase has joined #moin-dev
  53 2015-06-08T15:56:05  *** RogerHaase has left #moin-dev
  54 2015-06-08T16:49:38  <vipul20> hi ThomasWaldmann, the method I am using for file upload will not work in ticket creation view as we don't have itemid in create view.
  55 2015-06-08T16:49:56  <vipul20> Also, nameless items do not have subitems support. So using this method we're not actually creating subitems of the ticket
  56 2015-06-08T16:50:04  <vipul20> what should I do ?
  57 2015-06-08T16:52:13  *** therauli has left #moin-dev
  58 2015-06-08T18:04:56  *** greg_f has quit IRC
  59 2015-06-08T21:19:38  *** yask has joined #moin-dev
  60 2015-06-08T23:28:17  *** wnq has joined #moin-dev
  61 2015-06-08T23:31:03  *** wnq has quit IRC
  62 2015-06-08T23:42:19  *** wnq has joined #moin-dev
  63 2015-06-08T23:44:59  *** wnq has quit IRC
  64 

MoinMoin: MoinMoinChat/Logs/moin-dev/2015-06-08 (last edited 2015-06-08 00:15:02 by IrcLogImporter)