src/eric7/Project/ProjectBrowserModel.py

branch
server
changeset 10610
bb0149571d94
parent 10605
b6f5e27daeb5
child 10631
00f5aae565a3
equal deleted inserted replaced
10605:b6f5e27daeb5 10610:bb0149571d94
112 """ 112 """
113 Class implementing the data structure for project browser simple directory 113 Class implementing the data structure for project browser simple directory
114 items. 114 items.
115 """ 115 """
116 116
117 def __init__(self, parent, projectType, text, path=""): 117 def __init__(self, parent, projectType, text, path="", fsInterface=None):
118 """ 118 """
119 Constructor 119 Constructor
120 120
121 @param parent parent item 121 @param parent parent item
122 @type BrowserItem 122 @type BrowserItem
124 @type str 124 @type str
125 @param text text to be displayed 125 @param text text to be displayed
126 @type str 126 @type str
127 @param path path of the directory 127 @param path path of the directory
128 @type str 128 @type str
129 """ 129 @param fsInterface reference to the 'eric-ide' server file system interface
130 BrowserSimpleDirectoryItem.__init__(self, parent, text, path=path) 130 (defaults to None)
131 @type EricServerFileSystemInterface (optional)
132 """
133 BrowserSimpleDirectoryItem.__init__(
134 self, parent, text, path=path, fsInterface=fsInterface
135 )
131 ProjectBrowserItemMixin.__init__(self, projectType) 136 ProjectBrowserItemMixin.__init__(self, projectType)
132 137
133 self.type_ = BrowserItemType.PbSimpleDirectory 138 self.type_ = BrowserItemType.PbSimpleDirectory
134 139
135 140
516 path = self.project.ppath 521 path = self.project.ppath
517 for p in pathlist[:-1]: 522 for p in pathlist[:-1]:
518 itm = self.findChildItem(p, 0, olditem) 523 itm = self.findChildItem(p, 0, olditem)
519 path = os.path.join(path, p) 524 path = os.path.join(path, p)
520 if itm is None: 525 if itm is None:
521 itm = ProjectBrowserSimpleDirectoryItem(olditem, type_, p, path) 526 itm = ProjectBrowserSimpleDirectoryItem(
527 olditem, type_, p, path, self.__remotefsInterface
528 )
522 self.__addVCSStatus(itm, path) 529 self.__addVCSStatus(itm, path)
523 if self.inRefresh: 530 if self.inRefresh:
524 self._addItem(itm, olditem) 531 self._addItem(itm, olditem)
525 else: 532 else:
526 if olditem == self.rootItem: 533 if olditem == self.rootItem:

eric ide

mercurial