def run(self, channel): self.exchange.add(channel) self.channel = channel from Axon.LikeFile import likefile, background background(zap=True).start() time.sleep(0.1) self.ce = likefile(self.C) for i in self.main(): pass
def run(self, channel): self.exchange.add(channel) self.channel = channel # print "ZZZZZZZZ" from Axon.LikeFile import likefile, background # print "Hi",scheduler.run.threads background(zap=True).start() time.sleep(0.1) # print "Bye",scheduler.run.threads # print "Here???" self.ce = likefile(self.thecomponent) for i in self.main(): pass
# you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. import socket from Axon.LikeFile import likefile, background from Kamaelia.Protocol.HTTP.HTTPClient import SimpleHTTPClient background().start() import Axon from Kamaelia.Chassis.ConnectedServer import MoreComplexServer from Kamaelia.Protocol.HTTP.HTTPServer import HTTPServer from Kamaelia.Protocol.HTTP.Handlers.Minimal import Minimal import Kamaelia.Protocol.HTTP.ErrorPages as ErrorPages from Kamaelia.Chassis.Pipeline import Pipeline # Our configuration homedirectory = "/srv/www/htdocs/" indexfilename = "index.html"