*)`=p*`X&set_loader..set_loader_wrapper*`)p;^=p<0<0;p@*`*> 0 p?pB *`X. substituted in sys.modules during a lazy loadP*`X/Trigger the load and then perform the deletion.*``t0<}=ps)s)H=*`X loader must define exec_module()p*`X$LazyLoader.factory..*`X.usr/libA namedtuple with minimal info about a module.*`X#/usr/lib/python3.8/importlib/abc.py3.so0*`X(usr/libAbstract base classes related to import.yc'*`@<<0@0<=p*`X#/usr/lib/python3.8/importlib/abc.py*` *07ps)s)p?69*`x0?/s=`9 *`z0-0BU=<p<p@0*`R<tjdtddt|dsdS|||}|dk r8|jSdS*`+@]*|=Zp*`*<`<p<|=0]=0*`X MetaPathFinder.invalidate_cachesP*` *<p<0<p@p<*`*U=0-<p*<p<P*`*+@]*|=Z*`c<`<p<|=pK=0]=P*`X!PathEntryFinder.invalidate_caches0*`X'Abstract base class for import loaders.*`0-p-`<ps)})px)p*`qX=00C0!0W=p2C1!*` @ #g ~@P*` *0g@<<.p<0"* base class partially implementing the ResourceLoader and ExecutionLoader ABCs.'*`*PPQ]UM0*`X /usr/lib/python3.8/contextlib.py3.so.so'`X'c#Return the finder-specific module spec.path__'*`X,An abstract base class for context managers.*`X /usr/lib/python3.8/contextlib.py*`X AbstractContextManager.__enter__*`X'AbstractContextManager.__subclasshook__*`R6ddl}|d}|tjjkr"dS|d||S*`X&AbstractAsyncContextManager.__aenter__*`X%AbstractAsyncContextManager.__aexit__0*`X,AbstractAsyncContextManager.__subclasshook__ } } } ), 'migrations/0.9/update_sources_meta' => new FuncService(['@wp/db'], function ($oldVer, $newVer, $wpdb) { if (version_compare($oldVer, '0.9', '<')) { $sourceNameQuery = sprintf( "SELECT post_id, meta_value FROM %s WHERE meta_key = '%s'", $wpdb->postmeta, MediaPostType::SOURCE_NAME ); $sourceTypeQuery = sprintf( "SELECT post_id, meta_value FROM %s WHERE meta_key = '%s'", $wpdb->postmeta, MediaPostType::SOURCE_TYPE ); $sourceQuery = sprintf( 'SELECT st.post_id, sn.meta_value as name, st.meta_value as type FROM (%s) as sn JOIN (%s) as st ON sn.post_id = st.post_id', $sourceNameQuery, $sourceTypeQuery ); $rows = $wpdb->get_results($sourceQuery); if (is_array($rows)) { foreach ($rows as $row) { $source = new Source($row->name, $row->type); delete_post_meta($row->post_id, MediaPostType::SOURCE_NAME); delete_post_meta($row->post_id, MediaPostType::SOURCE_TYPE); add_post_meta($row->post_id, MediaPostType::SOURCE, (string) $source); } } } }), ]; } /** * @inheritDoc * * @since 0.1 */ public function getExtensions() : array { return [ // Add the post type to WordPress 'wp/post_types' => new ArrayExtension(['cpt']), // Add the migrations 'migrator/migrations' => new ArrayExtension([ 'migrations/0.4.1/generate_thumbnails', 'migrations/0.9/update_sources_meta', ]), ]; } } Hannover Archive - Seite 5 von 23 - nobilis | Das Lifestyle-Magazin für Hannover und Umgebung
Zum Inhalt springen
Startseite » Hannover » Seite 5

Hannover