Monday 23 June 2008

Improving adapters API

I was ill since middle of last week (cold or something like that). Now it’s better but perfect :(

Anyway, I did something on my project, not much though.
I stopped with improving adapters API—I need a function that would create adapter just by its type name. With previous implementation, EntityEditor used some internal functions/methods to achieve this. Unfortunately, it seems impossible to convert them to some general interface.

So, I’m added this function to API. But there other problem rises: when creating adapter, atlas message object need to be passed to constructor. Value of this message is used then to populate adapter GUI element for first time and seems nothing like that. But, this element value has to be carefully crafted and be valid for this adapter type. For example, if it is number adapter then it should have number type, if it is 2D-position than it must be list with two number sub-elements, etc.
EntityEditor contains functions for creating all these element types. It is good functions and could be useful in some cases. But in overall, I see this approach as non-scalable—it is hard to add new adapter type.
So, my proposal is to let adapters handle elements of type NONE as some kind of default value.

Also, in some small time slices I was looking into packaging ember for fedora. When doing that, I find some license issues with ember and other libs.

1 comment:

Unknown said...

هتل صفوی از دیگر هتل های اصفهان با معماری شگفت‌انگیز است که در همان لحظه اول مسافران را مدهوش شکوه و نقش و نگارهای خود می‌کند. هتل صفوی با معماری سنتی و با اصالت ایرانی در سال 1385 در خیابان فلسطین اصفهان تأسیس شد که از همان روزهای اول خیل عظیم مسافران برای رزرو هتل در اصفهان را به دنبال داشته است.

این هتل 6 طبقه با 40 واحد اقامتی مجهز، فضایی دل‌نشین و آرام را برای گذران لحظاتی تکرارنشدنی فراهم کرده است. چایخانه سنتی هتل صفوی بر فراز بام هتل، رؤیایی هیجان‌انگیز و رهایی‌بخش از روزهای خسته‌کننده امروزی است. هتل صفوی اصفهان با ارائه امکانات ویژه معلولین، خدمات تاکسی‌سرویس، باربری، تور، تهیه بلیط، خانه‌داری، بیدارباش، کافی‌شاپ و اینترنت نامحدود، راهی جز انتخاب هتل صفوی در میان هتل های اصفهان باقی نگذاشته است.

در زمان رزرو هتل در اصفهان می‌توانید از میان اتاق‌های یک‌تخته، یک‌تخته صفوی، دوتخته، دوتخته رویال، سه تخته، چهارتخته و پنج تخته هتل صفوی یکی را انتخاب کنید.